<!--
function validateChkForm(f, type){
	if((!f.chkFrmName.value) || (f.chkFrmName.value.indexOf(" ") == -1)){
		alert("Please enter your first and last name.");
		f.chkFrmName.focus();
		return;
	}
	if(!f.chkFrmAddress1.value){
		alert("Please enter your address.");
		f.chkFrmAddress1.focus();
		return;
	}
	if(!f.chkFrmCityTown.value){
		alert("Please enter your city or town.");
		f.chkFrmCityTown.focus();
		return;
	}
	if(!f.chkFrmPhoneCode.value){
		alert("Please enter your STD/Mobile Code.");
		f.chkFrmPhoneCode.focus();
		return;
	}
	if(!f.chkFrmPhone.value){
		alert("Please enter your phone number.");
		f.chkFrmPhone.focus();
		return;
	}
	if(!f.chkFrmEmail.value){
		alert("Please enter your email address.");
		f.chkFrmEmail.focus();
		return;
	}
	if(f.chkFrmEmail.value){
		var goodEmail = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
		if(!goodEmail.test(f.chkFrmEmail.value)){
			alert("Please enter a VALID email address");
			f.chkFrmEmail.focus();
			return;
		}
	}
	if(type == "regular"){
		if(!f.chkFrmCCType.value){
			alert("Please select your Credit Card type.");
			f.chkFrmCCType.focus();
			return;
		}
		if(!f.chkFrmCCNumber.value){
			alert("Please enter the Credit Card number.");
			f.chkFrmCCNumber.focus();
			return;
		}
		if(!f.chkFrmCCName.value){
			alert("Please enter the name on your Credit Card.");
			f.chkFrmCCName.focus();
			return;
		}
		if(!f.chkFrmCCExpiryMonth.value){
			alert("Please select the expiry month of your Credit Card.");
			f.chkFrmCCExpiryMonth.focus();
			return;
		}
		if(!f.chkFrmCCExpiryYear.value){
			alert("Please select the expiry month of your Credit Card.");
			f.chkFrmCCExpiryYear.focus();
			return;
		}
	}
	f.submit();
}

// Allows only numbers on keypress
function onlyNumber(elm, max){
	if((event.keyCode<48)||(event.keyCode>57)){
		event.returnValue=false;
		}
	if(elm.value.length == max){
		event.returnValue=false;
		}
    }


function validateSearch(f){
	if(!f.searchText.value){
		alert("Please enter your search text");
	    f.searchText.focus();
		return;
	}
	else if(f.searchText.value.length < 3){
		alert("Please enter a minimum of three characters");
	    f.searchText.focus();
		return;
	}
	f.submit();
}


function validateNewsletter(f){
	if(!f.newsletterEmail.value){
		alert("Please enter your email");
	    f.newsletterEmail.focus();
		return;
	}
	else{
		var goodEmail = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
        if(!goodEmail.test(f.newsletterEmail.value)){
            alert("Please enter a valid email");
            f.newsletterEmail.focus();
            return;
		}
		if(f.newsletterEmail.value.indexOf("fightclub") !=-1){
            alert("Please enter a valid email");
            f.newsletterEmail.focus();
            return;
		}			
	}
	f.submit();
}

//-->