function copyInfo() {
	
	if (window.document.forms[0].cbxSameAddr.checked == true) {
	
		window.document.forms[0].txtShipAdd.value = window.document.forms[0].txtBillAdd.value;
		window.document.forms[0].txtShipCity.value = window.document.forms[0].txtBillCity.value;
		window.document.forms[0].lbxShipState.selectedIndex = window.document.forms[0].lbxBillState.selectedIndex;
		window.document.forms[0].txtShipZip.value = window.document.forms[0].txtBillZip.value;
	
	}	
	else {
	
		window.document.forms[0].txtShipAdd.value = "";
		window.document.forms[0].txtShipCity.value = "";
		window.document.forms[0].txtShipZip.value = "";
	
	}
}

function checkform()
{
	if ((document.forms.mf.Name.value == "") || 
			(isblank(document.forms.mf.Name.value))) {
		alert ("Please fill in your name.");
		document.forms.mf.Name.focus();
		return false;
	}
	if ((document.forms.mf.txtBizName.value == "") || (isblank(document.forms.mf.txtBizName.value))) {
		alert ("Please fill in your business name.");
		document.forms.mf.txtBizName.focus();
		return false;
	}
	if ((document.forms.mf.txtBizType.value == "") || (isblank(document.forms.mf.txtBizType.value))) {
		alert ("Please fill in your business type.");
		document.forms.mf.txtBizType.focus();
		return false;
	}
	if (isblank(document.forms.mf.BizRegisteredState.value)) {
		alert ("Please fill in the state your business was registered in.");
		document.forms.mf.BizRegisteredState.focus();
		return false;
	}
	if (isblank(document.forms.mf.ResaleCertNumber.value)) {
		alert ("Please fill in your resale certification number.");
		document.forms.mf.ResaleCertNumber.focus();
		return false;
	}
	if (isblank(document.forms.mf.ResaleCertState.value)) {
		alert ("Please fill in the state associated with your resale certification.");
		document.forms.mf.ResaleCertState.focus();
		return false;
	}
	if ((document.forms.mf.txtEmail.value == "") || (isblank(document.forms.mf.txtEmail.value))) {
		alert ("Please fill in your email address.");
		document.forms.mf.txtEmail.focus();
		return false;
	}
	if ((document.forms.mf.txtPhone.value == "") || (isblank(document.forms.mf.txtPhone.value))){
		alert ("Please fill in your phone number.");
		document.forms.mf.txtPhone.focus();
		return false;
	}
	
	if(IsUSphoneNumber(document.forms.mf.txtPhone.value) == false) {
		alert("Your phone number is formatted incorrectly.  Please include your area code so it looks like (777) 777-7777");
		document.forms.mf.txtPhone.focus();
		return false;
	}
		
	if ((document.forms.mf.txtBillAdd.value == "") || (isblank(document.forms.mf.txtBillAdd.value))) {
		alert ("Please fill in your billing address.");
		document.forms.mf.txtBillAdd.focus();
		return false;
	}
	if ((document.forms.mf.txtBillCity.value == "") || (isblank(document.forms.mf.txtBillCity.value))) {
		alert ("Please fill in your billing city.");
		document.forms.mf.txtBillCity.focus();
		return false;
	}
	if (document.forms.mf.lbxBillState.value == ""){
		alert ("Please fill in your billing state.");
		document.forms.mf.lbxBillState.focus();
		return false;
	}
	if ((document.forms.mf.txtBillZip.value == "") || 		 (isblank(document.forms.mf.txtBillZip.value))) {
		alert ("Please fill in your billing zip.");
		document.forms.mf.txtBillZip.focus();
		return false;
	}
	
	if(IsUSzipCode(document.forms.mf.txtBillZip.value) == false) {
		alert("Your billing zip code is not formatted correctly.  Please take another look.");
		document.forms.mf.txtBillZip.focus();
		return false;
	}
	
		//call copyinfo() to pull over data from billing, then check if blank 	
	
		//copyinfo();
	
		if ((document.forms.mf.txtShipAdd.value == "") || (isblank(document.forms.mf.txtShipAdd.value))) {
		alert ("Please fill in your shipping address.");
		document.forms.mf.txtShipAdd.focus();
		return false;
	}
	if ((document.forms.mf.txtShipCity.value == "") || (isblank(document.forms.mf.txtShipCity.value))) {
		alert ("Please fill in your shipping city.");
		document.forms.mf.txtShipCity.focus();
		return false;
	}
	if (document.forms.mf.lbxShipState.value == ""){
		alert ("Please fill in your shipping state.");
		document.forms.mf.lbxShipState.focus();
		return false;
	}
	if ((document.forms.mf.txtShipZip.value == "") || (isblank(document.forms.mf.txtShipZip.value))) {
		alert ("Please fill in your shipping zip.");
		document.forms.mf.txtShipZip.focus();
		return false;
	}
	
	if(IsUSzipCode(document.forms.mf.txtShipZip.value) == false) {
		alert("Your shipping zip code is not formatted correctly.  Please take another look.");
		document.forms.mf.txtShipZip.focus();
		return false;
	}
	
	//if ((document.forms.mf.txtCountry.value == "") || (isblank(document.forms.mf.txtCountry.value))) {
	//	alert ("Please fill in your country.");
	//	document.forms.mf.txtCountry.focus();
	//	return false;
	//}
	
	if ((document.forms.mf.txtContMethod.value == "") || (isblank(document.forms.mf.txtContMethod.value))) {
		alert ("Please fill in your your preferred contact method.");
		document.forms.mf.txtContMethod.focus();
		return false;
	}
	
	if ((document.forms.mf.txtContTime.value == "") || (isblank(document.forms.mf.txtContTime.value))) {
		alert ("Please fill in your preferred contact time.");
		document.forms.mf.txtContTime.focus();
		return false;
	}
	if (isemail(document.forms.mf.txtEmail.value) == false){
		alert ("Your email address is not the correct format, please take another look.");
		document.forms.mf.txtEmail.focus();
		return false;
	};	
} // END function checkform()