
//´ò¿ª´°¿Ú¾ÓÖÐ

function ScreenCenter(url, name, height, width) { 

var height

var width

var str = "height=" + height + ",innerHeight=" + height; 

str += ",width=" + width + ",innerWidth=" + width; 

str += "toolbar=no,directories=no,status=yes,scrollbars=yes,resize=no,menubar=no";


if (window.screen) { 

       var ah = screen.availHeight - 30; 

       var aw = screen.availWidth - 10; 

       var xc = (aw - width) / 2; 

       var yc = (ah - height) / 2; 

       str += ",left=" + xc + ",screenX=" + xc; 

       str += ",top=" + yc + ",screenY=" + yc; 
	   
	  // str += "dialogLeft:"+ xc +"px;";
	   
	   //str += "dialogTop:"+ yc +"px;";

       } 

return window.open(url, name, str); 


}




function FullCenter(url, name, height, width) { 

//var height=714
//var width=1016

var height=screen.availHeight;
var width=screen.availWidth;

var str = "height=" + height + ",innerHeight=" + height; 

str += ",width=" + width + ",innerWidth=" + width; 

str += "fullscreen=yes,channelmode=no,location=no,toolbar=no,directories=no,status=yes,scrollbars=yes,resize=no,menubar=no,titlebar=no ";

if (window.screen) { 

       var ah = screen.availHeight - 30; 

       var aw = screen.availWidth - 10; 

       var xc = (aw - width) / 2; 

       var yc = (ah - height) / 2; 

       str += ",left=0,screenX=" + xc; 

       str += ",top=0,screenY=" + yc; 
	   
	  // str += "dialogLeft:"+ xc +"px;";
	   
	   //str += "dialogTop:"+ yc +"px;";

       } 

return window.open(url, name, str); 

}


var objxml;
function createRequest() {
      try {
        objxml = new XMLHttpRequest();
      } catch (trymicrosoft) {
        try {
          objxml = new ActiveXObject("Msxml2.XMLHTTP");
		 

        } catch (othermicrosoft) {
          try {
            objxml = new ActiveXObject("Microsoft.XMLHTTP");
			

          } catch (failed) {
            objxml = false;
          }
        }
      }
      if (!objxml)
        alert("Error initializing XMLHttpRequest!");
}

function openUrl(url){ 
	//var objxml=new ActiveXObject("Microsoft.XMLHttp") 
	createRequest();
	objxml.open("GET",url,false); 
	objxml.send(null); 
	retInfo=objxml.responseText; 
	if (objxml.status=="200"){ 
	return retInfo; 
	} 
	else{ 
	return "-2"; 
	} 
}