//页面放大缩小函数 此函数只支持ie.
	var ZoomCountTeam=1;
function changeZoom(ZoomText){
	if(ZoomText=="small"){
		ZoomCountTeam=ZoomCountTeam-0.5;
		if(ZoomCountTeam<=1){ZoomCountTeam=1}
		
	}else{
		ZoomCountTeam=ZoomCountTeam+0.5;
		if(ZoomCountTeam<=1){ZoomCountTeam=1}	
		
	}
	var page = document.getElementById("page");
	for(var i = 0;i < page.childNodes.length;i ++){
		page.childNodes[i].style.zoom=ZoomCountTeam;
	}
}
document.write("<div id='lineX' style='border-top:5px red solid;width:100%;position:absolute;z-index:200;left:0px;display:none;line-height:0px;font-size:0px;height:1px;'></div>");
document.write("<div id='lineY' style='border-left:5px red solid;height:100%;position:absolute;z-index:220;top:0px;left:0px;display:none;'></div>");
var bDecision=true;

function oDownLine(e){

	e = window.event ? window.event : e;
	if (bDecision) {
		document.getElementById('lineX').style.display = 'block'
		document.getElementById('lineY').style.display = 'block'
		document.onmousemove = oMoveLine;
		bDecision = false;
	}
	else {
		document.getElementById('lineX').style.display = 'none'
		document.getElementById('lineY').style.display = 'none'
		document.onmousemove = "";
		bDecision = true;
	}
}
//此函数用来判断当前鼠标位置。
function oMoveLine(e){
	e = window.event ? window.event : e;
	document.getElementById('lineX').style.top = e.clientY + 1 + document.documentElement.scrollTop + "px";
	document.getElementById('lineY').style.height = document.documentElement.scrollHeight;
	document.getElementById('lineX').style.width = document.documentElement.scrollWidth;
	document.getElementById('lineY').style.left = e.clientX + 1 + document.documentElement.scrollLeft + "px";
}

var iChangeBack=1;
function changeBack(newBack){
	//搜集所有元素名称 aAllElement
	
	var aAllElement=document.getElementById("page").getElementsByTagName("*")	
	//循环更改所有的背景和字体
	if(iChangeBack==1){
	document.getElementById("page").style.backgroundColor="#000";
	document.getElementById("page").style.color="#FFF";
	for(i=0;i<aAllElement.length;i++){
		//黑白对比度
		
		aAllElement[i].style.backgroundColor="#000";
		aAllElement[i].style.color="#FFF"
		newBack.innerHTML="还原对比度";
		iChangeBack=2;
		}


	}else if(iChangeBack==2){
	document.getElementById("page").style.backgroundColor="";
	document.getElementById("page").style.color="";
	for(i=0;i<aAllElement.length;i++){
		//黑白对比度
		
		aAllElement[i].style.backgroundColor="";
		aAllElement[i].style.color=""
		newBack.innerHTML="高对比度";
		iChangeBack=1;
		}
		}
	
}

function _layout(type){
document.forms['layout'].____698D51A19D8A121C____E581499D7B701668____.value=type;
document.forms['layout'].action=window.location.href;
document.forms['layout'].submit();
}

function showModalWindow(url,width,height){
	var tmp = new Date().getTime();
	if(url.indexOf("?") == -1)
			url = url+"?_t_="+tmp;
		else
			url = url+"&_t_="+tmp;

	if(""==width||undefined==width){
		width="50";
	}
	if(""==height||undefined==height){
		height="35";
	}
	style="help:no;status:no;dialogWidth:"+width+";dialogHeight:"+height;
	reval=window.showModalDialog(url,window,style);
	
}
