function ajaxFunction(id, href){
	var ajaxRequest;  // The variable that makes Ajax possible!
	
	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){
				return false;
			}
		}
	}
	// Create a function that will receive data sent from the server
	
	
	var queryString = "?id=" + id;
	ajaxRequest.open("GET", "updatecommercial.php" + queryString, true);
	ajaxRequest.send(null);
	
	 win = window.open("", "_blank");
	 win.location.href = href; 
}
