function validateForm()
{
	var form = document.contactfrm;
	
//  FOR NORMAL TEXT FIELD VALIDATIUON

	if(form.fullname.value.match(/^\s+$/) || form.fullname.value == "")
		{
		alert("Please enter your name") ;
		form.fullname.focus() ;
		return false;
	}

// FOR NUMARIC PHONE VALIDATIUON

	if(form.contactnum.value.match(/^\s+$/) || form.contactnum.value == "")
		{
		alert("Please enter contact phone number") ;
		form.contactnum.focus() ;
		return false;
		}
		if(isNaN(form.contactnum.value)==true)
		{
			alert("Contact phone number must be numeric") ;
			form.contactnum.focus();
			form.contactnum.value="";
			return false;
		}
	
//  FOR NORMAL TEXT FIELD VALIDATIUON

	if(form.besttime.value.match(/^\s+$/) || form.besttime.value == "")
		{
		alert("Please enter best time to call") ;
		form.besttime.focus() ;
		return false;
	}

//  FOR E-MAIL ID VALIDATIUON

	if(form.email.value=="")
	{
		alert("Please enter your email id") ;
		form.email.focus() ;
		return false;
	}	
		if (!form.email.value.match(/^[\w\.\-]+@([\w\-]+\.)+[a-zA-Z]+$/))
		{
			alert("Please enter a valid email id");
			form.email.focus();
			//form.email.value="";
			return false;
		}
		
// CHECKBOX VALIDATION		
		
	if ( 
			form.fire.checked == false && 
			form.rescue.checked == false && 
			form.service.checked == false
		)
		{
			alert ( "Please choose your require information about" );
			return false;
		}
		else{
			}
			
if(form.secucode.value.match(/^\s+$/) || form.secucode.value == "")
		{
		alert("Please Enter Security Cod") ;
		form.secucode.focus() ;
		return false;
		}
		if(isNaN(form.secucode.value)==true)
		{
			alert("Contact phone number must be numeric") ;
			form.secucode.focus();
			form.secucode.value="";
			return false;
		}			
			
			
		
	return;
}
