function validate(form){

/*if(document.contact.name.value == "") {
		alert("Please mention your Name");
		document.contact.name.focus();
			return;
	}
	
	
if(document.contact.email.value!=''){
	var AtSym    = document.contact.email.value.indexOf('@')
	var period1  = document.contact.email.value.indexOf('.')
	var Period  = document.contact.email.value.lastIndexOf('.');
	var Space  = document.contact.email.value.indexOf(' ');

	var Length   = document.contact.email.length - 1   // Array is from 0 to length-1


	if ((AtSym < 1) ||                     // '@' cannot be in first position
	(Period <= AtSym+1) ||             // Must be atleast one valid char btwn '@' and '.'
	(period1 < 1) ||
	(Period == Length ) ||             // Must be atleast one valid char after '.'
	(Space  != -1))                    // No empty spaces permitted
	{
	  alert('Please enter a valid e-mail address!')
	  document.contact.email.focus();
	  return;
	}
}

if (document.contact.email.value == "") {
		alert("Please mention your Email Address");
		document.contact.email.focus();
		return;
	}

//-------------phone check--------------
if(document.contact.phone.value == "")
{
		alert("Please mention your phone");
		document.contact.phone.focus();
		return;
}

if(document.contact.phone.value!='')
{
	var tel1 = document.contact.phone.value;
	var focus1 = document.contact.phone.focus();
	ret = numCheck(tel1,'Please Enter a Numerical Value in the phone field',focus1);
	if(ret == 1)
		return false;
}*/


document.contact.submit();
}
//========================== function checking for numeric value =======================

function numCheck(tel,msg,focus)
{
	for (var i = 0; i < tel.length; i++)
	{
		var ch = tel.substring(i, i+1);
		if(ch < '0' || ch > '9' )
		{
			/*if((ch=='.') || (ch=='+') ||(ch=='-') || (ch==' ') || (ch=='(') || (ch==')'))
			{

			}
			else
			{*/
				alert(msg);
				focus;
				return 1;
			//}
		}
	}
}//end of numCheck function
