// 
	// Validation for Submitting the form
	// 
	function validateorders()
	{
	var1= mf_validation(document.formApp.textLastName,"B","",document.getElementById('error1'));
	if(var1==false)
	{
		 document.getElementById('err1').innerHTML = ""
		 document.getElementById('err1').innerHTML = "***Required";
		 document.getElementById('err1000').innerHTML = "Please Enter Your Information Above in the required * fields!";
 		 return false;
	}
	else
	{
	document.getElementById('err1').innerHTML = ""
	}
	var1= mf_validation(document.formApp.textFirstName,"B","",document.getElementById('error2'));
	if(var1==false)
	{
	     document.getElementById('err2').innerHTML = ""
		 document.getElementById('err2').innerHTML = "***Required";
		 document.getElementById('err1000').innerHTML = "Please Enter Your Information Above in the required * fields!";
 		 return false;
	}
	else
	{
	document.getElementById('err2').innerHTML = ""
	}
	var1= mf_validation(document.formApp.textMailingAddress,"B","",document.getElementById('error4'));
	if(var1==false)
	{
	     document.getElementById('err4').innerHTML = ""
		 document.getElementById('err4').innerHTML = "***Required";
		 document.getElementById('err1000').innerHTML = "Please Enter Your Information Above in the required * fields!";
 		 return false;
	}
	else
	{
	document.getElementById('err4').innerHTML = ""
	}
	var1= mf_validation(document.formApp.textCity,"B","",document.getElementById('error6'));
	
	if(var1==false)
	{
		 document.getElementById('err6').innerHTML = ""
		 document.getElementById('err6').innerHTML = "***Required";
		 document.getElementById('err1000').innerHTML = "Please Enter Your Information Above in the required * fields!";
  		 return false;
	}
	else
	{
	document.getElementById('err6').innerHTML = ""
	}
	var1= mf_validation(document.formApp.textState,"B","",document.getElementById('error7'));
	
	if(var1==false)
	{
	 	 document.getElementById('err7').innerHTML = ""
		 document.getElementById('err7').innerHTML = "***Required";
		 document.getElementById('err1000').innerHTML = "Please Enter Your Information Above in the required * fields!";
 		 return false;
	}
	else
	{
	document.getElementById('err7').innerHTML = ""
	}

	var1= mf_validation// 
(document.formApp.selCountry,"B","",document.getElementById('error9'));
	 if(var1==false)
	 {
	  	 document.getElementById('err9').innerHTML = ""
	 	 document.getElementById('err9').innerHTML = "***Required";
	 	 document.getElementById('err1000').innerHTML = "Please Enter Your Information Above in the required * fields!";
 	 	 return false;
	 }
	 
	else
	{
	document.getElementById('err9').innerHTML = ""
	}

	var1= mf_validation(document.formApp.textEmail,"B","",document.getElementById('error12'));
	 if(var1==false)
	 {
	  	 document.getElementById('err12').innerHTML = ""
	 	 document.getElementById('err12').innerHTML = "***Required";
	 	 document.getElementById('err1000').innerHTML = "Please Enter Your Information Above in the required * fields!";
 	 	 return false;
	 }
	 
	else
	{
	document.getElementById('err12').innerHTML = ""
	}

	if( document.formApp.chk.checked == true )
	{
	//document.formApp.action = "../online_application/Application_Confirmation.html";
	document.formApp.action = "Mail2.php";
	}
	else
	{
       alert("Please read and accept the Terms of Use!");
	   return false;
	}
 }