var xmlhttp;

function checkList(str)
{

xmlhttp=GetXmlHttpObject();

if (xmlhttp==null)
  {
  alert ("Your browser does not support XMLHTTP!");
  return;
  }

alert(str.replace(/www./i, ""));

var url="/browser/blacklist_check.asp";
url=url+"?domain="+str;

xmlhttp.onreadystatechange=stateChanged;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);

}

function stateChanged()
{
if (xmlhttp.readyState==4)
  {

  // document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
  // alert(xmlhttp.responseText);

  var result = xmlhttp.responseText;

  // alert(result);

  if (result == "blocked"){
     // parent.Content.location.href='http://yippy.com/browser/blocked.asp'; }
     parent.Content.location.href = yippy_config['redirect_blocked']; }

  }
}


/*
function GetXmlHttpObject()
{
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  return new XMLHttpRequest();
  }
if (window.ActiveXObject)
  {
  // code for IE6, IE5
  return new ActiveXObject("Microsoft.XMLHTTP");
  }
return null;
}
*/
