function flash(url,width,height,var1) {
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0" width="'+width+'" height="'+height+'" id="flashvars">');
    document.write('<param name="movie" value="'+url+'" />');
    document.write('<param name="quality" value="high" />');
    document.write('<param name="flashVars" value="'+var1+'" />');
    document.write('<param name="wmode" value="transparent" />');
    document.write('<param name="menu" value="false" />');
    document.write('<embed flashvars="'+var1+'" src="'+url+'" wmode="transparent" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" swLiveConnect="true" name="flashvars"></embed>');
    document.write('</object>');
}

function selecthide(ucode){
	if(ucode=="on"){
		document.getElementById("login_txt").style.display='block';
	}
	else {
		document.getElementById("login_txt").style.display='none';
	}
}

//function addCookie(name,value,expireHours){
//	var cookieString=name+"="+escape(value);
//	//判断是否设置过期时间
//	if(expireHours>0){
//		var date=new Date();
//		date.setTime(date.getTime()+expireHours*3600*1000);
//		cookieString=cookieString+";expires="+date.toGMTString()+";path=/;domain=127.0.0.1:102";
//		cookieString=cookieString+";expires="+date.toGMTString()+";path=/;domain=";
//	}
//	document.cookie=cookieString;
//}
function getCookie(name){
	var strCookie=document.cookie;
	var arrCookie=strCookie.split("; ");
	for(var i=0;i<arrCookie.length;i++){
		var arr=arrCookie[i].split("=");
		if(arr[0]==name&&arr[1])return unescape(arr[1]);
	}
	return "";
}
function deleteCookie(name){
	var date=new Date();
	date.setTime(date.getTime()-1000000000000);
	document.cookie=name+"=;expire="+date.toGMTString();
}