//function HTMLEncode(text)//HTML过滤函数
//{
	//text = text.replace(/&/g, "&amp;") ;
	//text = text.replace(/"/g, "&quot;") ;
	//text = text.replace(/</g, "&lt;") ;
	//text = text.replace(/>/g, "&gt;") ;
	//text = text.replace(/'/g, "&#146;") ;
	//return text ;
//}
function ShowInfo(d){
	var objDiv=document.getElementById(d);
	document.write(objDiv.innerHTML);
}
function tabline(w,h,c){
	document.write("<table  bgcolor=\"" + c + "\" width=\""+ w + "\" height=\"" + h + "\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
	document.write("<tr><td></td></tr></table>");
	}
function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;}
//made in gamvan
function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  var gv; //made in gamvan
  for (i=0; i<(args.length-2); i+=3) 
  if ((obj=MM_findObj(args[i]))!=null) {
	v=args[i+2];
    if (obj.style) { obj=obj.style; 
		if (v=='show'){v='visible';} //made in gamvan
		if (v=='hide'){	v ='hidden';} //made in gamvan
	}
    obj.visibility=v; 
	}
}

//***********默认设置定义.*********************
tPopWait=30;//停留tWait豪秒后显示提示。
tPopShow=5000;//显示tShow豪秒后关闭提示
showPopStep=20;
popOpacity=99;
//***************内部变量定义*****************
sPop=null;
curShow=null;
tFadeOut=null;
tFadeIn=null;
tFadeWaiting=null;
document.write("<style type='text/css'>");
document.write(".cPopText {background-color:#FFFFEE; color:#000000; border: 1px #000000 solid;font-color:#000000; font-size: 9pt; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; filter: Alpha(Opacity=0)}");
document.write("</style>");
document.write("<div id='dypopLayer' style='position:absolute; z-index:1000;''></div>");
function showPopupText(){
var o=event.srcElement;
	MouseX=event.x;
	MouseY=event.y;
	if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""};
        if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""};
	if(o.dypop!=sPop) {
			sPop=o.dypop;
			clearTimeout(curShow);
			clearTimeout(tFadeOut);
			clearTimeout(tFadeIn);
			clearTimeout(tFadeWaiting);	
			if(sPop==null || sPop=="") {
				dypopLayer.innerHTML="";
				dypopLayer.style.filter="Alpha()";
				dypopLayer.filters.Alpha.opacity=0;	
				}
			else {
				if(o.dyclass!=null) popStyle=o.dyclass 
					else popStyle="cPopText";
				curShow=setTimeout("showIt()",tPopWait);
			}
			
	}
}
function showIt(){
		dypopLayer.className=popStyle;
		dypopLayer.innerHTML=sPop;
		popWidth=dypopLayer.clientWidth;
		popHeight=dypopLayer.clientHeight;
		if(MouseX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24
			else popLeftAdjust=0;
		if(MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24
			else popTopAdjust=0;
		dypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;
		dypopLayer.style.top=MouseY+12+document.body.scrollTop+popTopAdjust;
		dypopLayer.style.filter="Alpha(Opacity=0)";
		fadeOut();
}
function fadeOut(){
	if(dypopLayer.filters.Alpha.opacity<popOpacity) {
		dypopLayer.filters.Alpha.opacity+=showPopStep;
		tFadeOut=setTimeout("fadeOut()",1);
		}
		else {
			dypopLayer.filters.Alpha.opacity=popOpacity;
			tFadeWaiting=setTimeout("fadeIn()",tPopShow);
			}
}

function fadeIn(){
	if(dypopLayer.filters.Alpha.opacity>0) {
		dypopLayer.filters.Alpha.opacity-=1;
		tFadeIn=setTimeout("fadeIn()",1);
		}
}
document.onmouseover=showPopupText;
//made in gamvan
function prtie(txt){
parent.frames.window.status=txt;
parent.frames.document.title=txt;
}
function prtie2(txt2){
window.status=txt2;
document.title=txt2;
}
//提交表单
var ie
ie = (document.all)? true:false
if (ie){
function keyForms(eventobject){
	if(event.ctrlKey && window.event.keyCode==13){
		this.document.Gforms.submit();
		}
	}
}
function postMsg(){
	var o=event.srcElement;
	o.action.value="正在提交...";
	o.action.disabled=true;			
}