function fucCheckLength(strTemp)
{
	var i,sum;
	sum=0;
	for(i=0;i<strTemp.length;i++)
	{
		if ((strTemp.charCodeAt(i)>=0) && (strTemp.charCodeAt(i)<=255))
			sum=sum+1;
		else
			sum=sum+2;
	}
	return sum;
}

function showLen(obj)
{
document.getElementById("reviewLen").value=fucCheckLength(obj.value);
}
//----------------------------------------------------------------------
var xxid;
var titleshowxx;
var prvexxid;
var fid = null;
var showlb = null;
function showtitle(id,xinxi,fls,fids,w,h,t,l,lb) {
	//alert(lb);
	bb = false;
	xxid = id; titleshowxx = xinxi; fid = fids; showlb = lb;
	if (prvexxid != "" && prvexxid != null && prvexxid != "diangeids" && document.getElementById(prvexxid)){document.getElementById(prvexxid).innerHTML = '';}
	if (showlb != "" && showlb != null && showlb != "toum"){
		document.getElementById(id).innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+fid+"' style='position: absolute; margin: "+t+"px "+l+"px; z-index:1000;'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='"+fls+"' /><param name='quality' value='high' /><embed src='"+fls+"' quality='high' width='"+w+"' height='"+h+"' name='"+fid+"' allowscriptaccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>";
	} else {
		document.getElementById(id).innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+fid+"' style='position: absolute; margin: "+t+"px "+l+"px; z-index:1000;'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='"+fls+"' /><param name='quality' value='high' /><PARAM name='wmode' value='transparent' /><embed src='"+fls+"' quality='high' width='"+w+"' height='"+h+"' name='"+fid+"' allowscriptaccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' wmode='transparent' /></object>";
	}
	prvexxid = xxid;
}
function showstart() {window.document[fid].asFunc(xxid,titleshowxx,showlb);}
function showclose(id) {if (document.getElementById(id)) {document.getElementById(id).innerHTML = '';}}
//mailpage
function mailpagetart() {var uuuu = location.href; window.document["mailpagesd"].asFunc(uuuu);}

function Timestr(inputid,times) {if (document.getElementById(inputid)) {document.getElementById(inputid).value = times;}}
//----------------------------------------------------------------------
function CheckForm(){
	if(document.UserLogin.Username00.value==""){
		alert("请输入帐号！");
		document.UserLogin.Username00.focus();
		return false;
	}
	if(document.UserLogin.Password00.value == ""){
		alert("请输入密码！");
		document.UserLogin.Password00.focus();
		return false;
	}
	if(document.UserLogin.CheckCode1.value==""){
		alert("请输入验证码！");
		document.UserLogin.CheckCode1.focus();
		return false;
	}
}