// Book Deal Validations
function validate()
{
	frm = document.frmexchangelink;
	
	//for Company Name
	if(frm.txtcompanyname.value=='')
	{
		alert("Please enter company Name.");
		frm.txtcompanyname.focus();
		return false;
	}
	
	//for Your Name
	if(frm.txtyourname.value=='')
	{
		alert("Please enter Your Name.");
		frm.txtyourname.focus();
		return false;
	}
	
	//for Email
	if(frm.txtemail.value=='')
	{
		alert("Please enter Email.");
		frm.txtemail.focus();
		return false;
	}
	if(!isEmail(frm.txtemail.value))
	{
		alert("Please enter valid Email.");
		frm.txtemail.value='';
		frm.txtemail.focus();
		return false;
	}
	
	//for Title of your website
	if(frm.txttitleofwebsite.value=='')
	{
		alert("Please enter Title of your website.");
		frm.txttitleofwebsite.focus();
		return false;
	}
	
	//for URL of your website
	if(frm.txturlofwebsite.value=='')
	{
		alert("Please enter URL of your website.");
		frm.txturlofwebsite.focus();
		return false;
	}
	
	//for URL where our links appears on your site
	if(frm.txturlwhereourlinks.value=='')
	{
		alert("Please enter URL where our links appears on your site.");
		frm.txturlwhereourlinks.focus();
		return false;
	}
	
	//for Short description of your web site
	if(frm.txtshortdesc.value=='')
	{
		alert("Please enter Short description of your web site.");
		frm.txtshortdesc.focus();
		return false;
	}
	
	frm.method="post";
	frm.action="http://www.scandinavianvision.com/cgi-bin/FormMail.pl";
}

