
var http
function prodField8( obj ){
	
	http=GethttpObject();
	if (http==null){
		// alert ('none');
		return;
	} 
	var url="formmem.php";
	url=url+"?ajax="+Math.random();
	// Modify param to work with a select box or radio button, etc if needed.
	var param = obj.name+'='+obj.value;
		// alert ("object name " +obj.name+'='+obj.value);
		

		if (document.contactus.Prod_Interest_8.checked) { // Checkbox has been checked (document.'formname'.'filed'.checked)
			 // alert ("Checked " + obj.name+'='+obj.value);
			var param = obj.name+'='+obj.value;
		} else { // Checkbox is not checked clear the value
			 // alert ("Unchecked " + obj.name+'='+"");
			var param = obj.name+'='+"";
		}		
		
			
	http.onreadystatechange=stateChanged;
	http.open("POST",url,true);
	http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	http.setRequestHeader("Content-length", param.length);
	http.setRequestHeader("Connection", "close");
	// alert ("param " +param);
	http.send(param);
} 

function stateChanged(){ 
	if (http.readyState==4 && http.status == 200){ 
		try{
			eval(http.responseText);
		}catch (e){
			// Uncomment this alert if your not sure ajax is working correctly.
			// alert('Ajax Responce Syntax Error!');
		}
	}
}

function GethttpObject(){
	var http=null;
	try{
		// Firefox, Opera 8.0+, Safari
		http=new httpRequest();
	}catch (e){
		// Internet Explorer var xmlhttp=new XMLHttpRequest()   var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
		try{
			http=new ActiveXObject("Msxml2.xmlhttp");
		}catch (e){
		  try{
			http=new ActiveXObject("Microsoft.xmlhttp");
		}catch (e){
                // Something went wrong
                alert("Your browser do not support ajax!");
                
	              }
	}
	} return http;
}

