    var xmlHttp;
	var xmlHttp2;
	var objname;
	var objname2;
	function CreateXMLHTTPRequest()
        {
           if(window.ActiveXObject)
           {
              xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
           }
           if(window.XMLHTTPRequest)
           {
              xmlHttp=new XMLHTTPRequest();
           }
        }
function CreateXMLHTTPRequest2()
        {
           if(window.ActiveXObject)
           {
              xmlHttp2=new ActiveXObject("Microsoft.XMLHTTP");
           }
           if(window.XMLHTTPRequest)
           {
              xmlHttp2=new XMLHTTPRequest();
           }
        }

function getRequestContent(str_Url,str_postdata,str_objname)
        {
			objname=str_objname;
            CreateXMLHTTPRequest();
		    str_postdata =escape(str_postdata);
			var reg=new RegExp("%26","g"); //′′?¨?y?òregexp???ó
			str_postdata=str_postdata.replace(reg,"&"); 
			reg=new RegExp("%3D","g"); //′′?¨?y?òregexp???ó
			str_postdata=str_postdata.replace(reg,"="); 
            xmlHttp.onreadystatechange=handler;
            xmlHttp.open("POST",str_Url,true);
            xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;");
		    xmlHttp.send(str_postdata); 
        }
  
  function getRequestContent2(str_Url,str_objname)
        {
			objname=str_objname;
            CreateXMLHTTPRequest();
            xmlHttp.onreadystatechange=handler;
            xmlHttp.open("Get",str_Url,true);
            xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;");
		    xmlHttp.send(); 
        }
         
        function handler()
        {
           if(xmlHttp.readystate==4)
           {
				if (objname=="")
		   		{
					//alert(xmlHttp.responseText);
					}
				else
				{
				document.getElementById(objname).innerHTML = xmlHttp.responseText;
				return ;
				}
           }
        }

 function getRequestContent3(str_Url,str_objname)
        {
			objname2=str_objname;
            CreateXMLHTTPRequest2();
            xmlHttp2.onreadystatechange=handler3;
            xmlHttp2.open("Get",str_Url,true);
            xmlHttp2.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;");
		    xmlHttp2.send(); 
        }
         
        function handler3()
        {
           if(xmlHttp2.readystate==4)
           {
				if (objname2=="")
		   		{
					//alert(xmlHttp.responseText);
					}
				else
				{
				document.getElementById(objname2).innerHTML = xmlHttp2.responseText;
				return ;
				}
           }
        }



function floorheaderlistOnMouseOut(str_value)
{
	document.getElementById(str_value+"-1").style.backgroundImage="url(images/sepline7.jpg)";
	document.getElementById(str_value+"-2").style.backgroundImage="url(images/sepline8.jpg)";
}

function floorheaderlistOnMouseOver(str_value)
{
	document.getElementById(str_value+"-1").style.backgroundImage="url(images/sepline9.jpg)";
	document.getElementById(str_value+"-2").style.backgroundImage="url(images/sepline10.jpg)";
}



function SCfloorheaderlistOnMouseOut(str_value,str_scid,str_fid)
{
	document.getElementById(str_value+"-1").style.backgroundImage="url(images/sepline7.jpg)";
	document.getElementById(str_value+"-2").style.backgroundImage="url(images/sepline8.jpg)";
	
	
}

function SCfloorheaderlistOnMouseOver(str_value,str_scid,str_fid,str_floor)
{
	document.getElementById(str_value+"-1").style.backgroundImage="url(images/sepline9.jpg)";
	document.getElementById(str_value+"-2").style.backgroundImage="url(images/sepline10.jpg)";
	
	//变换左边图框的图片
	getRequestContent2("Ajax.asp?action=ShowFlowDistrict&scid="+str_scid+"&fid="+str_fid+"&floor="+str_floor,"SCmainBody-4-3-4-1-2");
}

function SCfloorheaderlistOnMouseOut1(str_value,str_scid,str_fid)
{
	document.getElementById(str_value+"-1").style.backgroundImage="url(images/sepline7.jpg)";
	document.getElementById(str_value+"-2").style.backgroundImage="url(images/sepline8.jpg)";
	
	
}

function SCfloorheaderlistOnMouseOver1(str_value,str_scid,str_fid,str_floor)
{
	document.getElementById(str_value+"-1").style.backgroundImage="url(images/sepline9.jpg)";
	document.getElementById(str_value+"-2").style.backgroundImage="url(images/sepline10.jpg)";
	
	//变换左边图框的图片
	//document.getElementById("SCmainBody-4-3-4-1").innerHTML="<div id=\"SCmainBody-4-3-4-1-1\">正在下载图片，请稍候...</div><div id=\"SCmainBody-4-3-4-1-2\">正在检索区域信息，请稍候...</div>";
	getRequestContent2("Ajax.asp?action=ShowFlowPicAndDistrict&scid="+str_scid+"&fid="+str_fid+"&floor="+str_floor,"SCmainBody-4-3-4-1");
}

function AutoShowSCPage()
{
	var tdleftheight;
	var tdrightheight;
	tdleftheight = document.getElementById("mainBody-2").offsetHeight;
	tdrightheight =document.getElementById("mainBody-4").offsetHeight;
	if(tdleftheight - tdrightheight >0)
	{
		document.getElementById("mainBody-1").style.height = tdleftheight;
		document.getElementById("mainBody-3").style.height = tdleftheight;
		
	}
	else
	{
		document.getElementById("mainBody-1").style.height = tdrightheight;
		document.getElementById("mainBody-3").style.height = tdrightheight;
	}
}


//匿名发表
function niname(formID,spanID)
{
   if(formID.hiddenname.checked==true)
	{
	   //document.getElementById(spanID).style.display="none";
	   spanID.style.display="none";
   }
   else
	{
	   //document.getElementById(spanID).style.display="inline";
	   spanID.style.display="inline";
   }
}