
var xmlHttp;
function createXMLHttpRequest() {
    if (window.XMLHttpRequest) { 
        xmlHttp = new XMLHttpRequest();  // Mozilla、Firefox、Safari 
		if (xmlHttp.overrideMimeType) {
			xmlHttp.overrideMimeType('text/xml');
		}
    }
    else if (window.ActiveXObject) { // Internet Explorer
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {}
		}
    }
}

function show() {
	var w = document.body.scrollWidth;  //取得整個螢幕的寬度 screen.availWidth;
	var h = document.body.scrollHeight;	//取得整個螢幕的高度 screen.availHeight;
	document.getElementById('scr1').style.width = w + 'px';
	document.getElementById('scr1').style.height = h + 'px';
	document.getElementById("scr1").style.visibility = "visible";
	document.getElementById('scr1').className = 'scr1_show';
	document.getElementById('scr2').style.left = ((screen.availWidth - 300 - 10) * .5) + 'px';
	document.getElementById('scr2').style.top = ((screen.availHeight - 45 - 160) * .5) + 'px';
	document.getElementById("scr2").style.visibility = "visible";	
	document.getElementById('scr2').className = 'scr2_show';
}
function hidd() {
	document.getElementById('scr1').className = 'scr_hide';
	document.getElementById('scr2').className = 'scr_hide';
}
