function divOver(thisDiv) {
 	thisDiv.style.backgroundColor = '#FFFFFF';
 	thisDiv.style.color = '#000000';
	return true;
}
function divOut(thisDiv) {
	thisDiv.style.backgroundColor = '#CE1146';
 	thisDiv.style.color = '#FFFFFF';
	return true;
}


function IsNumeric(strString)
   //  check for valid numeric strings	
   {
   var strValidChars = "0123456789.-";
   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
   return blnResult;
   }


function checkContact(){



	if (document.contactForm.CustomerName.value == "" ) {
		alert("ERROR:\nPlease add your Name");
		document.contactForm.CustomerName.focus();
		return false;
	}


   	if (document.contactForm.TelephoneNumber.value == 0) {
      		alert("ERROR:\nPlease enter your telephone number.");
      		document.contactForm.TelephoneNumber.focus();
      		return false;
      	} else if (IsNumeric(document.contactForm.TelephoneNumber.value) == false) {
      		alert("ERROR:\nPlease enter a correct telephone number\nNumbers Only without spaces!");
      		document.contactForm.TelephoneNumber.value=="";      		
      		document.contactForm.TelephoneNumber.focus();
      		document.contactForm.TelephoneNumber.value='';
      		
      		return false;
      	}


	if (document.contactForm.Message.value == "" ) {
		alert("ERROR:\nPlease add your message");
		document.contactForm.Message.focus();
		return false;
	}





		return true;


}


function open_Custom_Window(page,Dims) {
	OpenWin = this.open(page, "new",Dims )
}