var xmlHttp

function showHint(url)
{
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 

xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
} 

function stateChanged() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("responsewindow").innerHTML=xmlHttp.responseText;
document.getElementById("responsewindow").style.visibility="visible";
document.getElementById("background").style.visibility="visible";
document.email_subscribe.shopchange.disabled = true;
}
else
{
document.getElementById("responsewindow").style.visibility="visible";
document.getElementById("background").style.visibility="visible";
document.email_subscribe.shopchange.disabled = true;
}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}

function closewindow(){
	document.getElementById("responsewindow").style.visibility="hidden";
	document.getElementById("background").style.visibility="hidden";
	document.email_subscribe.shopchange.disabled=false;
	document.email_subscribe.emailin.value="";	
}

function changeacceptor(code){
	if(code != 0){
		document.email_subscribe.action="index.php?action=acceptor&search="+code;
		document.email_subscribe.submit();
	}
}

function printwindow(){
	myWindow=window.open('print.php','MyName','width=500,height=500');
	myWindow.focus();
}

