function validates()
{
var telno;

 telno = STeam.ContactTel.value;
 checkEmail = STeam.Email.value;
 
 if(document.STeam.ClientID.value=="")
 		{
			alert("Please enter your client id");
 			document.STeam.ClientID.focus();
 		}
 
 else
 if(document.STeam.CompanyName.value=="")
		{
			alert("Please enter your company name");
			document.STeam.CompanyName.focus();
 		}
 else
 if(document.STeam.TypeOfServices.value=="NIL")
		{
			alert("Please choose type of service");
			document.STeam.TypeOfServices.focus();
 		}
 else
 if(document.STeam.TypeOfproblem.value=="NIL")
		{
			alert("Please choose type of problem");
			document.STeam.TypeOfproblem.focus();
 		}
 else 
 if(document.STeam.ContactTel.value=="")
		{
			alert("Please type your telephone no");
			document.STeam.ContactTel.focus();
 		}
 
 else
 if(!IsNumeric(telno))
 		{
			alert("Please enter valid telephone no");
			document.STeam.ContactTel.focus();
 		} 
 else
 if (document.STeam.Email.value=="")
	 {
		 alert("Please write your email address")
		 document.STeam.Email.focus();
	 }
 else
 if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.'))) 
	{
		alert("You have entered an invalid email address.")
		document.STeam.Email.select();
		document.STeam.Email.focus();
 	return false;
   } 

 else	 
 if (document.STeam.Message.value=="")
	 {
		 alert("Please write your Message to our Support Team")
		 document.STeam.Message.focus();
	 }
	 
 else
	{
		document.STeam.submit();
	}

}
