var xmlHttp = null;
var xmlHttpContentDIV;

function getXMLHTTPRequest(){
  try{
    xmlHttp=new XMLHttpRequest();// Firefox, Opera 8.0+, Safari
  }
  catch (e){
    try{
	  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");//ie6+
	}
    catch (e){
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");//ie5.5+
    }
  }
}

function XMLHTTPReadyStateChanged(){
  if(xmlHttp.readyState==4){
    document.getElementById(xmlHttpContentDIV).innerHTML = xmlHttp.responseText;
  }
}

function showLoader(){
  document.getElementById("apDiv4").style.visibility = "visible";
}

function hideLoader(){
  document.getElementById("apDiv4").style.visibility = "hidden";
}

function getaeProperty(url, contentDIV){
  xmlHttpContentDIV = contentDIV;
  getXMLHTTPRequest();
  xmlHttp.onreadystatechange=XMLHTTPReadyStateChanged;
  xmlHttp.open("GET",url,true);
  xmlHttp.send(null);
}

function getProperties(contentDIV, loaderDIV, formToSubmit){
  document.getElementById(loaderDIV).style.visibility = "visible";
  document.getElementById(contentDIV).innerHTML = "<iframe id='content' name='content' width=100% height=2500 frameborder=0 scrolling='no' />";
  formToSubmit.submit();
}

//<iframe id='content' name='content' frameborder='0' style='display:block;width:100%' onLoad='changeHeight(this);' load='changeHeight(this);'></iframe>