// JavaScript Document
function LoadFlash(url,wmode,width,Height)
{ 
document.write(
'<embed src="' + url + '" wmode=' + wmode +
' quality="high" pluginspage=http://www.macromedia.com/go/getflashplayer type="application/x-shockwave-flash" width="' + width + 
'" height="' + Height + '"></embed>'); 
}
function set_img(objimg,imgwidth,imgheight)
{
	//alert(adNum);
	var tmpImg=new Image();
	var tempw=0,temph=0;
	tmpImg.src=objimg.src;
	tempw=tmpImg.width;
	temph=tmpImg.height;
	if(tmpImg.width>imgwidth)
	{
		temph=(tmpImg.height*(imgwidth/tmpImg.width)).toFixed(0);
		tempw=imgwidth;
	}
	if(temph>imgheight)
	{
		tempw=(tempw*(imgheight/temph)).toFixed(0);
		temph=imgheight;
	}
	objimg.width=tempw;
	objimg.height=temph;
	
}

function high(which2){
theobject=which2;theobject.filters.alpha.opacity=0
highlighting=setInterval("highlightit(theobject)",150)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=100
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=30
else if(window.highting)
clearInterval(highlighting)
}

function showsubmenu(sid)
{
var temp;
temp = eval("submenu"+sid);
if (temp.style.display =="none")
{
eval("submenu"+sid+".style.display=\"\";");
}
else
{
eval("submenu"+sid+".style.display=\"none\";");

}
}

function chklogin(){
if (frm.usrID.value==""){
alert("用户ID未填写！");
frm.usrID.focus();
return false;
}
if (frm.usrPSW.value==""){
alert("密码不能为空！");
frm.usrPSW.focus();
return false;
}
}

function winopen(url)
{
window.open(url,"活动花絮","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes,width=480,height=450,top=200,left=200");
}

