function contact_formvalidation(thisform)
{

	
	with (thisform)
	{
		
		if(emptyvalidation(contact_fname,"Woops! You forgot to fill your Name")==false) 
			{
			contact_fname.focus();
			return false;
			}
			
			if(emptyvalidation(phone3,"Woops! You forgot to fill your Phone")==false) 
			{
			phone3.focus();
			return false;
			}

	
		if(emptyvalidation(contact_email,"Woops! You forgot to fill your Email Address")==false) 
			{
			contact_email.focus();
			return false;
			}
		if(validate_email(contact_email)==false)
		{
			contact_email.select();
			contact_email.focus();
			return false;
		}
		
	
		if (emptyvalidation(contact_comments,"Woops! You forgot to fill your comments")==false) 
			{
				contact_comments.focus();
				return false;
			}
		
		thisform.submit();
		
	}

}
function validate_email(entered) {

   var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
   var address = entered.value;
   if(reg.test(address) == false) {
      alert('Woops! You have entered an invalid Email Address');
      return false;
   }
   }
   
 function changeColormenu(id) {
        if (document.getElementById) document.getElementById(id).style.color = '#ff6600';}
function changepromenu(id) {
        if (document.getElementById) document.getElementById(id).style.color = '#ff9900';}
function changesubmenu(id) {
        if (document.getElementById) document.getElementById(id).style.color = '#90890c';}

function show(id){var el = document.getElementById(id);el.style.display='block';}
