function isIE(){ //ie? 
if (window.navigator.userAgent.toLowerCase().indexOf("msie")>=1) 
    return true; 
else 
    return false; 
} 

if(!isIE()){ //firefox innerText define
    HTMLElement.prototype.__defineGetter__("innerText", 
    function(){
        var anyString = "";
        var childS = this.childNodes;
        for(var i=0; i<childS.length; i++) { 
            if(childS[i].nodeType==1)
                //anyString += childS[i].tagName=="BR" ? "/n" : childS[i].innerText;
                anyString += childS[i].innerText;
            else if(childS[i].nodeType==3)
                anyString += childS[i].nodeValue;
        }
        return anyString;
    } 
    ); 
    HTMLElement.prototype.__defineSetter__("innerText", 
    function(sText){
        this.textContent=sText; 
    } 
    ); 
}


//标签切换
function ShowDyNamic(obj,BlockName,BlockInfo1,SelectClassName,FloacClassNAme,len)
	 {
		var Blobk,BlockInfo;
		for(i=1;i<=len;i++)
		{
			Block=BlockName+i;
			BlockInfo=BlockInfo1+i;
			//非激活状态首标签
			if(i==obj)
			{
				document.getElementById(Block).className=SelectClassName;
				document.getElementById(BlockInfo).style.display="block";
			}
			else
			{

					document.getElementById(Block).className=FloacClassNAme;
					document.getElementById(BlockInfo).style.display="none";
			}
		}
	 }
	 
//显示隐藏层
	function show_layer(layer,num){
		//$=document.getElementById;
 		var did = document.getElementById(layer);
		if(num==0){
			did.style.display = "block";
			}
			else
			{
			did.style.display = "none";
			}
		}

