function getXMLHttp()
{var xmlHttp
try
{xmlHttp=new XMLHttpRequest();}
catch(e)
{try
{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e)
{alert("Your browser does not support AJAX!")
return false;}}}
return xmlHttp;}
function loadPage(link,target)
{if(link==""||target=="")
{return;}
var xmlHttp=getXMLHttp();if(xmlHttp.readyState==0)
{preload(target);}
xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4)
{document.getElementById(target).innerHTML=xmlHttp.responseText;try
{initialize();}
catch(e)
{}}}
xmlHttp.open("GET",link,true);xmlHttp.send(null);}
function preload(item)
{document.getElementById(item).innerHTML="<div style='margin: 30px 30px;'><img src='../images/loading.gif' alt='Loading...'></di> ";}
