﻿
function showflash(flashsrc,widthpx,heightpx){var fStr='';fStr+=('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+widthpx+'" height="'+heightpx+'">');fStr+=('<param name="movie" value="'+flashsrc+'">');fStr+=('<param name="quality" value="high">');fStr+=('<param name="menu" value="false">');fStr+=('<param name="wmode" value="transparent">');fStr+=('<embed src="'+flashsrc+'" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+widthpx+'" height="'+heightpx+'">');fStr+=('</embed>');fStr+=('</object>');document.write(fStr);};function secBoard1(a,b){eval(a+".style.display=\"inline\";");eval(b+".style.display=\"none\";");}
function secBoard2(a,b,c,d){eval(a+".style.display=\"inline\";");eval(b+".style.display=\"none\";");eval(c+".style.display=\"none\";");eval(d+".style.display=\"none\";");}
function style_menu1(m,n){eval(m+".className='menu01'");eval(n+".className='menu02'");document.getElementById(m).className="menu01";document.getElementById(n).className="menu02";}
function style_menu2(a,b,c,d){eval(a+".className='menu01'");eval(b+".className='menu02'");eval(c+".className='menu02'");eval(d+".className='menu02'");}
function diyWidth(divId,theWidth){el=document.getElementById(divId);el.style.width=(document.documentElement.clientWidth-theWidth)+"px";}
function div_close(divId){document.getElementById(divId).style.display="none";}
function div_show(div){if(div=="login")
{$get("RequiredFieldValidator1").style.display="none";$get("RequiredFieldValidator2").style.display="none";$get("RegularExpressionValidator1").style.display="none";$get("RegularExpressionValidator2").style.display="none";$get("User").value="";$get("Password").value="";}
document.getElementById(div).style.display="block";}
function display(id){var traget=document.getElementById(id);if(traget.style.display=="none"){traget.style.display="";}else{traget.style.display="none";}}
function book_mark(){var title=document.title
var url=document.location.href
if(window.sidebar)window.sidebar.addPanel(title,url,"");else if(window.opera&&window.print){var mbm=document.createElement('a');mbm.setAttribute('rel','sidebar');mbm.setAttribute('href',url);mbm.setAttribute('title',title);mbm.click();}
else if(document.all)window.external.AddFavorite(url,title);}
function SetWinHeight(obj)
{var win=obj;if(document.getElementById)
{if(win&&!window.opera)
{if(win.contentDocument&&win.contentDocument.body.offsetHeight)
win.height=win.contentDocument.body.offsetHeight;else if(win.document&&win.document.body.scrollHeight)
var h=win.Document.body.scrollHeight
win.height=h;}}}

function resizeIframe(obj){var Iframe=obj;if(Iframe){if(Iframe.contentDocument){Iframe.style.height=Iframe.contentDocument.body.scrollHeight+5+'px';}
else
if(Iframe.document&&Iframe.document.body.scrollHeight)
{Iframe.style.height=right.document.body.scrollHeight+5+'px';}}}

//控制百宝箱显示关闭
function showModalScreen(){
	id = "modalScreen";
	var w = 0, h = 0;
	w = document.documentElement.scrollWidth || document.body.scrollWidth || window.scrollWidth || 0;
	h = document.documentElement.scrollHeight || document.body.scrollHeight || window.scrollHeight || 0;

	var sc = document.getElementById(id);
	sc.style.width = w + "px";
	sc.style.height = h + "px";
	sc.style.display = "block";
	 document.getElementById("loginDiv").style.display = "block";
	 document.getElementById("ifr1").src = "bbx/index.htm";
	 document.getElementById("loginDiv").style.left = (w-718)/2;
}
function closeModalScreen(){
	 document.getElementById("modalScreen").style.display = "none";
	 document.getElementById("loginDiv").style.display = "none";
}