// JavaScript Document
// JavaScript Document
function handleHttpResponse() {	
if (http.readyState != 4) {
//document.body.style.cursor = "wait";
//document.getElementById(shows).innerHTML = "Loading..";
}
if (http.readyState == 4) {
		if(http.status==200) {
		var results=http.responseText;
		document.getElementById(shows).innerHTML = results;
	//	document.body.style.cursor = "default";
		}
	}
}
		
function ajaxRequest(id,show,url){

	shows = show;
	http.open("get", url+".php?"+id, true);
	http.onreadystatechange = handleHttpResponse;
	http.send(null);
	
}
		
function getHTTPObject() {
var xmlhttp; 
	if(window.XMLHttpRequest){
	xmlhttp = new XMLHttpRequest();
	}
  else if (window.ActiveXObject){
	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	if (!xmlhttp){
	xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
	}
}
  return xmlhttp;
}

var http = getHTTPObject(); // We create the HTTP Object

function changezipcode(){
document.getElementById('shipping').style.display='none';
document.getElementById('changeshipping').style.display='';
}
function closezipcode(){
document.getElementById('shipping').style.display='';
document.getElementById('changeshipping').style.display='none';
}