function SendMail() {
		
		if(!CheckForm()) 
			return false;
				
		params = "auth=654";
		params += "&name=" + escape($F('txtName'));
		params += "&location=" + escape($F('txtLocation'));
		params += "&type=" + escape($F('ddlProjectType'));
		params += "&theme=" + escape($F('txtTheme'));
		params += "&budget=" + escape($F('ddlBudget'));
		params += "&sqft=" + escape($F('txtSqFt'));
		params += "&foundus=" + escape($F('ddlFoundUs'));
		params += "&besttime=" + escape($F('ddlBestTime'));
		params += "&phone=" + escape($F('txtPhone'));
		
		new Ajax.Updater('content', 'sendmail.asp', {method:'post', postBody:params});  
		
		return false;
	}
	
	function CheckForm() {
		if($F('txtName') == '')
		{
			$('txtName').focus();
			alert('Please enter your name');
			return false;
		} 
		if($F('txtLocation') == '')
		{
			$('txtLocation').focus();
			alert('Please enter your location');
			return false;
		} 
		if($F('txtTheme') == '')
		{
			$('txtTheme').focus();
			alert('Please enter your project theme');
			return false;
		} 
		if($F('txtSqFt') == '')
		{
			$('txtSqFt').focus();
			alert('Please enter the size of the area');
			return false;
		} 
		if($F('txtPhone') == '')
		{
			$('txtPhone').focus();
			alert('Please enter your phone number');
			return false;
		} 
		return true;
	}
