function build_response(user, firstname, lastname, companie, address, city, state, zip, mail, website, phone, fax, message, news, type, contacttime, contactmethod, find){

var ajaxRequest;  
try{ 
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLHttpRequest();
} catch (e){
// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Your browser broke!");
				return false;
			}
		}
	}
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
			var ajaxDisplay = document.getElementById('container');
			ajaxDisplay.innerHTML = ajaxRequest.responseText;
		}
	}
	var queryString = "?user=" + user;
	queryString += "&firstname=" + firstname;
	queryString += "&lastname=" + lastname;
	queryString += "&companie=" + companie;
	queryString += "&address=" + address;
	queryString += "&city=" + city;
	queryString += "&state=" + state;
	queryString += "&zip=" + zip;
	queryString += "&mail=" + mail;
	queryString += "&website=" + website;
	queryString += "&phone=" + phone;
	queryString += "&fax=" + fax;
	queryString += "&message=" + message;
	if(news) queryString += "&news=1"
	queryString += "&contacttime=" + contacttime
	queryString += "&contactmethod=" + contactmethod
	queryString += "&find=" + find
	queryString += "&type=" + type;
	queryString += "&sid="+Math.random();
	ajaxRequest.open("GET", "generate_response.php" + queryString , true);
	ajaxRequest.send(null); 
}

