
function OpenWin()
{
	window.showModelessDialog('pp.htm','','dialogWidth:1px;dialogHeight:1px;dialogTop:1;dialogLeft:1;');
}

function __doPostBack(eventTarget, eventArgument) {
	var theform;
	if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
		theform = document.Form1;
	}
	else {
		theform = document.forms["Form1"];
	}
	theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
	theform.__EVENTARGUMENT.value = eventArgument;
	theform.submit();
}


function DefaultButton_Init() {
	if ( !DefaultButton_BrowserCapable() ) return false;
	
	for( var i=0; i<DefaultButtons.length; i++ ) {
		var defaultButtonSetting = DefaultButtons[i].split("?");
		if ( defaultButtonSetting.length != 3 ) { return; }
		var inputControl = document.getElementById( defaultButtonSetting[0] );
		var postBackScript = defaultButtonSetting[1];
		var causesValidation = ( defaultButtonSetting[2] == 'True' );
		if ( inputControl != null ) {
			if ( i==0 ) {
				var theForm = inputControl.form;
				theForm.EnsureDefault = false;
				theForm.defaultButtonPostBackScript = "";
				theForm.causesValidation = false;
			}
			inputControl.defaultButtonPostBackScript = postBackScript;
			inputControl.causesValidation = causesValidation;
			
			if ( typeof( inputControl.addEventListener ) != "undefined" ) {
				inputControl.addEventListener("focus",DefaultButton_RegisterDefault,false);
				inputControl.addEventListener("blur",DefaultButton_UnRegisterDefault,false);
			} else if ( typeof ( inputControl.attachEvent ) != "undefined" ) {
				inputControl.attachEvent("onfocus",DefaultButton_RegisterDefault);
				inputControl.attachEvent("onblur",DefaultButton_UnRegisterDefault);
			} else {
				inputControl.onfocus = DefaultButton_RegisterDefault;
				inputControl.onblur = DefaultButton_UnRegisterDefault;
			}
		}
	}
}
function DefaultButton_BrowserCapable() {
	if ( typeof( document.getElementById ) == "undefined" ) {
		if( typeof( document.all ) != "undefined" ) {
			document.getElementById = function( elementId ) { return document.all[elementId]; };
		} else {
			return false;
		}
	}
	return true;
}
function DefaultButton_RegisterDefault(e) {
	var src = DefaultButton_GetSrcElement(e);
	src.form.EnsureDefault = true;
	src.form.defaultButtonPostBackScript = src.defaultButtonPostBackScript;
	src.form.causesValidation = src.causesValidation;
}
function DefaultButton_UnRegisterDefault(e) {
	var src = DefaultButton_GetSrcElement(e);
	src.form.EnsureDefault = false;
	src.form.defaultButtonPostBackScript = "";
	src.form.causesValidation = false;
}
function DefaultButton_RequireOwnPostback(form) {
	if ( form.EnsureDefault && form.defaultButtonPostBackScript != "" ) {
		form.EnsureDefault = false;
		window.setTimeout( 'DefaultButton_Postback( "' + form.defaultButtonPostBackScript + '", ' + form.causesValidation + ');', 10 );
		return true;
	} else {
		return false;
	}
}
function DefaultButton_Postback( postBackScript, causesValidation ) {
	if (typeof(Page_ClientValidate) == 'function' && causesValidation) {
		if (  Page_ClientValidate() ) {
			eval(postBackScript);
		}
	} else {
		eval(postBackScript);
	}
}
function DefaultButton_GetSrcElement(e) {
	if ( typeof( window.event ) != "undefined" ) {
		return window.event.srcElement;
	}
	if ( e != null && typeof( e.target ) != "undefined" ) {
		return e.target;
	}
	return null;
}

//

var menu2DetectedBrowser = 'IE5DHTML';var menu2MBZ=false;var menu2CSDS=false;var menu2OM="document.all.";var menu2BgCo=".style.backgroundColor";var menu2Co=".style.color";var menu2Di=".style.display";var menu2TI="";var menu2Clkd=-1;var menu2PI=new Array();var menu2Px=new Array();var menu2Py=new Array();var menu2NH=new Array();var menu2PW=0;var menu2PH=0;var menu2SPnt="";var menu2Dir="";var menu2MB=0;var menu2SI="";var menu2SE=new Object();var menu2SEL=0;var menu2SET=0;var menu2SEH=0;var menu2SEW=0;var menu2BW=0;var menu2BH=0;var menu2AR=0;var menu2AB=0;var menu2SLA=0;var menu2STA=0;var menu2ExIS=new Image();menu2ExIS.src="";var menu2ExdIS=new Image();menu2ExdIS.src="pic/arrow-white.gif"/*tpa=http://gs.tongji.edu.cn/pic/arrow-white.gif*/;var menu2CTH=true;var menu2XOff=0;var menu2YOff=0;var menu2FP=0;var menu2SH=false;var menu2STI=0;var menu2Sdw = new Array();var menu2TS=0;var menu2TL=0;var menu2TTI="";var menu2PR="";var menu2SA=0;var menu2SIP=0;var menu2SS=0;function menu2T(ms){if(ms!="off"){if(menu2CTH!=0){menu2TI=setTimeout("menu2HP(0);menu2TS=0;",ms);}}else{clearTimeout(menu2TI);}}function menu2ST(l,g,i){if(i){menu2STI = setTimeout("menu2HP("+l+");menu2SP("+g+",'"+i+"');",350);}else if(l){menu2STI = setTimeout("menu2HP("+l+");",350);}else{clearTimeout(menu2STI);}}function menu2Show(id,srcid,relpos,offsetX,offsetY,fixedpos){clearTimeout(menu2TI);if(menu2Clkd!=id){menu2HP(0);menu2SI=srcid;menu2SPnt=relpos;menu2Clkd=id;menu2Dir="right";if(document.all["menu2Popup"+id]){if(offsetX)menu2XOff=offsetX;if(offsetY)menu2YOff=offsetY;if(fixedpos)menu2FP=fixedpos;if(document.all['menu2MenuButton'+id]){menu2ButtonClickState=true;}menu2SP(id);}}}function menu2Hide(){menu2TI=setTimeout("menu2HP(0);menu2TS=0;", 250);}function menu2HideNow(){menu2HP(0);}function menu2HiI(id,l){var d;d=document;var item=d.all['menu2Item'+id];if(!item){return;}else{item=d.all['menu2Item'+id];var expand=d.all['menu2Expand'+id];var expandIc=d.all['menu2ExpandIc'+id];var icoOn=d.all['menu2IcoOn'+id];}var bgco;try{bgco=item.getAttribute('menu2SelColor');}catch(e){bgco = false;}if(icoOn){d.all['menu2Ico'+id].style.display='none';icoOn.style.display='inline';}item.style.color='#ffffff';expand.style.color='#ffffff';if(bgco){item.style.backgroundColor=bgco;expand.style.backgroundColor=bgco;}else{item.style.backgroundColor='#ccc';expand.style.backgroundColor='#ccc';}if(expandIc){expandIc.src=menu2ExdIS.src;}menu2NHM(id,l);menu2NH[l-1]=id;}function menu2NHM(id,l){if(menu2NH[l-1]!=id){var count=l-1;for(count=l-1;count<menu2NH.length;count++){menu2DiI(menu2NH[count]);}menu2NH.length=l;}}function menu2DiI(id){var d;d=document;var item=d.all['menu2Item'+id];if(!item){return;}else{item=d.all['menu2Item'+id];var expand=d.all['menu2Expand'+id];var expandIc=d.all['menu2ExpandIc'+id];var icoOn=d.all['menu2IcoOn'+id];}var bgco;try{bgco=item.getAttribute('menu2UnSelColor');}catch(e){bgco = false;}if(icoOn){d.all['menu2Ico'+id].style.display='inline';icoOn.style.display='none';}item.style.color='#000000';expand.style.color='#000000';if(bgco){item.style.backgroundColor=bgco;expand.style.backgroundColor=bgco;}else{item.style.backgroundColor='#f1f1f1';expand.style.backgroundColor='#f1f1f1';}if(expandIc){expandIc.src=menu2ExIS.src;}}function menu2HideSelectBox(boolHide,arrSelectList){if(navigator.platform!="MacPPC"){if(navigator.userAgent.indexOf("MSIE 5.5")>0){return;}if(arrSelectList){document.menu2Selects=new Array();var SelectID=new String();var iCount=0;for(iCount=0;iCount<arrSelectList.length;iCount++){SelectID=arrSelectList[iCount];document.menu2Selects[iCount]=document.all[SelectID];}}if(!document.menu2Selects){document.menu2Selects=new Array();}if(boolHide==true && !menu2SH){document.menu2Selects=new Array();var iCount=0;var iCount2=0;var Selects = document.getElementsByTagName("select");for(iCount=0;iCount<Selects.length;iCount++){if(Selects[iCount].style.visibility != "hidden"){document.menu2Selects[iCount2]=Selects[iCount];iCount2++;}}}var iCount=0;if(boolHide==true){for(iCount=0;iCount<document.menu2Selects.length;iCount++){document.menu2Selects[iCount].style.visibility="hidden";}menu2SH=true;}if(boolHide==false){for(iCount=0;iCount<document.menu2Selects.length;iCount++){document.menu2Selects[iCount].style.visibility="visible";}menu2SH=false;}}}function menu2SP(id,itemid){if(navigator.platform=="MacPPC"){document.all["menu2Popup"+id].style.display="block";document.all["menu2Popup"+id].style.left=0;document.all["menu2Popup"+id].style.top=0;var MacLeftOffset=document.all["menu2Popup"+id].offsetLeft;var MacTopOffset=document.all["menu2Popup"+id].offsetTop;}if(!itemid){if(menu2FP){menu2SEL=menu2XOff;menu2SET=menu2YOff;menu2SEH=1;menu2SEW=1;menu2FP=0;}else{if(!document.all[menu2SI]){return;}menu2SE=new Object(document.all[menu2SI]);var menu2PrO=menu2SE;var menu2PrT="";menu2SEL=menu2SE.offsetLeft+menu2XOff;menu2SET=menu2SE.offsetTop+menu2YOff;menu2SEH=menu2SE.offsetHeight;menu2SEW=menu2SE.offsetWidth;while(menu2PrT!="BODY"){menu2PrO=menu2PrO.offsetParent;if(menu2PrO.style.position=='absolute'){break;}menu2SEL+=menu2PrO.offsetLeft;menu2SET+=menu2PrO.offsetTop;menu2PrT=menu2PrO.tagName;}}document.all["menu2Popup"+id].style.display="block";menu2PW=document.all["menu2Popup"+id].clientWidth;menu2PH=document.all["menu2Popup"+id].clientHeight;menu2BW=document.body.clientWidth;menu2BH=document.body.clientHeight;menu2SLA=document.body.scrollLeft;menu2STA=document.body.scrollTop;switch(menu2SPnt){case "above":menu2Px[menu2Px.length]=menu2SEL;menu2Py[menu2Py.length]=menu2SET-menu2PH;menu2CA();menu2CR();break;case "below":menu2Px[menu2Px.length]=menu2SEL;menu2Py[menu2Py.length]=menu2SET+menu2SEH;menu2CB();menu2CR();break;case "right":menu2Px[menu2Px.length]=menu2SEL+menu2SEW;menu2Py[menu2Py.length]=menu2SET;menu2CR();menu2CB();break;case "left":menu2Px[menu2Px.length]=menu2SEL-menu2PW;menu2Py[menu2Py.length]=menu2SET;menu2CL();menu2CB();menu2Dir="left";break;}menu2XOff=0;menu2YOff=0;document.all["menu2Popup"+id].style.left=menu2Px[menu2Px.length-1];document.all["menu2Popup"+id].style.top=menu2Py[menu2Py.length-1];menu2PI[menu2PI.length]=id;document.all["menu2Popup"+id].style.clip="rect(auto)";if(menu2TS==0){menu2PR=new Object(document.all["menu2Popup"+id]);menu2SA=true;switch(menu2SPnt){case "below":menu2SIP=menu2Py[menu2Py.length-1];menu2SS=menu2PH/4;menu2ScI(menu2PH);menu2TS=1;break;case "right":menu2SIP=menu2Px[menu2Py.length-1];menu2SS=menu2PW/4;menu2ScI(menu2PW);menu2TS=1;break;case "above":menu2SIP=menu2Py[menu2Py.length-1];menu2SS=menu2PH/4;menu2ScI(menu2PH);menu2TS=1;break;case "left":menu2SIP=menu2Px[menu2Py.length-1];menu2SS=menu2PW/4;menu2ScI(menu2PW);menu2TS=1;break;}}}else{var d;d=document;if(menu2SA==true){return;}menu2Px[menu2Px.length]=document.all["menu2Popup"+menu2PI[menu2PI.length-1]].clientWidth+menu2Px[menu2Px.length-1]-4;var szPrE="";if(d.all["menu2Item"+itemid].parentElement.offsetTop==0){if(navigator.platform=="MacPPC"){var szPrE="parentElement.parentElement.";}else if(d.all["menu2Item"+itemid].parentElement.parentElement.parentElement.parentElement.className!="menu2PopupBox"){var szPrE="parentElement.parentElement.parentElement.";}}menu2Py[menu2Py.length]=eval("d.all[\"menu2Item"+itemid+"\"].parentElement."+szPrE+"offsetTop")+menu2Py[menu2Py.length-1];document.all["menu2Popup"+id].style.display="block";menu2PW=document.all["menu2Popup"+id].clientWidth;menu2PH=document.all["menu2Popup"+id].clientHeight;var menu2PrW=document.all["menu2Popup"+menu2PI[menu2PI.length-1]].clientWidth;menu2AR=menu2BW-menu2Px[menu2Px.length-1]+menu2SLA;menu2AB=menu2BH-menu2Py[menu2Py.length-1]+menu2STA;if(menu2Px[menu2Px.length-2]==menu2SLA){menu2Dir="right";}if((menu2AR<menu2PW)||(menu2Dir=="left")){menu2MB=(menu2Px[menu2Px.length-1]-menu2PW-menu2PrW)+8;if((menu2MB>=0)&&(menu2MB>menu2SLA)){menu2Dir="left";}else{menu2MB=menu2SLA;}menu2Px[menu2Px.length-1]=menu2MB;}if(menu2AB<menu2PH){menu2MB=menu2Py[menu2Py.length-1]-(menu2PH-menu2AB);if(menu2MB<menu2STA){menu2MB=menu2STA;}menu2Py[menu2Py.length-1]=menu2MB;}document.all["menu2Popup"+id].style.left=menu2Px[menu2Px.length-1];document.all["menu2Popup"+id].style.top=menu2Py[menu2Py.length-1];menu2PI[menu2PI.length]=id;}if(navigator.platform!="MacPPC"){menu2MS(id,menu2Px[menu2Px.length-1],menu2Py[menu2Py.length-1],menu2PW,menu2PH);}if(navigator.platform=="MacPPC"){document.all["menu2Popup"+id].style.left-=MacLeftOffset;document.all["menu2Popup"+id].style.top-=MacTopOffset;}if(navigator.platform!='MacPPC'){if(navigator.userAgent.indexOf('MSIE 5.0')<=0){menu2IFSH(id);}}}function menu2HP(level){if(menu2Clkd==-1){return false;}else if(level==0){clearTimeout(menu2STI);menu2Clkd=-1;var id = menu2PI[0];var count=0;for(count=0;count<menu2NH.length;count++){menu2DiI(menu2NH[count]);}menu2NH.length=0;if(document.all['menu2MenuButton'+id]){menu2ButtonNormal("menu2MenuButton"+id);}menu2ButtonClickState=false;}var count=level;for(count=level;count<menu2PI.length;count++){document.all["menu2Popup"+menu2PI[count]].style.display="none";if(document.all['menu2IFrame'+menu2PI[count]]){document.all['menu2IFrame'+menu2PI[count]].style.display='none';}}menu2PI.length=level;menu2Px.length=level;menu2Py.length=level;if(navigator.platform!="MacPPC"){menu2DS(level);}}function menu2IFSH(id){if(document.readyState!='complete'){return false;}var ifr;if(!document.all['menu2IFrame'+id]){ifr="<iframe src=\"javascript:false;\" id=\"menu2IFrame" + id + "\" scrolling=\"no\" frameborder=\"0\" style=\"position:absolute;top:0x;left:0px;z-index:999;display:none\"></iframe>";document.all['menu2Popup'+menu2PI[menu2PI.length-1]].insertAdjacentHTML('beforeBegin',ifr);}if(document.all['menu2IFrame'+id]){ifr=document.all['menu2IFrame'+id].style;ifr.top=menu2Py[menu2Py.length-1];ifr.left=menu2Px[menu2Px.length-1];ifr.width=menu2PW;ifr.height=menu2PH;ifr.filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';ifr.display='block';}}function menu2CR(){menu2AR=(menu2BW+menu2SLA)-menu2Px[menu2Px.length-1];if(menu2AR<menu2PW+4){if(menu2SPnt=="below"||menu2SPnt=="above"){menu2MB=menu2Px[menu2Px.length-1]-(menu2PW-menu2AR)-4;if(menu2MB<0||menu2MB<menu2SLA){menu2MB=menu2SLA;}menu2Px[menu2Px.length-1]=menu2MB;}else{menu2MB=menu2SEL-menu2PW;if(menu2MB>=0){menu2Px[menu2Px.length-1]=menu2MB;}}}}function menu2CL(){if(menu2Px[menu2Px.length-1]<(menu2SLA)){menu2Px[menu2Px.length-1]=menu2SEL+menu2SEW;menu2CR();}}function menu2CB(){menu2AB=(menu2BH+menu2STA)-menu2Py[menu2Py.length-1];if(menu2AB<menu2PH){if(menu2SPnt=="below"){menu2MB=menu2Py[menu2Py.length-1]-menu2PH-menu2SEH;if(menu2MB>=0){menu2Py[menu2Py.length-1]=menu2MB;}}else{menu2MB=menu2Py[menu2Py.length-1]-(menu2PH-menu2AB);if(menu2MB<0||menu2MB<menu2STA){menu2MB=menu2STA;}menu2Py[menu2Py.length-1]=menu2MB;}}}function menu2CA(){if(menu2Py[menu2Py.length-1]<(menu2STA)){menu2Py[menu2Py.length-1]=menu2SET+menu2SEH;menu2CB();}}function menu2ScI(level){menu2TL=level;switch(menu2SPnt){case "above":if(level>=0){menu2PR.style.clip="rect(" + level + " " + (menu2PW - level) + " " + menu2PH + " 0)";setTimeout("menu2ScI(menu2TL-menu2SS);",50);}else{menu2DiS();menu2PR.style.clip="rect(0 " + menu2PW + " " + menu2PH + " 0)";menu2SA=false;}break;case "left":if(level>=0){menu2PR.style.clip="rect(0 " + menu2PW + " " + (menu2PH - level) + " " + level + ")";setTimeout("menu2ScI(menu2TL-menu2SS);",50);}else{menu2DiS();menu2PR.style.clip="rect(0 " + menu2PW + " " + menu2PH + " 0)";menu2SA=false;}break;case "below":case "right":if(level>=0){menu2PR.style.clip="rect(0 " + (menu2PW - level) + " " + (menu2PH - level) + " 0)";setTimeout("menu2ScI(menu2TL-menu2SS);",50);}else{menu2DiS();menu2PR.style.clip="rect(0 " + menu2PW + " " + menu2PH + " 0)";menu2SA=false;}break;}}function menu2MS(id,x,y,w,h){var rt;var rs;var i;for (i=0;i<4;i++){rt=document.createElement("div");rs=rt.style;rs.display='none';rs.position="absolute";rs.zIndex=2000;rs.left=(x+i)+(4);rs.top=((y+3)-i)+(4);if(menu2PW>8){rs.width=w-(i*2);}if(menu2PH>8){rs.height=(h-6)+(i*2);}rs.backgroundColor="#000000";rs.filter="alpha(opacity=6)";document.all["menu2Popup"+menu2PI[menu2PI.length-1]].insertAdjacentElement("beforeBegin",rt);menu2Sdw[menu2Sdw.length]=rt;if(menu2SA==0){rs.display='block';}}}function menu2DiS(){if(navigator.platform=='MacPPC'){return;}var i;for(i=0;i<4;i++){if(menu2Sdw[i]){menu2Sdw[i].style.display='block';}}}function menu2DS(level){var i;var Keep=level*4;for(i=Keep;i<menu2Sdw.length;i++){menu2Sdw[i].style.display='none';menu2Sdw[i].removeNode(true);}menu2Sdw.length=Keep;}function menu2ShowInFrame(MenuID,x,y){x+=document.body.scrollLeft;y+=document.body.scrollTop;menu2Show(MenuID,'','below',x,y,1);}function menu2Refresh(){}var menu2ButtonClickState=false;var menu2CurrentButtonId;var menu2ButtonsObj;var menu2NeedPosInit=true;var menu2Top=10;var menu2Left=10;var menu2MBIF;var menu2MBIFT;function menu2ButtonDown(id,gid){menu2CurrentButtonId=id;menu2ButtonSunken(id);if(gid){menu2Show(gid, id, 'below', 2, 2);}}function menu2ButtonSelect(id,gid){if(!menu2ButtonClickState){menu2ButtonRaised(id);}else{menu2ButtonNormal(menu2CurrentButtonId);clearTimeout(menu2TI);menu2ButtonDown(id,gid);}}function menu2ButtonUnSelect(id){if(!menu2ButtonClickState){menu2ButtonNormal(id);}else{menu2Hide();}}function menu2ButtonRaised(id){var obj = document.all(id).style;obj.borderTopColor = "#ffffff";obj.borderLeftColor = "#ffffff";obj.borderBottomColor = "#999";obj.borderRightColor = "#999";obj.backgroundColor = "#ccc";obj.borderWidth='1px';obj.paddingBottom = "4px";obj.paddingTop = "4px";obj.paddingLeft = "6px";obj.paddingRight = "6px";obj.color = "#000000";}function menu2ButtonSunken(id){var obj = document.all(id).style;obj.borderTopColor = "#999";obj.borderLeftColor = "#999";obj.borderBottomColor = "#ffffff";obj.borderRightColor = "#ffffff";obj.backgroundColor = "#ccc";obj.borderWidth='1px';obj.paddingBottom = "3px";obj.paddingTop = "5px";obj.paddingLeft = "7px";obj.paddingRight = "5px";obj.color = "black";}function menu2ButtonNormal(id){var obj = document.all(id).style;obj.borderTopColor = "#f1f1f1";obj.borderLeftColor = "#f1f1f1";obj.borderBottomColor = "#f1f1f1";obj.borderRightColor = "#f1f1f1";obj.backgroundColor = "#f1f1f1";obj.borderWidth='0px';obj.paddingBottom = "5px";obj.paddingTop = "5px";obj.paddingLeft = "7px";obj.paddingRight = "7px";obj.color = "#000000";}function menu2MenuBarInit(){}

//================================ 以下是动态显示图片 ============================================



