
 function CheckForm(){
 //change the form color and make it blink else if fixed move on and
// reset the color to white 

 var BadInput = "visible";
 var GoodInput = "hidden";
 var TheResult = "true";
//document.ContactCompanyError.style.visibility = GoodInput;
document.ContactNameError.style.visibility =  GoodInput;
document.ContactEmailError.style.visibility =  GoodInput;
document.ContactPhoneError.style.visibility =  GoodInput;
 
 		/*if (document.GeneralForm.ContactCompany.value.length < 4){
		document.ContactCompanyError.style.visibility = BadInput;
		document.GeneralForm.ContactCompany.focus();
		return false;
		}*/
		
		if (document.GeneralForm.ContactName.value.length < 4){
		document.ContactNameError.style.visibility = BadInput;
		document.GeneralForm.ContactName.focus();
		return false;
		}
		
		if (document.GeneralForm.ContactEmail.value.length < 5){
			document.ContactEmailError.style.visibility = BadInput;
			document.GeneralForm.ContactEmail.focus();
			return false;
			
		}
		
		if (document.GeneralForm.ContactPhone.value.length < 9){
		document.ContactPhoneError.style.visibility = BadInput;
		document.GeneralForm.ContactPhone.focus();
		return false;
		}
		
	
	SubmitForm('GeneralForm');
	sortingHat(333);
			
}
		
		


