var xmlhttp
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
  try {
  xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
  try {
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
   xmlhttp=false;
  }
 }
@else
 xmlhttp=false
 @end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
	try {
		xmlhttp = new XMLHttpRequest();
	} catch (e) {
		xmlhttp=false;
	}
}
if (!xmlhttp && window.createRequest) {
	try {
		xmlhttp = window.createRequest();
	} catch (e) {
		xmlhttp=false;
	}
}

function loadDiv(url,elementId) {
	try{
	xmlhttp.open("GET",url,false);
	xmlhttp.onreadystatechange=function() {
		if (xmlhttp.readyState==4) {
			document.write(xmlhttp.responseText);
			try{
				if(elementId =="footer"){
					if(document.getElementById("pageName").value=="index")
						document.getElementById("footerHeight").height=(window.screen.height-790);
					}
			}catch(e){}
		}
	}
	xmlhttp.setRequestHeader('Accept','message/x-formresult');
	xmlhttp.send(null);	 
	}catch(e){}
}
window.onerror = function(){ return true; } 

/*window.onload = function (){
var html = document.body.innerHTML;
	var tag = /<(.*)>/;
	html = html.substring(html.indexOf("您所在的位置：")+7,html.indexOf("您所在的位置：")+500);
	html = html.substring(0,html.indexOf("</TD>"));
	alert(html);
	var title ="瑞福德保险"+ html.replace(tag,"").replace(new RegExp("&gt;","gm")," ＞").replace(new RegExp("&nbsp;","gm")," ");
	document.title=title;}*/


//window.onload = loadhtml;

//function loadhtml(){
	//loadDiv("/sites/main/common/header02.htm","header");
	//loadDiv("/sites/main/common/footer.htm","footer");
	
//}