﻿// JScript 文件
var tps=0;//face
var dxken;//language
function qhzml(x) 
{
	var dobj = document.getElementById("mm"+x);
	if (x>2)
	{
	    if (dobj.style.display=="block") return;    }
	else
	{
	    if (dobj.className=="ysm1"&&dobj.style.display=="block") return;
		for (i=1;i<=2;i++) 
		{
		    document.getElementById("mm"+i).className="ysm0";document.getElementById("mm"+i).style.display="block";
		}
		dobj.className="ysm1"
	}
//    if(x==1)
//    {
//	     document.getElementById("login").style.display = 'none';

//     }
//    if(x==2)
//     {
//	     document.getElementById("login").style.display = 'block';
//     }
}


function changetp(pd)
{
    if (pd=="z"){tps=++tps;}
    if (pd=="y"){tps=--tps;}
	if (tps<0){tps=134;}
	if (tps>134){tps=0;} document.LeftMeunfrom.facestr.value=document.LeftMeunfrom.imgface.src="Image/face/"+tps+".gif";
}

function ly(pd)
{
    if (pd==0)//liuyanFettle
    {
		var ts1="The manager has forbidden the message function!\n\nPrompt: The manager lands after the administrative district may the message";
		alert((dxken)? ts1 :"管理员已禁止留言功能！\n\n提示:请与管理员联系");return false;
	}
	if (document.LeftMeunfrom.xm.value==""){alert((dxken)?"The name cannot be spatial!":"留言人姓名不能为空！");return false;}
	if (document.LeftMeunfrom.nr.value==""){alert((dxken)?"The content cannot be spatial!":"留言内容不能为空！");return false}
	if (document.LeftMeunfrom.nr.value.length>150){alert("留言内容长度不能超过150个字符！");return false;}
}

function land()
{
    if(document.getElementById("tbuser").value==""){alert("用户名不能为空！"); return false;}
    if(document.getElementById("tbpwd").value==""){alert("密码不能为空！");return false;}
    if(document.getElementById("txtVI").value==""){alert("验证码不能为空！");return false;}

}
