function checkmail()
{
  if(document.contact.name.value=="* Name")
  {
  document.getElementById('error-default').style.display = 'none';	  
  document.getElementById('error-1').style.display = 'block';
  document.contact.name.style.border='2px solid red';  
  document.contact.name.focus();  
  return false;
  }
  document.contact.name.style.border='1px solid #E9E9E9';
  if(document.contact.email.value=="* E-Mail")
  {
  document.getElementById('error-1').style.display = 'none';	  
  document.getElementById('error-2').style.display = 'block';
  document.contact.email.style.border='2px solid red';  
  document.contact.email.focus();  
  return false;
  }
  if(document.contact.email.value.indexOf("@")<=0 || document.contact.email.value.indexOf(".")<=0)
  {
  document.contact.email.focus();
  return false;
  }
  document.contact.email.style.border='1px solid #E9E9E9';
  if(document.contact.contact.value=="* Contact No.")
	{
		document.getElementById('error-2').style.display = 'none';	  
		document.getElementById('error-3').style.display = 'block';
		document.contact.contact.style.border='2px solid red';
  		document.contact.contact.focus();
		return false;
	}  
	
		if(isNaN(document.contact.contact.value))
		{
			document.getElementById('error-3').style.display = 'none';	  
			document.getElementById('error-3a').style.display = 'block';
			document.contact.contact.focus();
			return false;
		}
			if(document.contact.contact.value.length < 6)
		{
			document.getElementById('error-3a').style.display = 'none';	  
			document.getElementById('error-3b').style.display = 'block';
			document.contact.contact.focus();
			return false;
		}
  document.contact.contact.style.border='1px solid #E9E9E9';
  if(document.contact.aboutcompany.value=="* Comments")
  {
  document.getElementById('error-3a').style.display = 'none';	  	  
  document.getElementById('error-3b').style.display = 'none';	  
  document.getElementById('error-4').style.display = 'block'; 		  
  document.contact.aboutcompany.style.border='2px solid red';  
  document.contact.aboutcompany.focus();  	
  return false;
  }
}
function make_blank()
{
	document.contact.email.value="";
}
function make_fill()
{
 	if(document.contact.email.value=="")
	{
	document.contact.email.value="* E-Mail";
	}
}
function make_blank1()
{
	document.contact.name.value="";
}
function make_fill1()
{
 	if(document.contact.name.value=="")
	{
	document.contact.name.value="* Name";
	}
}
function make_blank2()
{
	document.contact.contact.value="";
}
function make_fill2()
{
 	if(document.contact.contact.value=="")
	{
	document.contact.contact.value="* Contact No.";
	}
}
function make_blank3()
{
	document.contact.aboutcompany.value="";
}
function make_fill3()
{
 	if(document.contact.aboutcompany.value=="")
	{
	document.contact.aboutcompany.value="* Comments";
	}
}