// JavaScript Ajax Frame Document

var xmlHttp = GetXmlHttpObject();
function GetSpaInfo()
{
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request");
}
else
{
xmlHttp.onreadystatechange=ready;
xmlHttp.open("GET","templates/portobay/spainfo.php",true);
xmlHttp.send(null);
}
}
function ready()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById("frame_wrap").innerHTML = xmlHttp.responseText;
document.getElementById("hidespatxt").style.display = "none";
document.getElementById("hidespatxt2").style.display = "none";
}
}

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;
}
