function validate_contactform(objcontfrm)
{
	notice="Sorry, we cannot complete your request.\n\n";
	msg=notice;
	var pnum=/(^\d+$)|(^\d+\.\d+$)/;
	var nemailExp= /^\w+(\-\w+)*(\.\w+(\-\w+)*)*@\w+(\-\w+)*(\.\w+(\-\w+)*)+$/ ; 
	var webExp=/^(?:http:\/\/)?(?:[\w-]+\.)+[a-z]{2,6}$/;
	if(objcontfrm.txtname.value=='Your Name' || objcontfrm.txtname.value=='') msg+='-Please enter your name.\n';
	if(objcontfrm.txtemail.value=='Please Enter a Valid Email' || objcontfrm.txtemail.value=='') msg+='-Please enter your email address.\n';
	if(!(nemailExp.test(objcontfrm.txtemail.value))) msg+='-Please enter a valid email address.\n';
	if(objcontfrm.txtphone.value=='For Quick Communication' || objcontfrm.txtphone.value=='') msg+='-Please enter your phone no.\n';
	if(!(pnum.test(objcontfrm.txtphone.value))) msg+='-Please enter a valid phone no.\n';
	if((objcontfrm.txtphone.value.length>16) || (objcontfrm.txtphone.value.length<8)) msg+='-Please enter 8 to 16 digits.\n';	
	if(objcontfrm.txturl.value=='Provide your Website URL' || objcontfrm.txturl.value=='') msg+='-Please enter your Website URL.\n';
	if((objcontfrm.txturl.value!='') && (!(webExp.test(objcontfrm.txturl.value))) && (objcontfrm.txturl.value !='Provide your Website URL') ) msg+='-Please enter url as google.com\n';
	if(objcontfrm.txtcomments.value=='Please Detail your Requirements' || objcontfrm.txtcomments.value=='') msg+='-Please enter your comments.\n';
	if(objcontfrm.captcha.value=='captcha' || objcontfrm.captcha.value=='') msg+='-Please enter symbols.\n';
	if(msg!=notice)
	{
		alert(msg)
		return false;
	}
	else
	{
		return true;
	}
}


function validate_quickcontact(objcontfrm)
{
	notice="Sorry, we cannot complete your request.\n\n";
	msg=notice;
	var pnum=/(^\d+$)|(^\d+\.\d+$)/;
	var nemailExp= /^\w+(\-\w+)*(\.\w+(\-\w+)*)*@\w+(\-\w+)*(\.\w+(\-\w+)*)+$/ ; 
	var webExp=/^\w+(\-\w+)*(\.\w+(\-\w+)*)*\w+(\-\w+)*(\.\w+(\-\w+)*)+$/;
	if(objcontfrm.qucname.value=='Your Name' || objcontfrm.qucname.value=='') msg+='-Please enter your name.\n';
	if(objcontfrm.qucemail.value=='Please Enter a Valid Email' || objcontfrm.qucemail.value=='') msg+='-Please enter your email address.\n';
	if(!(nemailExp.test(objcontfrm.qucemail.value))) msg+='-Please enter a valid email address.\n';
	if(objcontfrm.qucurl.value=='For which you need digital marketing' || objcontfrm.qucurl.value=='') msg+='-Please enter your Website URL.\n';
	if((objcontfrm.qucurl.value!='') && (!(webExp.test(objcontfrm.qucurl.value)))) msg+='-Please enter url as google.com\n';
	if(objcontfrm.qucmessage.value=='Please Detail your Requirements' || objcontfrm.qucmessage.value=='') msg+='-Please enter your comments.\n';
	if(objcontfrm.captcha.value=='captcha' || objcontfrm.captcha.value=='') msg+='-Please enter symbols.\n';
	if(msg!=notice)
	{
		alert(msg)
		return false;
	}
	else
	{
		return true;
	}
}






