function Email(str)
		{
			var supported = 0;
			if (window.RegExp)
			{
			var tStr = "a";
			var tReg = new RegExp(tStr);
			if (tReg.test(tStr)) supported = 1;
			}
			if (!supported)
			return (str.indexOf(".") <= 5) || (str.indexOf("@") < 0);
			var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
			var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
			return (r1.test(str) || !r2.test(str));
		}
function validation()
{
					if (document.frmcon.name.value==0)
					{
					alert("Please Enter the full name");
					document.frmcon.name.focus();
					document.frmcon.name.select();
					return false;
					}


					
					
					
				if (document.frmcon.contactno.value==0)
					{
					alert("Please Enter your Contact No");
					document.frmcon.contactno.focus();
					document.frmcon.contactno.select();
					return false;
					}					
					
					if (Email(document.frmcon.email.value))
					{
					alert("Please Enter email");
					document.frmcon.email.focus();
					document.frmcon.email.select();
					return false;
					}
					if (document.frmcon.subject.value==0)
					{
					alert("Please Enter the subject");
					document.frmcon.subject.focus();
					document.frmcon.subject.select();
					return false;
					}
					if (document.frmcon.description.value==0)
					{
					alert("Please Enter the your description/comments");
					document.frmcon.description.focus();
					document.frmcon.description.select();
					return false;
					}							
					document.frmcon.submit();
}


function search_val()
{
					if (document.frmsearch.all_of_words.value==0)
					{
					alert("Please Enter your requirements");
					document.frmsearch.all_of_words.focus();
					document.frmsearch.all_of_words.select();
					return false;
					}
document.frmsearch.submit();
}