function contact_form()			
{
	var first_name=document.getElementById('first_name').value;	
	var last_name=document.getElementById('last_name').value;	
	var phone=document.getElementById('phone').value;	
	var company=document.getElementById('company').value;	
	var email=document.getElementById('email').value;	
	var interest=document.getElementById('interest').value;		
	var message=document.getElementById('message').value;	
							
	if(first_name!="" && last_name !="" && message!="" && isEmail(email)){

		var xmlhttp;					
		try{					
			xmlhttp=new XMLHttpRequest();					
		} 					
		catch(e){
			try{
				xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");					
			}
			catch(e){
				try{
					xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");										
				}
					catch(e){
						alert("AJAX Not Supported");
					}
				}
			}
		xmlhttp.onreadystatechange=function(){
			if(xmlhttp.readyState!=4){												
				var display=document.getElementById('contact-form');														
				display.innerHTML="<br /><img src='images/ajax_loader.gif' />";

			}																	
			if(xmlhttp.readyState==4){										
				var display=document.getElementById('contact-form');										
				display.innerHTML=xmlhttp.responseText;															
			}								
		}												
		var url="/submit-contact-form.php";	
		data="first_name="+URLEncode(first_name)+"&last_name="+URLEncode(last_name)+"&phone="+URLEncode(phone)+"&company="+URLEncode(company)+"&email="+URLEncode(email)+"&interest="+URLEncode(interest)+"&message="+URLEncode(message);

		if (xmlhttp) {
			//alert (url +"?"+ data);
			//xmlhttp.onreadystatechange=xmlhttpChange;
			xmlhttp.open("POST",url,true);
			xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
			xmlhttp.send(data);
		}										
		}else{
			alert("Please fill out all required fields");
		}			
}		