//(c) All rights reserved to Oded Joni

<!--
function FrontPage_Form1_Validator() {
	var frm = document.getElementById("frmMain");

	if (frm.txtFirstName.value == "") {
		alert("Please Enter a Valid \"Full Name\"");
		frm.txtFirstName.focus();
		return false;
	}

	//if (frm.txtLastName.value == "") {
		//alert("Please Enter a Valid \"Last Name\"");
		//frm.txtLastName.focus();
		//return false;
	//}

	if (frm.txtTelephone.value == "") {
		alert("Please Enter a Valid \"Phone Number\"");
		frm.txtTelephone.focus();
		return false;
	}

	if (!(/^\w+([\.]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})$/.test(frm.txtEmail.value))) {
		alert("Please Enter a Valid \"E-mail\" Address");
		frm.txtEmail.focus();
		return false;
	}

	if (!(frm.txtMove_Week.value.search (/^[0-9/]{3,10}$/) > -1)) {
		alert("Please Enter a Valid Move Date.\n"
		+ "Use the following formats: (mm/dd/yyyy) or (mm/dd/yy) or (m/d/yy)");
		frm.txtMove_Week.focus()
		return false;
	}

	//if (frm.txtMove_Week.options[frm.txtMove_Week.selectedIndex].text == "") {
		//alert("Please Select the \"Approximate Move Date\"");
		//frm.txtMove_Week.focus();
		//return false;
	//}
	//else {
		//frm.txtHiddenMoveWeek.value = frm.txtMove_Week.options[frm.txtMove_Week.selectedIndex].text ;
	//}

	//if (frm.txtMove_Month.options[frm.txtMove_Month.selectedIndex].text == "") {
		//alert("Please Select the \"Approximate Move Date\"");
		//frm.txtMove_Month.focus();
		//return false;
	//}
	//else {
		//frm.txtHiddenMoveMonth.value = frm.txtMove_Month.options[frm.txtMove_Month.selectedIndex].text ;
	//}

	if (!(frm.txtMove_Size.options[frm.txtMove_Size.selectedIndex].value)) {
		alert("Please Select the \"Move Size\"");
		frm.txtMove_Size.focus();
		return false;
	}

	//if (!(frm.txtMove_Car.options[frm.txtMove_Car.selectedIndex].value)) {
		//alert("Please select an option for the \"Move Car\"");
		//frm.txtMove_Car.focus();
		//return false;
	//}

	if (!(frm.txtFrom_Zip.value.search (/^[0-9]{5}$/) > -1)) {
		alert("Please Enter a Valid \"From Zip\"");
		frm.txtFrom_Zip.focus();
		return false;
	}

	//if (frm.txtTo_City.value == "") {
		//alert("Please Enter a Valid \"City\"");
		//frm.txtTo_City.focus();
		//return false;
	//}

	if (!(frm.txtTo_State.options[frm.txtTo_State.selectedIndex].value)) {
		alert("Please enter a value for the \"To State\" field.");
		frm.txtTo_State.focus();
		return false;
	}

	//if (frm.txtMove_Car.value == "yes" && frm.txtComments.value == "") {
		//alert("Please fill out the year, make, and model of the car you would like to ship in the \"Remarks\" field.");
		//frm.txtMove_Car.focus();
		//return false;
	//}
	document.getElementById('btnSubmit').disabled="disabled";
  return (true);
}
//-->

<!--
function carFunc(obj) {
	var oDiv =document.getElementById("txtMove_Car_Details");
	oDiv.style.display=(obj.value=='yes')?'block':'none';
}
//-->

<!--
function newWindow(url, name, scrl, w, h) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'scrollbars='+scrl+',height='+h+',width='+w+',top='+wint+',left='+winl
	win = window.open(url, name, winprops)
}
//-->

<!--
onload=function() {
	document.getElementById("txtFirstName").focus();
}
//-->

