// ishop studio - www.ishopstudio.com//Validationfunction validate_BuyForm(theForm){		if (checkDomain(theForm.buy_website.value)==false){		theForm.buy_website.focus();			return false;	}		//update the paypal hddden field				if (theForm.buy_forename.value==""){		alert("Please enter your forename");		theForm.buy_forename.focus();			return false;	}		if (theForm.buy_surname.value==""){		alert("Please enter your surname");		theForm.buy_surname.focus();			return false;	}		if (validEmail(theForm.buy_email.value)!=true){ //relies on utils.js		theForm.buy_email.focus();		alert("Please enter a valid email address");		return false;	}	    if (theForm.buy_tel.value==""){		alert("Please enter your telephone number");		theForm.buy_tel.focus();			return false;	}		if (theForm.buy_namenum.value==""){		alert("Please enter your residence\'s name or number");		theForm.buy_namenum.focus();			return false;	}		if (theForm.buy_street.value==""){		alert("Please enter your street");		theForm.buy_street.focus();			return false;	}	if (theForm.buy_city.value==""){		alert("Please enter the city or town that you live in");		theForm.buy_city.focus();			return false;	}		if (theForm.buy_county.value==""){		alert("Please enter the county that you live in");		theForm.buy_county.focus();			return false;	}		if (theForm.buy_zip.value==""){		alert("Please enter your zip or postal code");		theForm.buy_zip.focus();			return false;	}		if (theForm.buy_country.value==""){		alert("Please enter the country that you live in");		theForm.buy_country.focus();			return false;	}	if (theForm.buy_confirm.checked == false){				alert("Please confirm that you have read  and accepted the terms and conditions");				return false;	}			return true;}function validate_Payment(theForm){	     //cc num 	var cardtype=theForm.pay_cardtype.options[theForm.pay_cardtype.selectedIndex].value;	var cardnum=theForm.pay_creditcard.value;		if (!checkCreditCard (cardnum, cardtype)){	alert(ccErrors[ccErrorNo]);    theForm.pay_creditcard.focus();		return false;    }	var cardnum = encodeBase64(cardnum);	theForm.pay_ccard.value=cardnum; 		//keep last 4 digits	var lastfour = cardnum.substring(cardnum.length-4,cardnum.length);   theForm.pay_lastfour.value=lastfour;      //bank  if (theForm.pay_bank.value==""){	alert("Please enter the name of the issuing bank.");    theForm.pay_bank.focus();	return false;  }       //name  if (theForm.pay_name.value==""){	alert("Please enter the name of the card holder as it appears on the card.");    theForm.pay_name.focus();	return false;  }    //cv2  if (theForm.pay_cv2.value==""){	alert("Please enter the cv2 number. This is the last 3-5 characters on the back of your card.");    theForm.pay_cv2.focus();	return false;  }     //billing address  if (theForm.pay_address.value==""){	alert("Please enter the card holders billing address.");    theForm.pay_address.focus();	return false;  }    		return true;}