
function validationContactUs()
{
	if(document.frmContactUs.name.value == "")
	{
		alert("Please enter name.");
		document.frmContactUs.name.focus();
		return false;
	}
	if(document.frmContactUs.email.value == "")
	{
		alert("Please enter email address.");
		document.frmContactUs.email.focus();
		return false;
	}
	string = document.frmContactUs.email.value;
	   if (string.length >0) 
	   {
			 i=string.indexOf("@")
			 j=string.indexOf(".",i)
			 k=string.indexOf(",")
			 kk=string.indexOf(" ")
			 jj=string.lastIndexOf(".")+1
			 len=string.length

			if ((i>0) && (j>(1+1)) && (k==-1) && (kk==-1) && (len-jj >=2) && (len-jj<=3)) 
			{
				
			}
			else
			{
				alert("Invalid email address.");
				document.frmContactUs.email.focus();
				return false;
			}
		}
	if(document.frmContactUs.telephone.value == "")
	{
		alert("Please enter telephone number.");
		document.frmContactUs.telephone.focus();
		return false;
	}
 return true;
}

function resetForm()
{
	document.frmContactUs.reset();
	document.frmContactUs.name.focus();
	return false;
}