﻿// JavaScript Document
//站内搜索表单验证
function Search_check(){
 if (document.SearchForm.SearchName.value=="快速搜索..."){
  alert("请输入您要快速搜索的关键词！");
  document.SearchForm.SearchName.focus();
  return false;
 } 
}
//end//
<!--
// Banner切换图 Accordion


//-->
function getID(id){return document.getElementById(id);}

//验证提交订单前是否登录
function AlertButton(){window.alert("请您登陆后再操作！");window.location='userlogin.asp';}
function AlertRegButton(){window.alert("请您登陆后再操作！");}
//注册同意注册协议下一步按钮
function check(obj){
if(obj.checked){
document.getElementById("Submit").disabled = false;
}else{
document.getElementById("Submit").disabled = true;
}
}

//右侧建站提交验证
function RightReg_CheckForm(){
//判断电子邮箱帐号开始
 if (document.RightRegForm.OrderEmail.value.length == 0) {
    alert("请输入您的Email！");
	document.RightRegForm.OrderEmail.focus();
	return false;
	}
	else if ((document.RightRegForm.OrderEmail.value.indexOf("@")<0)||(document.RightRegForm.OrderEmail.value.indexOf(":")!=-1)||(document.RightRegForm.OrderEmail.value.indexOf(".")<0))
           {
            alert("对不起，您输入的Email帐号无效！请您输入正确的Email帐号！");
            document.RightRegForm.OrderEmail.focus();
            return false;
    }
//判断电子邮箱帐号结束
if (document.RightRegForm.OrderUserName.value==""){
 alert("请输入您的姓名!");
 document.RightRegForm.OrderUserName.focus();
 return false;
}
if (document.RightRegForm.OrderCompany.value==""){
 alert("请输入您的公司名称或个人姓名!");
 document.RightRegForm.OrderCompany.focus();
 return false;
}
if (document.RightRegForm.OrderTel.value==""){
 alert("请输入您的联系电话!");
 document.RightRegForm.OrderTel.focus();
 return false;
}
}
//右侧建站提交验证结束

//登录前评论提交验证
function ProCommentNoLogin_CheckForm(){
if (document.ProComment.ProLoginUserName.value==""){
 alert("请输入您的用户名!");
 document.ProComment.ProLoginUserName.focus();
 return false;
}
if (document.ProComment.ProLoginUserPassword.value==""){
 alert("请输入您的密码!");
 document.ProComment.ProLoginUserPassword.focus();
 return false;
}

if (document.ProComment.ReplyContent.value==""){
 alert("请输入您的评论内容!");
 document.ProComment.ReplyContent.focus();
 return false;
}
}
//登录前评论提交验证结束
//登录后评论提交验证
function ProComment_CheckForm(){
if (document.ProComment.ReplyContent.value==""){
 alert("请输入您的评论内容!");
 document.ProComment.ReplyContent.focus();
 return false;
}
}
//登录后评论提交验证结束

