﻿    var div_id="";
    var height=0;
    var width=0;


	
	function FloatShow(){
	    FloatAutoSize();
	    $("hideDiv").style.display = "block";
	    $("hideDiv").style.opacity = 0.70;
	    $("hideDiv").style.filter = "alpha(opacity=70)";
	}
	
	function FloatAutoSize(){
	    $("hideDiv").style.width = window.screen.width+"px";
	     $("hideDiv").style.height = document.documentElement.offsetHeight+"px";
	    if (window.ActiveXObject) {$("hideDiv").style.height = document.body.offsetHeight+"px";}
	}
	
	function OpenLeftTop(id,width,height){
	    $(id).style.display = "block";
        $(id).style.left = (document.documentElement.offsetWidth-width)/2 + "px";
        $(id).style.top = (document.documentElement.offsetHeight-height)/2  + 300 + "px";
	}
	
    window.onresize=function(){
        if ($("hideDiv").style.display == "block") {
            FloatAutoSize();
        }
        if(div_id!="" && $(div_id).style.display=="block"){
            OpenLeftTop(div_id,width,height);
        }
	}
	
	function FloatClose(){
	    $("hideDiv").style.display = "none";
	}
	


    function closePost(id) {
        $(id).style.display = "none";
        FloatClose();
    }
    

    
    function  getL(e){
        var  l=e.offsetLeft;
        while(e=e.offsetParent){
            l+=e.offsetLeft;
        }
        return  l;
    }  

    function  getT(e){
        var  t=e.offsetTop;
        while(e=e.offsetParent){
            t+=e.offsetTop;
        }
        return  t;
    }  
    function clearText2(id){
        $(id).value = "";
    }

