function changetabs(obj){
		document.getElementById("bassp1").className="";
		document.getElementById("bassp2").className="";
		document.getElementById("bassp3").className="";
		document.getElementById("bassp1s").style.display="none";
		document.getElementById("bassp2s").style.display="none";
		document.getElementById("bassp3s").style.display="none";
		obj.className="bass_this";
		var str=obj.id+"s";
		document.getElementById(str).style.display="";
	}
function changewin(){
		
		document.getElementById("bassp1s").style.display="none";
		document.getElementById("bassp2s").style.display="none";
		document.getElementById("bassp3s").style.display="none";
		document.getElementById("bassp1s").style.display="";
		
	}
var gDivLogDocument = null; 
var isIe=(document.all)?true:false;
function UnLockDocument() 
  { 
    if(gDivLogDocument!=null) 
    { 
        gDivLogDocument.style.display = "none"; 
        document.body.removeChild(gDivLogDocument); 
        gDivLogDocument = null;  
        return; 
    } 
  } 
  
  function LockDocument(color,bNotAlpha) 
  { 
        if(gDivLogDocument!=null) 
        { 
            gDivLogDocument.style.display = ""; 
            return; 
        } 

        if(bNotAlpha ==null) 
        { 
            bNotAlpha  = false; 
        } 
        gDivLogDocument = document.createElement("DIV"); 
        gDivLogDocument.className = "moon_bass";  
        gDivLogDocument.oncontextmenu=function() 
      { 
        return false; 
      } 
            if(bNotAlpha) 
            {    
              gDivLogDocument.style.filter = ""; 
          } 
          if(color !=null) 
            { 
                gDivLogDocument.style.backgroundColor = color; 
            }  
        gDivLogDocument.style.width = "100%";
        var height = Math.max(document.documentElement.scrollHeight,document.documentElement.clientHeight); 
        gDivLogDocument.style.height =height+"px" ; 
        document.body.appendChild(gDivLogDocument); 
		showBackground(gDivLogDocument, 50);
		gDivLogDocument.innerHTML="";
  } 
  function OpenDivWindow(title,iWidth,iHeight,htmlElement) 
  { 
    var innerHTML = htmlElement.innerHTML; 
	//alert(innerHTML);
	if(htmlElement != null){
	htmlElement.parentNode.removeChild(htmlElement);}
          
          var div = document.createElement("DIV"); 
          /*div.style.cssText="position: absolute; display:table;  z-index: 502; background-color: White; width:"+iWidth+"px;height:"+(iHeight+24)+"px;border:solid 1px gray";*/
		  //div.style.width=iWidth+"px";
		  //div.style.height=iHeight+"px";
		  div.id="bass_moive"; 
          div.innerHTML = innerHTML;          
         
          /*if(document.forms.length>0) 
          { 
                document.forms[0].appendChild(div); 
          }else 
          { 
                document.body.appendChild(div); 
          } */
       /*  div.appendChild(htmlElement); 
          htmlElement.style.display = "block"; */
          
		  
         document.body.appendChild(div); 
    CenterObject(div); 

  } 
    function CenterObject(obj) 
  { 
  	  var divHeight=obj.offsetHeight;
        var l = (document.body.offsetWidth - obj.offsetWidth)/2; 
        
        var t = (document.documentElement.clientHeight-divHeight)/2; 
		/*alert(document.getElementById("div1").offsetHeight);
		alert(divHeight);
		alert(t)*/
        obj.style.left = l+"px"; 
        obj.style.top = t +"px"; 
  } 
  
      function CloseDivWindow(div) 
  {
	  	//alert(div.id);
	
		div.style.display="none";
        var innerElement = div;
        if(innerElement)//remove the child element to body 
        { 
		
            innerElement.style.display = "none"; 
			document.body.removeChild(div);
            if(document.forms.length>0) 
          { 
                document.forms[0].appendChild(innerElement); 
          } 
          else 
          { 
                document.body.appendChild(innerElement); 
          } 
        } 
        
           /* if(document.forms.length>0) 
          { 
                document.forms[0].removeChild(div); 
          } 
          else 
          { 
            document.body.removeChild(div); 
          } */
        
        UnLockDocument(); 
  } 
  
  function CloseDivWindowFromImg(img) 
  { 
        var div  = img.parentNode.parentNode; 
        CloseDivWindow(div); 
  }
  
  
  //ÈÃ±³¾°½¥½¥±ä°µ
function showBackground(obj, endInt) { 
if(isIe) 
{ 
obj.filters.alpha.opacity+=1; 
if(obj.filters.alpha.opacity<endInt) 
{ 
setTimeout(function(){showBackground(obj,endInt)},5); 
} 
}else{ 
var al=parseFloat(obj.style.opacity);al+=0.01; 
obj.style.opacity=al; 
if(al<(endInt/100)) 
{setTimeout(function(){showBackground(obj,endInt)},5);} 
} 
} 
	
