  function maximize() {

  	self.moveTo(0,0); 

  	self.resizeTo(screen.availWidth,screen.availHeight-5);

  }





    function NewWin(url,name,xpos,ypos,width,height)

    {

        window.open(

            url,

            name,



"screenX="+xpos+",screenY="+ypos+",WIDTH="+width+",HEIGHT="+height+



",location=0,resizable=1,status=1,titlebar=1,directories=0,toolbar=0,menubar=0,scrollbars=yes,status=1"

        );



    }



function NewWin1(url,name,xpos,ypos,width,height)

    {

        window.open(

            url,

            name,



"screenX="+xpos+",screenY="+ypos+",WIDTH="+width+",HEIGHT="+height+



",location=0,resizable=0,status=0,titlebar=1,directories=0,toolbar=0,menubar=0,scrollbars=no,status=0"

        );



    }

    

  function loading() {

    showLayer("load");

  }

  

  function close_loading() {

      hideLayer("load");

  }

  

  

  function hideLayer(whichLayer) {



	if (document.getElementById) {

	  // this is the way the standards work

	  document.getElementById(whichLayer).style.visibility = "hidden";

	}

	else if (document.all) {

	  // this is the way old msie versions work

	  document.all[whichlayer].style.visibility = "hidden";

	}

	else if (document.layers) {

	  // this is the way nn4 works

	  document.layers[whichLayer].visibility = "hidden";

	}



  }



  function showLayer(whichLayer) {



	if (document.getElementById) {

	  // this is the way the standards work

	  document.getElementById(whichLayer).style.visibility = "visible";

	}

	else if (document.all) {

	  // this is the way old msie versions work

	  document.all[whichlayer].style.visibility = "visible";

	}

	else if (document.layers) {

	  // this is the way nn4 works

	  document.layers[whichLayer].visibility = "visible";

  }

  

}

  

