// JavaScript Document


//邮箱防垃圾邮件
function showEmail(account,domain)
{
document.write("<A href='mai"+"lto:"+account+"@"+domain+"'>"+account+"@"+domain+"</A>");
}


//验证搜索表单
function testFormSearch(){
	if(document.all("q").value==""){
		alert("请输入要搜索的内容");
		document.all("q").focus();
		return false;
	}else return true;

}

//验证普通用户邮箱表单
function testFormEmail(){
	if(document.all("user").value==""){
		alert("请输入用户名");
		document.all("user").focus();
		return false;
		}
	if(document.all("pass").value==""){
		alert("请输入密码");
		document.all("pass").focus();
		return false;
	}
	return true;
}

//验证管理员邮箱表单
function testFormEmail2(){
	if(document.all("uid").value==""){
		alert("请输入管理员用户名");
		document.all("uid").focus();
		return false;
		}
	if(document.all("passwd").value==""){
		alert("请输入管理员密码");
		document.all("passwd").focus();
		return false;
	}
	if(document.all("uid").value.indexOf("@")==-1){
		with (document.form3) {
					account.value =account.value + "@purple-river.com";
			}
	}
	return true;
}

//分页跳转
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->

