﻿jQuery(function($){
	for(var jj=0;jj<$("#Ant_RegForm li").length;jj++){
		$("#Ant_RegForm li input:eq("+jj+")").bind("focus",function(){ 
			if( $(this).attr("name")!="AntRegSubmit")
			{
				if( $(this).parent().attr("id")=="nomail") 
				{
					$(this).parent().parent().css("background","#f4fcfe");
					$(this).parent().parent().css("border","solid 1px #d4e8fc");	
				}
				else
				{
					$(this).parent().css("background","#f4fcfe");
					$(this).parent().css("border","solid 1px #d4e8fc");	
				}
			}
		}).bind("blur",function(){ 
			if( $(this).parent().attr("id")=="nomail") 
			{
				$(this).parent().parent().css("background","#ffffff");
				$(this).parent().parent().css("border","solid 1px #ffffff");	
			}
			else
			{
				$(this).parent().css("background","#ffffff");
				$(this).parent().css("border","solid 1px #ffffff");		
			}
		});															
	}
	$("#AntAgreeMent").click(function(){ 
		ShowDailog("会员注册条款", 200, 200, "MemberAgree.aspx?AgreeID=1",'true','AntTermsBg.gif','AntTuanclose.gif','AntTermsTips.gif','d1e6fc','F6F9FF','74b1fc','74b1fc');
		return false;
	});	
	$("#RegVerifyCodeClick").click(function(){ 
		$("#RegVerifyCode").attr("src","../VerifyCode/VerifyCode.aspx?key=1&tt="+Math.random());			  
	});		
	$("#RegVerifyCode").css("cursor","pointer");
	$("#RegVerifyCode").click(function(){ 
		$("#RegVerifyCode").attr("src","../VerifyCode/VerifyCode.aspx?key=1&tt="+Math.random());			  
	});	
	$("#AntRegUserCode").focus(function(){ 
		if($("#RegVerifyCode").attr("src").indexOf("/VerifyCode/")==-1)
			$("#RegVerifyCode").attr("src","../VerifyCode/VerifyCode.aspx?key=1&tt="+Math.random());			  
	});	
	/*登录按钮事件 start*/
	$("#InfoAccountCode").focus(function(){ 
		if($("#LoginVerifyCode").attr("src").indexOf("/VerifyCode/")==-1)
		{
			$("#LoginVerifyCode").attr("src","../VerifyCode/VerifyCode.aspx?key=1&tt="+Math.random());
			$("#LoginVerifyCodeClickHide").show();
		}
	});	
	$("#LoginVerifyCode").css("cursor","pointer");
	$("#LoginVerifyCode").click(function(){ 
		$("#LoginVerifyCode").attr("src","../VerifyCode/VerifyCode.aspx?key=1&tt="+Math.random());
		$("#LoginVerifyCodeClickHide").show();
	});	
	$("#LoginVerifyCodeClick").click(function(){ 
		$("#LoginVerifyCode").attr("src","../VerifyCode/VerifyCode.aspx?key=1&tt="+Math.random());
	});	
	/*登录按钮事件 end*/
	$(".BtForm").unbind("mouseover");
	$("#InfoAccountLoginSubmit").click(function(){
		var username = $.trim($(".InfoAccountUsername").val());							   
		var userpwd = $.trim($(".InfoAccountUserpwd").val());
		var usercode = $.trim($("#InfoAccountCode").val());
		if(username.length==0)
		{
			alert("对不起，请输入您的用户名！");
			$(".InfoAccountUsername").focus();
			return false;
		}	
		if(userpwd.length==0)
		{
			alert("对不起，请输入您的密码！");
			$(".InfoAccountUserpwd").focus();
			return false;
		}
		if(usercode.length==0)
		{
			alert("对不起，请输入验证码！");
			$("#InfoAccountCode").focus();
			return false;
		}
		var tt="";
		if($("input[name='InfoAccountCheckbox']:checked").val()=="1"){
			tt="true";	
		}
		$("#InfoAccountLoginSubmit").attr("disabled", true); //设置为不可点
		$("#InfoAccountLoginSubmit").val("加载中…");
		AntLoginUsers(username,userpwd,usercode,tt,1)
		return false;
	});
	var now = new Date(),hour = now.getHours() 
	if(hour < 6){$("#AntHours,#AntTopHours").html("凌晨好！")} 
	else if (hour < 9){$("#AntHours,#AntTopHours").html("早上好！")} 
	else if (hour < 12){$("#AntHours,#AntTopHours").html("上午好！")} 
	else if (hour < 14){$("#AntHours,#AntTopHours").html("中午好！")} 
	else if (hour < 17){$("#AntHours,#AntTopHours").html("下午好！")} 
	else if (hour < 19){$("#AntHours,#AntTopHours").html("傍晚好！")} 
	else if (hour < 22){$("#AntHours,#AntTopHours").html("晚上好！")} 
	else {$("#AntHours,#AntTopHours").html("夜里好！")} 
	$(".AntAccout_Content").find(".AntAccout_ClassNo").each(function(){
		$(this).click(function(){
			ShowLeftMenu($(this),$(this).attr("id"));
		});
	});
	$(".AntAccout_Content").find(".AntAccout_ClassYes").each(function(){
		$(this).click(function(){
			ShowLeftMenu($(this),$(this).attr("id"));
		});
	});
	if($("#memeberavatarform").length>0)
	{
		var x=document.getElementById("memeberavatarform");
		x.action="../public/upload.ashx?Action=show";
	}
	$("#memeberavatarform").submit(function(){
		if( $("#Fileavatar").val().length==0){
			alert("对不起，请选择您要上传的文件。");
			return false;
		}
		var x=document.getElementById("memeberavatarform");
		x.action="../public/upload.ashx?Action=show"
	});
	$("#memeberavatarshuoxiao").submit(function(){
		var x=document.getElementById("memeberavatarshuoxiao");
		x.action="../public/upload.ashx?Action=save"
	});											
	if(document.getElementById("AntAccountmq")){
		Marquee(document.getElementById("AntAccountmq"), 40, 20, 2000);	
	}
	if($_D("dialogInfoTop"))
	{
		$("#InfoDay").bind("keyup",function(){
			this.value=this.value.replace(/\D/g,'');
			GetInfoTotal();
		});
		$("#InfoMoney").bind("keyup",function(){
			this.value=this.value.replace(/\D/g,'');								  
			GetInfoTotal();
		});
		$("#infobold").bind("click",function(){
			GetInfoTotal();
		});
		$("#infocolor").bind("click",function(){
			GetInfoTotal();
		});
		if(parseInt($("#UserScore").html())<parseInt($("#TotalScore").html()))
			$("#InfoTopSubmit").attr("disabled", true); //设置为不可点
		$("#dialogInfoTop").submit(function(){
			if( $("#InfoMoney").val() < parseInt($("#SiteInfoJingjia").html()))
			{
				$("#InfoTopSubmit").attr("disabled", true); //设置为不可点
				alert("对不起，出价不能低于底价"+$("#SiteInfoJingjia").html()+"！");
				$("#InfoMoney").focus();
				return false;
			}
			var args = new Object();
		    args = GetUrlParms();
		    var InfoID = args["InfoID"];
			var tt1=0,tt2=0;
			if( $("input[name='infocolor']:checked").val()=="1" )
				tt1=1;
			if( $("input[name='infobold']:checked").val()=="1" )
				tt2=1;
			 $.ajax({
			  url: "../public/ajax.aspx?action=topinfo&InfoID="+InfoID+"&InfoDay="+$("#InfoDay").val()+"&InfoMoney="+$("#InfoMoney").val()+"&tt1="+tt1+"&tt2="+tt2,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，付费竟价成功!");
					window.parent.AntInfoClass.InfoTop(InfoID);
				  }
				  else{
					alert(data);
				  }
			  }
			});
			return false;
		});
	}
	if($_D("dialogInfozhiding"))
	{
		$("#infobold").bind("click",function(){
			GetInfoTotalDing();
		});
		$("#infocolor").bind("click",function(){
			GetInfoTotalDing();
		});
		$("#infozhiding").bind("click",function(){
			GetInfoTotalDing();
		});
		$("[name='RadioGroup']").each(function(){ 
			$(this).click(function(){
				var total = $("#infozhidingscore").val() * $("input[name='RadioGroup']:checked").val();
				$("#infozhidingtotal").html(total);
				GetInfoTotalDing();
			});
		});
		if(parseInt($("#UserScore").html())<parseInt($("#TotalScore").html()))
			$("#zhidingsubmit").attr("disabled", true); //设置为不可点
		$("#dialogInfozhiding").submit(function(){
			var tt1=0,tt2=0,tt3=0,tt4=0;
			if( $("input[name='infocolor']:checked").val()=="1" )
				tt1=1;
			if( $("input[name='infobold']:checked").val()=="1" )
				tt2=1;
			if( $("input[name='infozhiding']:checked").val()=="1" )
				tt3=1;
			tt4=$("input[name='RadioGroup']:checked").val();
			if(tt1==0 && tt2==0 && tt3==0)
			{
				$("#zhidingsubmit").attr("disabled", true); //设置为不可点
				alert("对不起，请选择一种服务！");
				return false;
			}
			var args = new Object();
		    args = GetUrlParms();
		    var InfoID = args["InfoID"];
			 $.ajax({
			  url: "../public/ajax.aspx?action=dinginfo&InfoID="+InfoID+"&tt1="+tt1+"&tt2="+tt2+"&tt3="+tt3+"&tt4="+tt4,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，付费置顶成功!");
					window.parent.AntInfoClass.InfoZhiDing(InfoID);
				  }
				  else{
					alert(data);
				  }
			  }
			});
			return false;
		});
	}
	if($_D("memeberpasswordform"))
	{
		$.formValidator.initConfig({formid:"memeberpasswordform",errorfocus:false,onerror:function(msg){},onsuccess:function(){
			$("#memeberpasswordformsubmit").attr("disabled", true); 
			$("#memeberpasswordformsubmit").val("提交处理中");  
			var oldpassword= $.trim($("#MemberOldPassword").val());
			var newpassword= $.trim($("#MemberNewPassword").val());
			var newpassword_= $.trim($("#MemberNewPassword_").val());
			var curl="/public/ajax.aspx?action=editpassword";
			curl +="&oldpass="+escape(oldpassword);
			curl +="&userpass="+escape(newpassword);
			curl +="&password="+escape(newpassword_);
			//window.open(curl);
			$.ajax({
				  url: curl,
				  cache: false,
				  success:function(data)
				  {
					  if(data=="1")
					  {
							alert("恭喜您，密码修改成功，请牢记！");
							window.location.href=window.location.href;
					  }
					  else{
							$("#memeberpasswordformsubmit").attr("disabled", false); //设置为可点   单独的登录页面
							$("#memeberpasswordformsubmit").val("修改密码");  
							alert(data);
					  }
				  }
			});	
			return false;
		}});
		$("#MemberOldPassword").formValidator({onshow:"&nbsp;",onfocus:"请输入旧密码。",oncorrect:"&nbsp;"}).inputValidator({min:3,max:60,onerror: "旧密码不能为空。"})
		$("#MemberNewPassword").formValidator({onshow:"&nbsp;",onfocus:"密码长度5~32位，请使用数字加字母或符号的组合方式。",oncorrect:"&nbsp;"}).inputValidator({min:5,empty:{leftempty:false,rightempty:false,emptyerror:"密码两边不能有空符号。"},onerror:"新密码只允许5-32个字符。"});
		$("#MemberNewPassword_").formValidator({onshow:"&nbsp;",onfocus:"再输入一次上面输入的密码。",oncorrect:"&nbsp;"}).inputValidator({min:5,empty:{leftempty:false,rightempty:false,emptyerror:"重复密码两边不能有空符号。"},onerror:"重复密码密码长度5~32位,请确认。"}).compareValidator({desid:"MemberNewPassword",operateor:"=",onerror:"您两次输入的密码不一致,请确认。"});
	}
	if($_D("MemberInfoEditSubmit"))
	{
		$.formValidator.initConfig({formid:"MemberInfoEditForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberInfoEditForm");
			x.action="MemberUserInfoEdit.aspx?action=editInfo&IsCheck=1&from="+window.location.href;
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtInfoAreaID").formValidator({onshow:"&nbsp;",onfocus:"<p>请选择对应的地区</p><span></span>",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "<p>请选择对应的地区</p><span></span>"})
		$("#txtInfoTitle").formValidator({onshow:"&nbsp;",onfocus:"<p>信息标题为6-50个字</p><span></span>",oncorrect:"&nbsp;"}).inputValidator({min:6,max:100,onerror: "<p>请输入标题</p><span></span>"})
		$("#txtInfoMark").formValidator({ tipid: "txtInfoMarkTip",onshow:"&nbsp;",onfocus: "<p>10~2000个字之间</p><span></span>",oncorrect:"&nbsp;"}).inputValidator({ onerror: "<p>请填写信息补充说明</p><span></span>" }).regexValidator({ regexp: "^([\\s\\S]){10,2000}$", onerror: "<p>内容应在10~2000个字之间</p><span></span>" })
		$('#txtInfoMan').formValidator({ onshow:"&nbsp;",onfocus:'<p>联系人2～6个字</p><span></span>',oncorrect:"&nbsp;"}).inputValidator({min:2,max:6,onerror: "<p>请输入联系人,联系人不足2个字</p><span></span>"})
		//$("#txtInfoTel").formValidator({ onshow:"&nbsp;",onfocus: "<p>请正确填写电话号码，分机可以用“-”分开</p><span></span>" ,oncorrect:"&nbsp;"}).inputValidator({ onerror: "<p>请填手机或电话</p><span></span>" }).regexValidator({ regexp: "(^(0\\d{2,3})?-?([2-9]\\d{6,7})(-\\d{1,4})?$)|(^((\\(\\d{3}\\))|(\\d{0}))?(13|14|15|18)\\d{9}$)|(^(400|800)\\d{7}(-\\d{1,4})?$)|(^(95013)\\d{6,8}$)", onerror: "<p>电话填写错误。请参照格式填写：0512-12345678或13812345678</p><span></span>" });
		$("#txtInfoTel").formValidator({ onshow:"&nbsp;",onfocus: "<p>请正确填写电话号码，分机可以用“-”分开</p><span></span>" ,oncorrect:"&nbsp;"}).inputValidator({ onerror: "<p>请填手机或电话</p><span></span>" }).inputValidator({min:6,max:16,onerror: "<p>电话填写错误，请正确填写。</p><span></span>"});
		$("#AntRegUserCode").formValidator({onshow:"&nbsp;",onfocus:"<p>输入右侧验证码。</p><span></span>",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "<p>输入右侧验证码</p><span></span>"})
	}
	$("#MemberInfoEditForm").submit(function()
	{
		var InfoClassID =$("#thisInfoClassID").val();
		if(InfoClassID>0){
			return true;
		}
		else{
			alert("请先选择类目！");
			$("#firstCategory").focus();
			return false;
		}
	});
	if($_D("MemberVoteAddSubmit"))
	{
		$.formValidator.initConfig({formid:"MemberVoteAddForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberVoteAddForm");
			x.action="MemberVoteAdd.aspx?action=edit&IsCheck=1&from=";
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtContentName").formValidator({onshow:"&nbsp;",onfocus:"请输入投票报名参加的报名标题,3-50字以内。",oncorrect:"&nbsp;"}).inputValidator({min:3,max:100,onerror: "请输入投票报名参加的报名标题。"})
		$("#txtContentVoteID").formValidator({onshow:"&nbsp;",onfocus:"请选择您要参加的投票活动。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "请选择您要参加的投票活动。"})
		$("#uploadImageUrl").formValidator({ onshow:"&nbsp;",onfocus: "请上传参加投票活动的图片",oncorrect:"&nbsp;"}).inputValidator({ min:3,onerror: "请上传参加投票活动的图片" })
		$("#txtContentMark").formValidator({ onshow:"&nbsp;",onfocus: "简介请控制在10~250个字之间",oncorrect:"&nbsp;"}).inputValidator({ onerror: "简介请控制在10~250个字之间" }).regexValidator({ regexp: "^([\\s\\S]){10,500}$", onerror: "简介请控制在10~250个字之间" })
	}
	if($_D("MemberVoteEditSubmit"))
	{
		$.formValidator.initConfig({formid:"MemberVoteAddForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberVoteAddForm");
			x.action="MemberVoteAdd.aspx?action=edit&IsCheck=1&from=";
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtContentName").formValidator({onshow:"&nbsp;",onfocus:"请输入投票报名参加的报名标题,3-50字以内。",oncorrect:"&nbsp;"}).inputValidator({min:3,max:100,onerror: "请输入投票报名参加的报名标题。"})
		$("#txtContentVoteID").formValidator({onshow:"&nbsp;",onfocus:"请选择您要参加的投票活动。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "请选择您要参加的投票活动。"})
		$("#uploadImageUrl").formValidator({ onshow:"&nbsp;",onfocus: "请上传参加投票活动的图片",oncorrect:"&nbsp;"}).inputValidator({ min:0,onerror: "请上传参加投票活动的图片" })
		$("#txtContentMark").formValidator({ onshow:"&nbsp;",onfocus: "简介请控制在10~250个字之间",oncorrect:"&nbsp;"}).inputValidator({ onerror: "简介请控制在10~250个字之间" }).regexValidator({ regexp: "^([\\s\\S]){10,500}$", onerror: "简介请控制在10~250个字之间" })
	}
	function returnnumber(aa)
	{
		var re=/^[1-9]+[0-9]*]*$/;
		if(!re.test(aa) || aa.length==0)
			return false;
		else
		{
			return true;	
		}
	}
	if($_D("MemberHouseForm"))
	{
		$("#leixingselectall").click(function(){
			$("[name='txtSalePeizhi']").each(function(){
			  $(this).attr("checked",true);
			})
		});
		$("#leixingselectno").click(function(){
			$("[name='txtSalePeizhi']").each(function(){
			  $(this).attr("checked",false);
			})
		});
		$("#SelectAntCommunity").click(function(){
			ShowDailog('从小区名单中选择对应小区',301,201,'/ShowAjaxPage.aspx?action=showcommunity','true','','AntAdminlose.gif','','c5e2ff','ffffff','5da9dd','5da9dd');
			return false;
		});
		$.formValidator.initConfig({formid:"MemberHouseForm",errorfocus:false,onerror:function(msg){alert(msg);},onsuccess:function(){	
			$("#MemberHouseSubmit").attr("disabled", true); //设置为不可点
			var x=document.getElementById("MemberHouseForm");
			x.action="MemberHouseAddOver.aspx?saction=addhouserent&from="+window.location.href;
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtSalesNo").formValidator({onshow:"&nbsp;",onfocus:"请正确输入房源编号，可以默认不修改。",oncorrect:"&nbsp;"}).inputValidator({min:6,max:12,onerror: "房源编号，长度限制6-12位。"})
		$("#txtSaleTitle").formValidator({onshow:"&nbsp;",onfocus:"用一句话概括您房源的特点。",oncorrect:"&nbsp;"}).inputValidator({min:6,max:120,onerror: "房源标题一定要填的噢，长度限制6-120位。"})
		$("#txtSaleCommunityName").formValidator({onshow:"&nbsp;",onfocus:"请输入小区名称，也可以选择。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "小区名称一定要填的噢，也可以选择。"})
		$("#txtSaleCommunityAreaID").formValidator({onshow:"&nbsp;",onfocus:"请选择小区方位。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "小区方位一定要填的噢。"})
		$("#txtSaleCommunityAddress").formValidator({onshow:"&nbsp;",onfocus:"请输入小区地址。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "小区地址一定要填的噢，长度限制2-100位。"})
		$("#txtSaleLeixing").formValidator({onshow:"&nbsp;",onfocus:"请选择房屋类型。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "房屋类型一定要选择的噢。"})
		$("#txtSaleShi").formValidator({tipid:"txtSaleShiTip",onshow:"&nbsp;",onfocus:"房型和楼层一定要填的噢。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:8,type:"value",onerror:"只能输入1-8之间的数。",onerrormin: "房型和楼层一定要填的噢。"})
		$("#txtSaleTing").formValidator({tipid:"txtSaleShiTip",onshow:"&nbsp;",onfocus:"房型和楼层一定要填的噢。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:5,type:"value",onerror:"只能输入0-5之间的数。",onerrormin: "房型和楼层一定要填的噢。"}).regexValidator({regexp:"^\\d{1}$",onerror:"房型输入不正确噢。"})
		$("#txtSaleWei").formValidator({tipid:"txtSaleShiTip",onshow:"&nbsp;",onfocus:"房型和楼层一定要填的噢。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:5,type:"value",onerror:"只能输入0-5之间的数。",onerrormin: "房型和楼层一定要填的噢。"}).regexValidator({regexp:"^\\d{1}$",onerror:"房型输入不正确噢。"})
		$("#txtSaleNowC").formValidator({tipid:"txtSaleShiTip",onshow:"&nbsp;",onfocus:"房型和楼层一定要填的噢。",oncorrect:"&nbsp;"}).inputValidator({min:1,type:"value",onerror:"楼层高度输入错误。",onerrormin: "房型和楼层一定要填的噢。"})
		$("#txtSaleZongC").formValidator({tipid:"txtSaleShiTip",onshow:"&nbsp;",onfocus:"房型和楼层一定要填的噢。",oncorrect:"&nbsp;"}).inputValidator({min:1,type:"value",onerror:"楼层高度输入错误。",onerrormin: "房型和楼层一定要填的噢。"})
		$("#txtSaleSize").formValidator({tipid:"txtSaleSizeTip",onshow:"&nbsp;",onfocus:"房源面积一定要填的噢。",oncorrect:"&nbsp;"}).inputValidator({min:1,type:"value",onerror:"房源面积输入错误，只可以输入数字。",onerrormin: "房源面积一定要填的噢。"})
		$("#txtSaleFuKuan").formValidator({tipid:"txtSaleFuKuanTip",onshow:"&nbsp;",onfocus:"付款要求一定要选择的噢。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "付款要求一定要选择的噢。"})
		$("#txtSaleZhuangxiu").formValidator({onshow:"&nbsp;",onfocus:"房屋装修情况一定要选的噢。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "房屋装修情况一定要选的噢。"})
		$("#txtSaleChaoXiang").formValidator({tipid:"txtSaleZhuangxiuTip",onshow:"&nbsp;",onfocus:"房屋朝向一定要选的噢。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "房屋朝向一定要选的噢。"})
		$("#txtSaleTel").formValidator({onshow:"&nbsp;",onfocus:"联系电话一定要填的噢。",oncorrect:"&nbsp;"}).inputValidator({min:7,max:20,onerror: "联系电话填写不正确。",onerrormin: "手机号码一定要填的噢。"})
		$("#txtSaleMoney").formValidator({onshow:"&nbsp;",onfocus:"租金一定要填的噢。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "租金输入错误，输入0表示面议。",onerrormin: "租金一定要填的噢。"}).regexValidator({regexp:"^[1-9]\\d*.\\d*|0.\\d*[1-9]\\d*|0?.0+|0$",onerror:"租金输入错误，输入0表示面议。"});
		$("#txtSalePassword").formValidator({onshow:"&nbsp;",onfocus:"请输入管理密码，可以输入密码修改、删除房源。",oncorrect:"&nbsp;"}).inputValidator({min:6,max:12,onerror: "管理密码长度为6至12位。"})
	}
	if($_D("MemberHouseDemandForm"))
	{
		$.formValidator.initConfig({formid:"MemberHouseDemandForm",errorfocus:false,onerror:function(msg){alert(msg);},onsuccess:function(){	
			var curl="../public/ajax.aspx?action=AddDemand&DemandTitle="+escape($("#txtDemandTitle").val());
			curl +="&DemandMark="+escape($("#txtDemandMark").val());
			curl +="&DemandTypeid="+$("input[name='txtDemandTypeid']:checked").val();
			curl +="&DemandAreaID="+$("#txtDemandAreaID").val();
			curl +="&DemandName="+escape($("#txtDemandName").val());
			curl +="&DemandTel="+escape($("#txtDemandTel").val());
			if($("#DemandID").length>0){
				curl +="&DemandID="+escape($("#DemandID").val());
			}
			$.ajax({
			  url: curl,
			  cache: false,
			  success:function(data)
			  {
				  if(data=="0")
				  {
					  alert("恭喜您发布成功，请等待客服的审核！");
					  window.location.href=window.location.href;
				  }
				  else if(data=="1")
				  {
					  alert("恭喜您修改成功！");
					  window.location.href=$("#RefferUrl").val();
				  }
				  else
				  	alert(data);
			  }
			});		  
			return false;
		}});
		$("#txtDemandTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入求租求购买标题。",oncorrect:"&nbsp;"}).inputValidator({min:6,max:60,onerror: "请输入求租求购买标题，长度限制6-60位。"})
		$("#txtDemandMark").formValidator({onshow:"&nbsp;",onfocus:"请输入简单的描述。",oncorrect:"&nbsp;"}).inputValidator({min:10,max:500,onerror: "简单描述10-500个字。"})
		$("#txtDemandName").formValidator({onshow:"&nbsp;",onfocus:"请输入您的称呼。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:10,onerror: "称呼不能为空。"})
		$("#txtDemandTel").formValidator({onshow:"&nbsp;",onfocus:"请输入您的联系方式。",oncorrect:"&nbsp;"}).inputValidator({min:7,max:30,onerror: "您的联系方式不能为空，7-20位。"})
	}
	if($_D("dialoghousezhiding"))
	{
		$("#infobold").bind("click",function(){
			GetInfoTotalDing();
		});
		$("#infocolor").bind("click",function(){
			GetInfoTotalDing();
		});
		$("#infozhiding").bind("click",function(){
			GetInfoTotalDing();
		});
		$("[name='RadioGroup']").each(function(){ 
			$(this).click(function(){
				var total = $("#infozhidingscore").val() * $("input[name='RadioGroup']:checked").val();
				$("#infozhidingtotal").html(total);
				GetInfoTotalDing();
			});
		});
		if(parseInt($("#UserScore").html())<parseInt($("#TotalScore").html()))
			$("#zhidingsubmit").attr("disabled", true); //设置为不可点
		$("#dialoghousezhiding").submit(function(){
			var tt1=0,tt2=0,tt3=0,tt4=0;
			if( $("input[name='infocolor']:checked").val()=="1" )
				tt1=1;
			if( $("input[name='infobold']:checked").val()=="1" )
				tt2=1;
			if( $("input[name='infozhiding']:checked").val()=="1" )
				tt3=1;
			tt4=$("input[name='RadioGroup']:checked").val();
			if(tt1==0 && tt2==0 && tt3==0)
			{
				$("#zhidingsubmit").attr("disabled", true); //设置为不可点
				alert("对不起，请选择一种服务！");
				return false;
			}
			var args = new Object();
			args = GetUrlParms();
			var InfoID = args["InfoID"];
			 $.ajax({
			  url: "../public/ajax.aspx?action=dinghouse&InfoID="+InfoID+"&tt1="+tt1+"&tt2="+tt2+"&tt3="+tt3+"&tt4="+tt4,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，付费置顶成功!");
					window.parent.AntHouseSale.InfoZhiDing(InfoID);
				  }
				  else{
					alert(data);
				  }
			  }
			});
			return false;
		});
	}
	if($_D("dialoghouseTop"))
	{
		$("#InfoDay").bind("keyup",function(){
			this.value=this.value.replace(/\D/g,'');
			GetInfoTotal();
		});
		$("#InfoMoney").bind("keyup",function(){
			this.value=this.value.replace(/\D/g,'');								  
			GetInfoTotal();
		});
		$("#infobold").bind("click",function(){
			GetInfoTotal();
		});
		$("#infocolor").bind("click",function(){
			GetInfoTotal();
		});
		if(parseInt($("#UserScore").html())<parseInt($("#TotalScore").html()))
			$("#InfoTopSubmit").attr("disabled", true); //设置为不可点
		$("#dialoghouseTop").submit(function(){
			if( $("#InfoMoney").val() < parseInt($("#SiteInfoJingjia").html()))
			{
				$("#InfoTopSubmit").attr("disabled", true); //设置为不可点
				alert("对不起，出价不能低于底价"+$("#SiteInfoJingjia").html()+"！");
				$("#InfoMoney").focus();
				return false;
			}
			var args = new Object();
		    args = GetUrlParms();
		    var InfoID = args["InfoID"];
			var tt1=0,tt2=0;
			if( $("input[name='infocolor']:checked").val()=="1" )
				tt1=1;
			if( $("input[name='infobold']:checked").val()=="1" )
				tt2=1;
			 $.ajax({
			  url: "../public/ajax.aspx?action=tophouse&InfoID="+InfoID+"&InfoDay="+$("#InfoDay").val()+"&InfoMoney="+$("#InfoMoney").val()+"&tt1="+tt1+"&tt2="+tt2,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，付费竟价成功!");
					window.parent.AntHouseSale.InfoTop(InfoID);
				  }
				  else{
					alert(data);
				  }
			  }
			});
			return false;
		});
	}
	$("#btnPicDelete").click(function(){
		$("#showimage1").show();							  
		$("#showimage2").hide();							  
	});
	if($_D("MemberHouseSaleForm"))
	{
		$("#SelectAntCommunity").click(function(){
			ShowDailog('从小区名单中选择对应小区',301,201,'/ShowAjaxPage.aspx?action=showcommunity','true','','AntAdminlose.gif','','c5e2ff','ffffff','5da9dd','5da9dd');
			return false;
		});
		$.formValidator.initConfig({formid:"MemberHouseSaleForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
				$("#MemberHouseSubmit").attr("disabled", true); //设置为不可点
				var x=document.getElementById("MemberHouseSaleForm");
				x.action="MemberHouseAddOver.aspx?saction=addhousesale&from="+window.location.href;
				return true;
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtSalesNo").formValidator({onshow:"&nbsp;",onfocus:"请正确输入房源编号，可以默认不修改。",oncorrect:"&nbsp;"}).inputValidator({min:6,max:12,onerror: "房源编号，长度限制6-12位。"})
		$("#txtSaleTitle").formValidator({onshow:"&nbsp;",onfocus:"用一句话概括您房源的特点。",oncorrect:"&nbsp;"}).inputValidator({min:6,max:120,onerror: "房源标题一定要填的噢，长度限制6-120位。"})
		$("#txtSaleCommunityName").formValidator({onshow:"&nbsp;",onfocus:"请输入小区名称，也可以选择。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "小区名称一定要填的噢，也可以选择。"})
		$("#txtSaleCommunityAreaID").formValidator({onshow:"&nbsp;",onfocus:"请选择小区方位。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "小区方位一定要填的噢。"})
		$("#txtSaleCommunityAddress").formValidator({onshow:"&nbsp;",onfocus:"请输入小区地址。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "小区地址一定要填的噢，长度限制2-100位。"})
		$("#txtSaleLeixing").formValidator({onshow:"&nbsp;",onfocus:"请选择房屋类型。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "房屋类型一定要选择的噢。"})
		$("#txtSaleShi").formValidator({tipid:"txtSaleShiTip",onshow:"&nbsp;",onfocus:"房型和楼层一定要填的噢。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:8,type:"value",onerror:"只能输入1-8之间的数。",onerrormin: "房型和楼层一定要填的噢。"})
		$("#txtSaleTing").formValidator({tipid:"txtSaleShiTip",onshow:"&nbsp;",onfocus:"房型和楼层一定要填的噢。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:5,type:"value",onerror:"只能输入0-5之间的数。",onerrormin: "房型和楼层一定要填的噢。"}).regexValidator({regexp:"^\\d{1}$",onerror:"客厅输入不正确噢。"})
		$("#txtSaleWei").formValidator({tipid:"txtSaleShiTip",onshow:"&nbsp;",onfocus:"房型和楼层一定要填的噢。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:5,type:"value",onerror:"只能输入0-5之间的数。",onerrormin: "房型和楼层一定要填的噢。"}).regexValidator({regexp:"^\\d{1}$",onerror:"卫生间输入不正确噢。"})
		$("#txtSaleNowC").formValidator({tipid:"txtSaleShiTip",onshow:"&nbsp;",onfocus:"房型和楼层一定要填的噢。",oncorrect:"&nbsp;"}).inputValidator({min:1,type:"value",onerror:"楼层高度输入错误。",onerrormin: "房型和楼层一定要填的噢。"})
		$("#txtSaleZongC").formValidator({tipid:"txtSaleShiTip",onshow:"&nbsp;",onfocus:"房型和楼层一定要填的噢。",oncorrect:"&nbsp;"}).inputValidator({min:1,type:"value",onerror:"楼层高度输入错误。",onerrormin: "房型和楼层一定要填的噢。"})
		$("#txtSaleSize").formValidator({tipid:"txtSaleSizeTip",onshow:"&nbsp;",onfocus:"房源面积一定要填的噢。",oncorrect:"&nbsp;"}).inputValidator({min:1,type:"value",onerror:"房源面积输入错误，只可以输入数字。",onerrormin: "房源面积一定要填的噢。"})
		$("#txtSaleZhuangxiu").formValidator({onshow:"&nbsp;",onfocus:"房屋装修情况一定要选的噢。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "房屋装修情况一定要选的噢。"})
		$("#txtSaleChaoXiang").formValidator({tipid:"txtSaleZhuangxiuTip",onshow:"&nbsp;",onfocus:"房屋朝向一定要选的噢。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "房屋朝向一定要选的噢。"})
		$("#txtSaleTel").formValidator({onshow:"&nbsp;",onfocus:"联系电话一定要填的噢。",oncorrect:"&nbsp;"}).inputValidator({min:7,max:20,onerror: "联系电话填写不正确。",onerrormin: "联系电话一定要填的噢。"})
		$("#txtSaleMoney").formValidator({onshow:"&nbsp;",onfocus:"房屋售价一定要填的噢。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "房屋售价输入错误，输入0表示面议。",onerrormin: "房屋售价一定要填的噢。"}).regexValidator({regexp:"^[1-9]\\d*.\\d*|0.\\d*[1-9]\\d*|0?.0+|0|1|2|3|4|5|6|7|8|9$",onerror:"房屋售价输入错误，输入0表示面议。"});
		$("#txtSalePassword").formValidator({onshow:"&nbsp;",onfocus:"请输入管理密码，可以输入密码修改、删除房源。",oncorrect:"&nbsp;"}).inputValidator({min:6,max:12,onerror: "管理密码长度为6至12位。"})
	}
	if($_D("MemberAgentForm"))
	{
		$.formValidator.initConfig({formid:"MemberAgentForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
				var x=document.getElementById("MemberAgentForm");
				x.action="MemberAgent.aspx?action=add&from="+window.location.href;
				if( $("#txtAgentDomain").length>0)
				{
					if(  $.trim($("#txtAgentDomain").val()).length==0)
					{
						$("#MemberAgentSubmit").attr("disabled", true); //设置为不可点
						return true;
					}
					else{
						if( $.trim($("#txtAgentDomain").val()).length<parseInt($("#SiteSafeDomainLen").html()) && $.trim($("#txtAgentDomain").val()).length >0  )
						{
							alert("对不起，域名长度最低"+$("#SiteSafeDomainLen").html()+"位！");  
							return false;
						}
						else{
							$("#MemberAgentSubmit").attr("disabled", true); //设置为不可点
							return true;
						}
					}
				}
				else{
					$("#MemberAgentSubmit").attr("disabled", true); //设置为不可点	
				}
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtAgentName").formValidator({onshow:"&nbsp;",onfocus:"请输入经纪人姓名。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:20,onerror: "经纪人姓名一定要填的噢，长度限制2-20位。"})
		if( $("#txtAgentDomain").length>0)
		{
			$("#txtAgentDomain").formValidator({onshow:"&nbsp;",onfocus:"如不申请可为空。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^[a-zA-Z0-9]{0,}$",onerror:"只可以为数字和字母。"})
		}
		$("#txtAgentAreaID").formValidator({onshow:"&nbsp;",onfocus:"请选择服务区域。",oncorrect:"&nbsp;"}).inputValidator({min:0,onerror: "服务区域一定要填的噢。"})
		$("#txtAgentQQ").formValidator({onshow:"&nbsp;",onfocus:"请输入您的联系QQ，没有可不填写。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:10,onerror: "联系QQ长度限制在10位以内。",onerrormin: ""})
		$("#txtAgentTel").formValidator({onshow:"&nbsp;",onfocus:"联系电话一定要填的噢。",oncorrect:"&nbsp;"}).inputValidator({min:7,max:20,onerror: "联系电话输入格式不正确，至少7位。",onerrormin: "联系电话一定要填的噢。"})
		$("#txtAgentCompany").formValidator({onshow:"&nbsp;",onfocus:"请输入所属中介公司，也可以自定义。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:30,onerror: "所属中介公司在30汉字内。"})
		$("#txtAgentMark").formValidator({onshow:"&nbsp;",onfocus:"店铺公告没想好可先不填，下次再填。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:100,onerror: "店铺公告在100汉字内。",onerrormin: ""})
		$("#txtAgentTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入搜索引擎的SEO标题，100字以内。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:100,onerror: "请输入搜索引擎的SEO标题，100字以内。",onerrormin: ""})
		$("#txtAgentKeyword").formValidator({onshow:"&nbsp;",onfocus:"请输入搜索引擎的SEO关键字，200字以内。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:200,onerror: "请输入搜索引擎的SEO关键字，200字以内。",onerrormin: ""})
		$("#txtAgentDescription").formValidator({onshow:"&nbsp;",onfocus:"请输入搜索引擎的SEO描述内容，500字以内。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:500,onerror: "请输入搜索引擎的SEO描述内容，500字以内。",onerrormin: ""})

		//$("#txtAgentFilePath").formValidator({onshow:"&nbsp;",onfocus:"请选择上传经纪人头像。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "请选择经纪人头像（宽*高=120*150）。",onerrormin: ""})
	}
	if($_D("MemberAgentCertForm"))
	{
		$.formValidator.initConfig({formid:"MemberAgentCertForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberAgentCertForm");
			x.action="MemberAgentCert.aspx?action=add&from="+window.location.href;
			$("#MemberHouseSubmit").attr("disabled", true); //设置为不可点	
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtAgentCertFilepath").formValidator({onshow:"&nbsp;",onfocus:"请选择上传您的个人身份证或者从业资格证。",oncorrect:"&nbsp;"}).inputValidator({min:2,onerror: "附件是通过认证审核的重要依据，一定要上传的噢。"})
		$("#txtAgentCertMark").formValidator({onshow:"&nbsp;",onfocus:"可以输入联系方式，方便客服快速审核。",oncorrect:"&nbsp;"}).inputValidator({min:10,max:200,onerror: "申请认证说明在10-200汉字内。",onerrormin: ""})
	}
	
	if($_D("MemberAgentCompanyForm"))
	{
		$.formValidator.initConfig({formid:"MemberAgentCompanyForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
				var x=document.getElementById("MemberAgentCompanyForm");
				x.action="MemberAgentCompany.aspx?action=add&from="+window.location.href;
				if( $("#txtCompanyDomain").length>0)
				{
					if(  $.trim($("#txtCompanyDomain").val()).length==0)
					{
						$("#MemberAgentCompanySubmit").attr("disabled", true); //设置为不可点
						return true;
					}
					else{
						if( $.trim($("#txtCompanyDomain").val()).length<parseInt($("#SiteSafeDomainLen").html()) && $.trim($("#txtCompanyDomain").val()).length >0  )
						{
							alert("对不起，域名长度最低"+$("#SiteSafeDomainLen").html()+"位！");  
							return false;
						}
						else{
							$("#MemberAgentCompanySubmit").attr("disabled", true); //设置为不可点
							return true;
						}
					}
				}
				else{
					$("#MemberAgentCompanySubmit").attr("disabled", true); //设置为不可点	
				}
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtCompanyName").formValidator({onshow:"&nbsp;",onfocus:"请输入中介门店名称。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:50,onerror: "中介门店名称一定要填的噢，长度限制2-50位。"})
		if( $("#txtCompanyDomain").length>0)
		{
			$("#txtCompanyDomain").formValidator({onshow:"&nbsp;",onfocus:"如不申请可为空。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^[a-zA-Z0-9]{0,}$",onerror:"只可以为数字和字母。"})
		}
		$("#txtCompanyAddress").formValidator({onshow:"&nbsp;",onfocus:"请输入门店地址，200汉字以内。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:200,onerror: "门店地址200字以内。"})
		$("#txtCompanyEmail").formValidator({onshow:"&nbsp;",onfocus:"请输入中介联系E-mail，没有可不填写。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "联系E-mail长度限制在50位以内。",onerrormin: ""})
		$("#txtCompanyTel").formValidator({onshow:"&nbsp;",onfocus:"请输入中介门店的联系电话。",oncorrect:"&nbsp;"}).inputValidator({min:7,max:20,onerror: "中介门店联系电话输入格式不正确，至少7位。",onerrormin: "联系电话一定要填的噢。"})
		$("#txtCompanyTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入搜索引擎的SEO标题，100字以内。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:100,onerror: "请输入搜索引擎的SEO标题，100字以内。",onerrormin: ""})
		$("#txtCompanyKeyword").formValidator({onshow:"&nbsp;",onfocus:"请输入搜索引擎的SEO关键字，200字以内。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:200,onerror: "请输入搜索引擎的SEO关键字，200字以内。",onerrormin: ""})
		$("#txtCompanyDescription").formValidator({onshow:"&nbsp;",onfocus:"请输入搜索引擎的SEO描述内容，500字以内。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:500,onerror: "请输入搜索引擎的SEO描述内容，500字以内。",onerrormin: ""})
	}
	if($_D("MemberCompanyCertForm"))
	{
		$.formValidator.initConfig({formid:"MemberCompanyCertForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberCompanyCertForm");
			x.action="MemberAgentCompanyCert.aspx?action=add&from="+window.location.href;
			$("#MemberHouseSubmit").attr("disabled", true); //设置为不可点	
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtCompanyCertFilepath").formValidator({onshow:"&nbsp;",onfocus:"请选择上传您的门店相关证件。",oncorrect:"&nbsp;"}).inputValidator({min:2,onerror: "附件是通过认证审核的重要依据，一定要上传的噢。"})
		$("#txtCompanyCertMark").formValidator({onshow:"&nbsp;",onfocus:"可以输入联系方式，方便客服快速审核。",oncorrect:"&nbsp;"}).inputValidator({min:10,max:200,onerror: "申请认证说明在10-200汉字内。",onerrormin: ""})
	}
	if($_D("MemberStoreCertForm"))
	{
		$.formValidator.initConfig({formid:"MemberStoreCertForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberStoreCertForm");
			x.action="MemberStoreCert.aspx?action=add&from="+window.location.href;
			$("#MemberCompanySubmit").attr("disabled", true); //设置为不可点	
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtCompanyCertFilepath").formValidator({onshow:"&nbsp;",onfocus:"请选择上传您的个人身份证或者企业营业执照。",oncorrect:"&nbsp;"}).inputValidator({min:2,onerror: "请选择上传您的个人身份证或者企业营业执照。"})
		$("#txtCompanyCertMark").formValidator({onshow:"&nbsp;",onfocus:"可以输入联系方式，方便客服快速审核。",oncorrect:"&nbsp;"}).inputValidator({min:10,max:200,onerror: "申请认证说明在10-200汉字内。",onerrormin: ""})
	}
	if($_D("MemberNewsForm"))
	{
		$.formValidator.initConfig({formid:"MemberNewsForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			$("#MemberNewsSubmit").attr("disabled", true); //设置为不可点	
			var x=document.getElementById("MemberNewsForm");
			x.action="/public/ajax.aspx?action=addnews&from="+window.location.href;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtNewsTitle").formValidator({onshow:"&nbsp;",onfocus:"新闻标题不能为空噢。",oncorrect:"&nbsp;"}).inputValidator({min:6,max:100,onerror: "新闻标题在6到100汉字之间。"})
		$("#txtTypeParent").formValidator({onshow:"&nbsp;",onfocus:"新闻分类不能为空噢。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "新闻分类一定要选择的噢，可以只选择大类。"})
		$("#txtNewsKeyword").formValidator({onshow:"&nbsp;",onfocus:"新闻关键词不能为空噢。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:50,onerror: "新闻关键词在2到50汉字之间。"})
		$("#txtNewsFrom").formValidator({onshow:"&nbsp;",onfocus:"新闻来源不能为空噢。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:20,onerror: "新闻来源在2到20汉字之间。"})
		$("#txtNewsAuthor").formValidator({onshow:"&nbsp;",onfocus:"新闻作者不能为空噢。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:20,onerror: "新闻作者在2到20汉字之间。"})
		$("#txtNewsMark").formValidator({onshow:"&nbsp;",onfocus:"新闻摘要不能为空噢。",oncorrect:"&nbsp;"}).inputValidator({min:10,max:500,onerror: "新闻摘要10-500汉字内。"})
	}
	if($_D("MemberMoneyPayForm"))
	{
		$.formValidator.initConfig({formid:"MemberMoneyPayForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			$("#MemberMoneyPaySubmit").attr("disabled", true); //设置为不可点	
			var aa = $("input[name='paytype']:checked").val();
			if(aa=="0")
			{
				//充值卡号
				$.ajax({
				  url: "../public/ajax.aspx?action=ConsumeSave&shu="+$("#account-charge-money").val(),
				  cache: false,
				  success:function(data)
				  {
					  if(data.length<10)
					  {
						alert("充值成功，充值卡面额为"+data+"元。");
						window.location.href="MemberMoneyDetails.aspx";
					  }
					  else{
						alert(data);
						$("#MemberMoneyPaySubmit").attr("disabled", false); 
					  }
				  }
				});	
			}
			else{
				$("#MemberMoneyPaySubmit").attr("disabled", false); 
				var cc = $("#PayMentIsself"+aa).val();
				if(aa=="1" && cc=="1")
				{
					var x=document.getElementById("MemberMoneyPayForm");
					x.action="../BankPay/Alipay/AliPayDefault.aspx?action=MoneyPay";
					return true;
				}
				else if(aa=="1" && cc=="0")
				{
					var x=document.getElementById("MemberMoneyPayForm");
					x.action="../BankPay/PartnerAlipay/AliPayDefault.aspx?action=MoneyPay";
					return true;
				}
				else if(aa=="1" && cc=="2")
				{
					var x=document.getElementById("MemberMoneyPayForm");
					x.action="../BankPay/TwoAlipay/AliPayDefault.aspx?action=MoneyPay";
					return true;
				}
				else if(aa=="2"){
					var x=document.getElementById("MemberMoneyPayForm");
					x.action="../BankPay/Chinabank/BankSend.aspx?action=MoneyPay";
					return true;	
				}
				else if(aa=="3" && cc=="0"){
					var x=document.getElementById("MemberMoneyPayForm");
					x.action="../BankPay/PartnerTenpay/TenpayDefault.aspx?action=MoneyPay";
					return true;	
				}
				else if(aa=="3" && cc=="1"){
					var x=document.getElementById("MemberMoneyPayForm");
					x.action="../BankPay/Tenpay/TenpayDefault.aspx?action=MoneyPay";
					return true;	
				}
				else if(aa=="-1" ){
					var x=document.getElementById("MemberMoneyPayForm");
					x.action="../BankPay/Cbb/CBDefault.aspx?action=MoneyPay";
					return true;	
				}
			}
			return false;
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#account-charge-money").formValidator({onshow:"&nbsp;",onfocus:"此项不能为空噢哦。",oncorrect:"&nbsp;"}).functionValidator({
			fun:function(val,elem){
				var aa = $("input[name='paytype']:checked").val();
				if(aa=="0")
				{
					if(val.length<2 || val.length> 20 )
						return "对不起，请正确输入充值卡卡号。";
					else
						return true;
				}
				else
				{
					var re=/^[1-9]+[0-9]*]*$/;
					if(!re.test(val))
						return "对不起，充值金额请填写整数。";
					else
						return true;	
				}
			}
		});
	}
	$(".choose").find("#paytype").each(function(){
		$(this).click(function(){
			if( $(this).val()=="0" )
			{
				$("#paymoneytitle").html("<em>*</em>输入充值卡卡号：");
			}
			else{
				$("#paymoneytitle").html("<em>*</em>请输入充值金额：");
			}
		});
	});
	if($_D("MemberJifenDuiForm"))
	{
		$.formValidator.initConfig({formid:"MemberJifenDuiForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			$("#MemberJifenPaySubmit").attr("disabled", true); //设置为不可点
			$.ajax({
			  url: "../public/NewJson.aspx?action=duisave&shu="+$("#account-charge-money").val(),
			  cache: false,
			  success:function(data)
			  {
				  if(data.length<10)
				  {
					alert("兑换成功，此次共兑换"+data+"元。");
					setTimeout(function(){window.location.href=window.location.href;},10);
				  }
				  else{
					alert(data);
					$("#MemberJifenPaySubmit").attr("disabled", false); 
				  }
			  }
			});	
 			return false;
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#account-charge-money").formValidator({onshow:"&nbsp;",onfocus:"此项不能为空噢哦。",oncorrect:"&nbsp;"}).functionValidator({
			fun:function(val,elem){
				var re=/^[1-9]+[0-9]*]*$/;
				if(!re.test(val))
					return "对不起，兑换数量请填写整数。";
				else
				{
					var aa= parseFloat($("#txtjifenshu").html());
					if(parseFloat(val) > aa)
					{
						return "对不起，兑换数量不能大于"+aa+"。";	
					}
					else
					{
						return true;	
					}
				}
			}
		});
	}
	if($_D("MemberMoenyDuiForm"))
	{
		$.formValidator.initConfig({formid:"MemberMoenyDuiForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			$("#MemberJifenPaySubmit").attr("disabled", true); //设置为不可点
			$.ajax({
			  url: "../public/NewJson.aspx?action=moneyduisave&shu="+$("#account-charge-money").val(),
			  cache: false,
			  success:function(data)
			  {
				  if(data.length<10)
				  {
					alert("兑换成功，此次共兑换"+data+"积分。");
					setTimeout(function(){window.location.href=window.location.href;},10);
				  }
				  else{
					alert(data);
					$("#MemberJifenPaySubmit").attr("disabled", false); 
				  }
			  }
			});	
 			return false;
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#account-charge-money").formValidator({onshow:"&nbsp;",onfocus:"此项不能为空噢哦。",oncorrect:"&nbsp;"}).functionValidator({
			fun:function(val,elem){
				var re=/^[1-9]+[0-9]*]*$/;
				if(!re.test(val))
					return "对不起，兑换数量请填写整数。";
				else
				{
					var aa= parseFloat($("#txtjifenshu").html());
					if(parseFloat(val) > aa)
					{
						return "对不起，兑换数量不能大于"+aa+"。";	
					}
					else
					{
						return true;	
					}
				}
			}
		});
	}
	if($_D("MemberJifenPayForm"))
	{
		$.formValidator.initConfig({formid:"MemberJifenPayForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			$("#MemberJifenPaySubmit").attr("disabled", true); //设置为不可点
			var aa = $("input[name='paytype']:checked").val();
			if(aa=="0")
			{
				//充值卡号
				$.ajax({
				  url: "../public/ajax.aspx?action=JifenConsumeSave&shu="+$("#account-charge-money").val(),
				  cache: false,
				  success:function(data)
				  {
					  if(data.length<10)
					  {
						alert("充值成功，获取积分"+data+"分。");
						window.location.href="MemberJifenDetails.aspx";
					  }
					  else{
						alert(data);
						$("#MemberJifenPaySubmit").attr("disabled", false); 
					  }
				  }
				});	
			}
			else{
				$("#MemberJifenPaySubmit").attr("disabled", false); 
				var cc = $("#PayMentIsself"+aa).val();
				if(aa=="1" && cc=="1")
				{
					var x=document.getElementById("MemberJifenPayForm");
					x.action="../BankPay/Alipay/AliPayDefault.aspx?action=JifenPay";
					return true;
				}
				else if(aa=="1" && cc=="0")
				{
					var x=document.getElementById("MemberJifenPayForm");
					x.action="../BankPay/PartnerAlipay/AliPayDefault.aspx?action=JifenPay";
					return true;
				}
				else if(aa=="1" && cc=="2")
				{
					var x=document.getElementById("MemberJifenPayForm");
					x.action="../BankPay/TwoAlipay/AliPayDefault.aspx?action=JifenPay";
					return true;
				}
				else if(aa=="2"){
					var x=document.getElementById("MemberJifenPayForm");
					x.action="../BankPay/Chinabank/BankSend.aspx?action=JifenPay";
					return true;	
				}
				else if(aa=="3" && cc=="0"){
					var x=document.getElementById("MemberJifenPayForm");
					x.action="../BankPay/PartnerTenpay/TenpayDefault.aspx?action=JifenPay";
					return true;	
				}
				else if(aa=="3" && cc=="1"){
					var x=document.getElementById("MemberJifenPayForm");
					x.action="../BankPay/Tenpay/TenpayDefault.aspx?action=JifenPay";
					return true;	
				}
				else if(aa=="-1" ){
					var x=document.getElementById("MemberJifenPayForm");
					x.action="../BankPay/Cbb/CBDefault.aspx?action=JifenPay";
					return true;	
				}
			}
			return false;
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#account-charge-money").formValidator({onshow:"&nbsp;",onfocus:"此项不能为空噢哦。",oncorrect:"&nbsp;"}).functionValidator({
			fun:function(val,elem){
				var aa = $("input[name='paytype']:checked").val();
				if(aa=="0")
				{
					if(val.length<2 || val.length> 20 )
						return "对不起，请正确输入充值卡卡号。";
					else
						return true;
				}
				else
				{
					var re=/^[1-9]+[0-9]*]*$/;
					if(!re.test(val))
						return "对不起，充值金额请填写整数。";
					else
						return true;	
				}
			}
		});
	}
	$("#share-copy-button, #share-copy-text").click(function(){
		var clipBoardContent=""; 
		clipBoardContent+=$("#share-copy-text").val(); 
		window.clipboardData.setData("Text",clipBoardContent); 
		alert("复制成功，请粘贴到你的QQ/MSN上推荐给你的好友"); 	
	});
	if($("#FindPassWordLoginForm").length>0)
	{
		$.formValidator.initConfig({formid:"FindPassWordLoginForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){
			$.ajax({
			  url: "/public/ajax.aspx?action=editpass&name="+$("#txtusername").html()+"&userpass="+escape($("#txtuserpassword").val())+"&password="+escape($("#txtuserpassword_").val()),
			  cache: false,
			  success:function(data)
			  {
				  if(data=="1")
				 {
					alert("密码设置成功,请使用新密码登录网站!");
					window.location.href="Memberlogin.aspx";
				 }
				 else{
					alert(data);
				 }
			  }
		  });
		  return false;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtuserpassword").formValidator({onshow:"&nbsp;",onfocus:"密码长度6~32位，请使用数字加字母或符号的组合方式。",oncorrect:"&nbsp;"}).inputValidator({min:6,empty:{leftempty:false,rightempty:false,emptyerror:"密码两边不能有空符号。"},onerror:"新密码只允许6-32个字符。"});
		$("#txtuserpassword_").formValidator({onshow:"&nbsp;",onfocus:"再输入一次上面输入的密码。",oncorrect:"&nbsp;"}).inputValidator({min:6,empty:{leftempty:false,rightempty:false,emptyerror:"重复密码两边不能有空符号。"},onerror:"重复密码密码长度6~32位,请确认。"}).compareValidator({desid:"txtuserpassword",operateor:"=",onerror:"您两次输入的密码不一致,请确认。"});
	}
	if($("#PicValidateCode").length>0)
	{
		$("#PicValidateCode").attr("src","../VerifyCode/VerifyCode.aspx?key=1&tt="+Math.random());
		$("#PicValidateCode").click(function(){ 
			$("#PicValidateCode").attr("src","../VerifyCode/VerifyCode.aspx?key=1&tt="+Math.random());
		});	
		$("#PicValidateCode").css("cursor","pointer");
		$.formValidator.initConfig({formid:"FindPassWordForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){
			$.ajax({
			  url: "/public/ajax.aspx?action=findpass&chremail="+escape($("#txtUserEmail").val())+"&chrcode="+escape($("#txtUserCode").val()),
			  cache: false,
			  success:function(data)
			  {
				  if(data=="0")
				 {
					window.location.href="FindPassword.aspx?chremail="+escape($("#txtUserEmail").val());
				 }
				 else{
					alert(data);
				 }
			  }
		  });
		  return false;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtUserEmail").formValidator({onshow:"&nbsp;",onfocus:"请输入您注册时候填写的邮件。",oncorrect:"&nbsp;"}).inputValidator({min:6,max:100,onerror:"电子邮箱格式不正确。"}).regexValidator({regexp:"^([\\w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([\\w-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$",onerror:"电子邮箱格式不正确。"})
		$("#txtUserCode").formValidator({onshow:"&nbsp;",onfocus:"请正确输入左图中的验证码。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:20,onerror:"请正确输入左图中的验证码！"})
	}
	if($("#MemberResumeForm").length>0)
	{
		$.formValidator.initConfig({formid:"MemberResumeForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){
		  var x=document.getElementById("MemberResumeForm");
		  x.action="MemberResume.aspx?action=add&from="+window.location.href;
		  $("#MemberResumeSubmit").attr("disabled", true); //设置为不可点
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtResumeName").formValidator({onshow:"&nbsp;",onfocus:"请您填写中文全名。",oncorrect:"&nbsp;"}).inputValidator({min:2,empty:{leftempty:false,rightempty:false,emptyerror:"请您填写中文全名。"},onerror:"请您填写中文全名。"});
		$("#txtResumeZhiwei").formValidator({onshow:"&nbsp;",onfocus:"目标职位至少2个字符,最多25个字。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:50,onerror:"目标职位至少2个字符,最多25个字。"});
		$("#txtResumeHukou").formValidator({onshow:"&nbsp;",onfocus:"请输入户口所在地。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror:"户口所在地限制50个字符。"});
		$("#txtResumeAddress").formValidator({onshow:"&nbsp;",onfocus:"请输入现所在地。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror:"现所在地限制50个字符。"});
		$("#txtResumeMobile").formValidator({onshow:"&nbsp;",onfocus:"请输入手机号码",oncorrect:"&nbsp;"}).inputValidator({min:11,max:11,onerror:"手机号码必须是11位的,请确认"}).regexValidator({regexp:"mobile",datatype:"enum",onerror:"你输入的手机号码格式不正确"});;
		$("#txtResumeTel").formValidator({onshow:"&nbsp;",onfocus:"请输入您的固定电话。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:15,onerror:"固定电话格式不正确。"});
		$("#txtResumeEmail").formValidator({onshow:"&nbsp;",onfocus:"请输入您的联系E-mail。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:40,onerror:"联系E-mail格式不正确。"});
		$("#txtResumePingJia").formValidator({onshow:"&nbsp;",onfocus:"请输入自我评价，是多1000个字符。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:1000,onerror:"请输入自我评价，是多1000个字符。"});
		$("#txtResumeMubiao").formValidator({onshow:"&nbsp;",onfocus:"请输入职业目标，是多1000个字符。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:1000,onerror:"请输入职业目标，是多1000个字符。"});
		$("#txtResumeGongzuoYear").formValidator({onshow:"&nbsp;",onfocus:"请输入工作年限。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:5,onerror:"请输入工作年限。"}).regexValidator({regexp:"^\\d{1,2}$",onerror:"工作年限输入不正确"});
		$("#txtResumeXueli").formValidator({onshow:"&nbsp;",onfocus:"请选择您的最高学历。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:15,onerror:"请选择您的最高学历。"});
		$("#txtResumeGongzuo").formValidator({onshow:"&nbsp;",onfocus:"请输入工作经验，是多1000个字符。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:1000,onerror:"请输入工作经验，是多1000个字符。"});
		$("#txtResumeBiyeSchool").formValidator({onshow:"&nbsp;",onfocus:"请填写毕业学校。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror:"请填写毕业学校。"});
		$("#txtResumeBiyeDate").formValidator({onshow:"&nbsp;",onfocus:"请填写毕业时间。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror:"请填写毕业时间。"});
		$("#txtResumeBiyeZhuangye").formValidator({onshow:"&nbsp;",onfocus:"请填写毕业专业。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror:"请填写毕业专业。"});
		$("#txtResumeBiyeEnglish").formValidator({onshow:"&nbsp;",onfocus:"请填写您的外语水平。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror:"请填写您的外语水平。"});
		$("#txtResumeBiyeComputer").formValidator({onshow:"&nbsp;",onfocus:"请填写您的计算机水平。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror:"请填写您的计算机水平。"});
		$("#txtResumeBiyeMark").formValidator({onshow:"&nbsp;",onfocus:"请输入教育经历，是多1000个字符。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:1000,onerror:"请输入教育经历，是多1000个字符。"});
		$("#txtResumeTypeid").formValidator({onshow:"&nbsp;",onfocus:"请选择职位类别。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:500,onerror:"请选择职位类别。"});
		$("#txtLoc").formValidator({onshow:"&nbsp;",onfocus:"期望工作地点不能为空。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:100,onerror:"请输入期望工作地区。"});
		$("#txtResumeMoney").formValidator({onshow:"&nbsp;",onfocus:"请输入期望薪水。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:10,onerror:"请输入期望薪水。"}).regexValidator({regexp:"^\\d{1,6}$",onerror:"期望薪水输入不正确"});
		$("#txtResumeDaogang").formValidator({onshow:"&nbsp;",onfocus:"请选择到岗时间。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:50,onerror:"请选择到岗时间。"});
	}
	if( $("#memeberspaceform").length>0)
	{
		$.formValidator.initConfig({formid:"memeberspaceform",errorfocus:false,onerror:function(msg){},onsuccess:function(){
			$.ajax({
			  url: "/public/ajax.aspx?action=editspace&chrname="+escape($("#txtChrTrueName").val())+"&chremail="+escape($("#txtChrEmail").val())+"&chrqq="+escape($("#txtChrQQ").val())+"&ChrTel="+escape($("#txtChrTel").val()),
			  cache: false,
			  success:function(data)
			  {
				  if(data=="0")
				 {
					alert("个人资料修改成功!");
				 }
				 else{
					alert(data);
				 }
			  }
		  });
		  return false;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		if( $("#txtChrTrueName").length>0)
			$("#txtChrTrueName").formValidator({onshow:"&nbsp;",onfocus:"请输入您的真实姓名。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:11,onerror:"请不要输入网名或昵称,至少2个字符，至多10个字符。"});
		$("#txtChrQQ").formValidator({onshow:"&nbsp;",onfocus:"请输入您的QQ，方便联系。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:11,onerror:"请输入您的QQ，方便联系，没有可不填。"});
		$("#txtChrTel").formValidator({onshow:"&nbsp;",onfocus:"请输入手机号码",oncorrect:"&nbsp;"}).inputValidator({min:11,max:11,onerror:"手机号码必须是11位的,请确认"}).regexValidator({regexp:"mobile",datatype:"enum",onerror:"你输入的手机号码格式不正确"});
		$("#txtChrEmail").formValidator({onshow:"&nbsp;",onfocus:"请输入您的电子邮件，可用于找回密码",oncorrect:"&nbsp;"}).inputValidator({min:6,max:100,onerror:"你输入的邮箱长度非法,请确认"}).regexValidator({regexp:"^([\\w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([\\w-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$",onerror:"你输入的邮箱格式不正确"});
	}
	if( $("#memebercompanyform").length>0)
	{
		$.formValidator.initConfig({formid:"memebercompanyform",errorfocus:false,onerror:function(msg){},onsuccess:function(){
			var x=document.getElementById("memebercompanyform");
		  	x.action="memberspace.aspx?action=add&from="+window.location.href;
		    $("#memebercompanysubmit").attr("disabled", true); //设置为不可
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtChrTrueName").formValidator({onshow:"&nbsp;",onfocus:"请输入您的公司名称。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:40,onerror:"请输入公司名称,至少2个字符，至多40个字符。"});
		$("#txtCompanyStyleid").formValidator({onshow:"&nbsp;",onfocus:"请选择您公司的性质。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror:"请选择您公司的性质。"});
		$("#txtCompanyGuimo").formValidator({onshow:"&nbsp;",onfocus:"请选择您公司的规模。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror:"请选择您公司的规模。"});
		$("#txtCompanyMan").formValidator({onshow:"&nbsp;",onfocus:"请输入公司联系人。",oncorrect:"&nbsp;"}).inputValidator({min:1, max:20,onerror:"请输入公司联系人。"});
		$("#txtCompanyTel").formValidator({onshow:"&nbsp;",onfocus:"请输入公司联系电话。",oncorrect:"&nbsp;"}).inputValidator({min:7, max:20,onerror:"请输入公司联系电话。"});
		$("#txtCompanyAddress").formValidator({onshow:"&nbsp;",onfocus:"请输入公司地址。",oncorrect:"&nbsp;"}).inputValidator({min:5, max:50,onerror:"公司地址至少5汉字，至多50个字符。"});
		$("#txtCompanyCode").formValidator({onshow:"&nbsp;",onfocus:"请输入公司邮政编码。",oncorrect:"&nbsp;"}).inputValidator({min:0, max:6,onerror:"公司邮政编码格式不正确。"});
		$("#txtCompanyEmail").formValidator({onshow:"&nbsp;",onfocus:"请输入公司的联系邮箱。",oncorrect:"&nbsp;"}).inputValidator({min:4, max:40,onerror:"请输入公司的联系邮箱。"});
		$("#txtCompanyFax").formValidator({onshow:"&nbsp;",onfocus:"请输入公司的传真。",oncorrect:"&nbsp;"}).inputValidator({min:0, max:40,onerror:"请输入公司的传真。"});
		$("#txtCompanyWebUrl").formValidator({onshow:"&nbsp;",onfocus:"请输入公司网址。",oncorrect:"&nbsp;"}).inputValidator({min:0, max:40,onerror:"请输入公司网址。"});
	}
	if($_D("id_ditu"))
	{
		var latlng=$("#latlng").val();
		$("#id_ditu").get(0).src=$("#dituurl").val()+"lng="+latlng.split(",")[0]+"&latY="+latlng.split(",")[1]+"";
	}
	if($_D("dialogjobinfozhiding"))
	{
		$("#infozhiding").bind("click",function(){
			GetJobInfoTotalDing();
		});
		$("[name='RadioGroup']").each(function(){ 
			$(this).click(function(){
				var total = $("#infozhidingscore").val() * $("input[name='RadioGroup']:checked").val();
				$("#infozhidingtotal").html(total);
				GetJobInfoTotalDing();
			});
		});
		if(parseInt($("#UserScore").html())<parseInt($("#TotalScore").html()))
			$("#zhidingsubmit").attr("disabled", true); //设置为不可点
		$("#dialogjobinfozhiding").submit(function(){
			var tt1=0,tt2=0,tt3=0,tt4=0;
			if( $("input[name='infozhiding']:checked").val()=="1" )
				tt3=1;
			tt4=$("input[name='RadioGroup']:checked").val();
			if(tt1==0 && tt2==0 && tt3==0)
			{
				$("#zhidingsubmit").attr("disabled", true); //设置为不可点
				alert("对不起，请选择一种服务！");
				return false;
			}
			var args = new Object();
			args = GetUrlParms();
			var InfoID = args["InfoID"];
			 $.ajax({
			  url: "../public/ajax.aspx?action=dingjobinfo&InfoID="+InfoID+"&tt1="+tt1+"&tt2="+tt2+"&tt3="+tt3+"&tt4="+tt4,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，付费置顶成功!");
					window.parent.AntJobInfoClass.InfoZhiDing(InfoID);
				  }
				  else{
					alert(data);
				  }
			  }
			});
			return false;
		});
	}
	if( $("#MemberJobInfoForm").length>0)
	{
		$.formValidator.initConfig({formid:"MemberJobInfoForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){
			if($("#txtInfoTypeid").val()=="" || $("#txtInfoTypeid").val()=="0")
			{
				alert("请选择职位类别");
				$("#txtInfoTypeid").focus();
				return false;
			}
			else
			{
				var x=document.getElementById("MemberJobInfoForm");
				x.action="MemberJobInfoAdd.aspx?action=add&from="+window.location.href;
				$("#MemberjobinfoSubmit").attr("disabled", true); //设置为不可
			}
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtInfoName").formValidator({onshow:"&nbsp;",onfocus:"不规范的职位名称会严重影响职位曝光，影响职位的招聘效果。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:40,onerror:"请输入职位名称,至少2个字符，至多40个字符。"});
		$("#txtInfoDateNum").formValidator({onshow:"&nbsp;",onfocus:"请输入职位有效期天数,有效期过长会影响求职者的应聘数量",oncorrect:"&nbsp;"}).regexValidator({regexp:"^\\d{1,4}$",onerror:"职位有效期天数输入格式不正确"});
		$("#txtInfoPeoper").formValidator({onshow:"&nbsp;",onfocus:"请输入招聘人数，输入0表示招聘若干人。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^\\d{1,4}$",onerror:"请输入招聘人数，输入0表示招聘若干人"});
		$("#txtLoc").formValidator({onshow:"&nbsp;",onfocus:"请选择工作地点。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror:"请选择工作地点。"});
		$("#txtInfoTel").formValidator({onshow:"&nbsp;",onfocus:"请输入联系电话，以供应聘者联系",oncorrect:"&nbsp;"}).inputValidator({min:7,max:30,onerror:"请输入联系电话，以供应聘者联系"})
		$("#txtInfoEmail").formValidator({onshow:"&nbsp;",onfocus:"请输入您的电子邮件",oncorrect:"&nbsp;"}).inputValidator({min:6,max:100,onerror:"你输入的邮箱长度非法,请确认"}).regexValidator({regexp:"^([\\w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([\\w-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$",onerror:"你输入的邮箱格式不正确"});
		$("#txtInfoYuyan").formValidator({onshow:"&nbsp;",onfocus:"请输入语言能力要求。",oncorrect:"&nbsp;"}).inputValidator({min:0,onerror:"请输入语言能力要求"});
		//$("#txtInfoTypeid").formValidator({onshow:"&nbsp;",onfocus:"请选择职位类别。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror:"请选择职位类别"});
	}
	if( $("#MemberMessageForm").length>0)
	{
		$.formValidator.initConfig({formid:"MemberMessageForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){
		    $("#MemberMessageSubmit").attr("disabled", true); //设置为不可
			$.ajax({
                type: "post",
                global: false,
                dataType: "html",
                url: "/public/Ajax.aspx",
                data: { name: $("#txtMessageFromName").val(),content: $("#txtMessageContent").val(), action: "sendmessage" },
                success: function(data, textStatus) {
                    var content = data.toString();
                    if(content=="0")
					{
						alert("发送成功！");	
						$("#txtMessageFromName").val("");
						$("#txtMessageContent").val("");
						$("#txtMessageFromName").val("");
						$("#MemberMessageSubmit").attr("disabled", false); //设置为可
					}
					else
					{
						alert(content);
						$("#MemberMessageSubmit").attr("disabled", false); //设置为可
					}
                }
            });
			return false;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtMessageFromName").formValidator({onshow:"&nbsp;",onfocus:"请输入收信人（用户名）。",oncorrect:"&nbsp;"}).inputValidator({min:3,max:40,onerror:"收信人（用户名）不能为空，并且到少3个字符。"});
		$("#txtMessageContent").formValidator({onshow:"&nbsp;",onfocus:"请输入内容。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:500,onerror:"内容不能超过500个字符。"});
	}
	init();
	if($("#memberordersubmit").length>0)
	{
		$.formValidator.initConfig({formid:"memberordersubmit",errorfocus:false,onerror:function(msg){},onsuccess:function(){
			$("#MemberMyorder").attr("disabled", true);
			var x=document.getElementById("memberordersubmit");
			if(window.location.href.toLowerCase().indexOf("memberorderedit")>0)
				x.action="MemberOrderEdit.aspx?action=save&from="+window.location.href;
			else
				x.action="MemberStoreOrderEdit.aspx?action=save&from="+window.location.href;
			var flag=false;
			$("#orderlist").find(".AntInfoTextInput").each(function(){
				var obj=$(this);
				if(!checknumber(obj.val()) && obj.attr("id").indexOf("txtnum_")>-1)
				{
					alert("对不起，请正确输入数量！");
					$("#MemberMyorder").attr("disabled", false);
					flag=true;
					return false;
				}
			});
			if(!flag)
				return true;
			else
				return false;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		
		$("#txtOrderMan").formValidator({onshow:"&nbsp;",onfocus:"请正确填写姓名，最少不能低于2个字，最多不能超过15个字",oncorrect:"&nbsp;"}).functionValidator({
			fun:function(val,elem){
				var tt= 0;
				if($("#txtOrderPeisong").length>0)
					tt = $("input[name='txtOrderPeisong']:checked").val();
				if( ( val.length>1 && val.length<15 ) ){
					return true;
				}else{
					return "请正确填写姓名，最少不能低于2个字，最多不能超过15个字"
				}
			}
		});
		$("#txtOrderTel").formValidator({onshow:"&nbsp;",onfocus:"请输入正确的联系电话。",oncorrect:"&nbsp;"}).functionValidator({
			fun:function(val,elem){
				if( val.match(/^.{6,}$/) ){
					return true;
				}else{
					return "您输入的联系电话格式不正确。"
				}
			}
		});
		$("#txtOrderAddress").formValidator({onshow:"&nbsp;",onfocus:"收货地址最少4个字，请正确填写。",oncorrect:"&nbsp;"}).functionValidator({
			fun:function(val,elem){
				var tt= 0;
				if($("#txtOrderPeisong").length>0)
					tt = $("input[name='txtOrderPeisong']:checked").val();
				if( ( val.length>3 && val.length<60 ) || tt==1 ){
					return true;
				}else{
					return "收货地址5到60个字，请正确填写"
				}
			}
		});
		$("#txtOrderCode").formValidator({onshow:"&nbsp;",onfocus:"请输入6位邮政编码",oncorrect:"&nbsp;"}).functionValidator({
			fun:function(val,elem){
				var tt= 0;
				if($("#txtOrderPeisong").length>0)
					tt = $("input[name='txtOrderPeisong']:checked").val();
				if( val.match(/^\d{6}$/) || tt==1 ){
					return true;
				}else{
					return "邮政编码填写有误,请输入6位邮政编码"
				}
			}
		});
		$("#txtOrderMark").formValidator({onshow:"&nbsp;",onfocus:"补充说明不能超过500字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:500,onerror: "补充说明不能超过500字。"})
	}
	if($("#MemberTuangouForm").length>0)
	{
		$("input[name='txtTuanTypeid']").click(function(){
			var val=$("input[name='txtTuanTypeid']:checked").val();
			if(val=="0"){
				$("#SpanTuanTypeid1").show();
				$("#SpanTuanTypeid2").hide();
				$("#SpanTuanTypeid3").hide();
			}			
			else if(val=="1"){
				$("#SpanTuanTypeid1").hide();
				$("#SpanTuanTypeid2").show();
				$("#SpanTuanTypeid3").hide();
			}	
			else if(val=="2"){
				$("#SpanTuanTypeid1").hide();
				$("#SpanTuanTypeid2").hide();
				$("#SpanTuanTypeid3").show();
			}	
		});
		$.formValidator.initConfig({formid:"MemberTuangouForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){
			$("#MemberTuanSubmit").attr("disabled", true);
			var x=document.getElementById("MemberTuangouForm");
		  	x.action="MemberTuanAdd.aspx?action=save&from="+window.location.href;
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		
		$("#txtTuanTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入团购标题，200字以内",oncorrect:"&nbsp;"}).inputValidator({min:2,max:200,onerror: "请输入团购标题，200字以内。"})
		$("#txtTuanSmallTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入团购短标题，15字以内，用于发送短信",oncorrect:"&nbsp;"}).inputValidator({min:2,max:30,onerror: "请输入团购短标题，15字以内，用于发送短信"})
		$("#txtTuanStartDate").formValidator({onshow:"&nbsp;",onfocus:"请选择团购开始时间。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:50,onerror: "请选择团购开始时间。"})
		$("#txtTuanEndDate").formValidator({tipid:"txtTuanStartDateTip",onshow:"&nbsp;",onfocus:"请选择团购结束时间。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:50,onerror: "请选择团购结束时间。"})
		$("#txtTuanMinNum").formValidator({onshow:"(只有达到最低团购数量，团购才成功，如果没达到此数，则团购无效，如果不限制可填写0) ",onfocus:"请输入最低团购人数，可以设置为0!",oncorrect:"&nbsp;"}).inputValidator({min:1,max:50000,onerror: "请输入最低团购人数，可以设置为0!"}).regexValidator({regexp:"^\\d{1,5}$",onerror:"最低团购人数输入不正确。"});
		$("#txtTuanMaxNum").formValidator({onshow:"(如果购买量达到此值，则显示已卖完，团购结束，如果不限制可填写0) ",onfocus:"请输入最低团购人数，可以设置为0!",oncorrect:"&nbsp;"}).inputValidator({min:1,max:50000,onerror: "最低团购人数人只能输入数字!"}).regexValidator({regexp:"^\\d{1,5}$",onerror:"最低团购人数输入不正确。"});
		$("#txtTuanMoney").formValidator({onshow:"&nbsp;",onfocus:"请输入团购的市场价。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:500000,onerror: "请输入团购的市场价。"}).regexValidator({regexp:"decmal4",datatype:"enum",onerror:"您输入的市场价不正确。"});
		$("#txtTuanBuyMoney").formValidator({tipid:"txtTuanMoneyTip",onshow:"&nbsp;",onfocus:"请输入团购价。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:50000,onerror: "请输入团购价。"}).regexValidator({regexp:"decmal4",datatype:"enum",onerror:"您输入的团购价不正确。"});
		
		$("#txtTuanYunfei").formValidator({onshow:"&nbsp;",onfocus:"请输入运费，不需要运费请输入0。",oncorrect:"&nbsp;"}).functionValidator({
			fun:function(val,elem){
				var tt= 0;
				if($("#txtTuanTypeid").length>0)
					tt = $("input[name='txtTuanTypeid']:checked").val();
					if( checknumber(val) || val=="0" || tt==1 ){
						return true;
					}else{
						return "请输入运费，不需要运费请输入0"
					}
				}
		});
		$("#txtTuanYunMin").formValidator({tipid:"txtTuanYunfeiTip",onshow:"&nbsp;",onfocus:"至少几件不需要运费，可以输入0。",oncorrect:"&nbsp;"}).functionValidator({
			fun:function(val,elem){
				var tt= 0;
				if($("#txtTuanTypeid").length>0)
					tt = $("input[name='txtTuanTypeid']:checked").val();
					if( checknumber(val) || val=="0" || tt==1 ){
						return true;
					}else{
						return "至少几件不需要运费，可以输入0"
					}
				}
		});
		$("#txtTuanMark").formValidator({onshow:"&nbsp;",onfocus:"请输入温馨提示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:1000,onerror: "温馨提示1000字以内."})
	}
	if($("#MemberCompanyForm").length>0)
	{
		$.formValidator.initConfig({formid:"MemberCompanyForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){
			$("#MemberCompanySubmit").attr("disabled", true);
			var x=document.getElementById("MemberCompanyForm");
		  	x.action="MemberStore.aspx?action=save&from="+window.location.href;
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtCompanyName").formValidator({onshow:"&nbsp;",onfocus:"请填写您的商家名称。",oncorrect:"&nbsp;"}).inputValidator({min:4,max:60,onerror: "请填写您的商家名称，长度在3-60个字符之间。"})
		$("#txtCompanyClassID").formValidator({onshow:"&nbsp;",onfocus:"请选择所属行业类别。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "请选择所属行业类别。"})
		$("#txtCompanyAreaID").formValidator({onshow:"&nbsp;",onfocus:"请选择所在地区，客户轻松搜到您。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "请选择所在地区，客户轻松搜到您。"})
		$("#txtCompanyMan").formValidator({onshow:"&nbsp;",onfocus:"请选择联系人，方便我们尽快与您取的联系。",oncorrect:"&nbsp;"}).inputValidator({min:2,onerror: "请选择联系人，方便我们尽快与您取的联系。"})
		$("#txtCompanyTel").formValidator({onshow:"&nbsp;",onfocus:"请输入您的联系电话，方便我们尽快与您取的联系。",oncorrect:"&nbsp;"}).inputValidator({min:7,onerror: "请输入您的联系电话，方便我们尽快与您取的联系。"})
		$("#txtCompanyQQ1").formValidator({onshow:"&nbsp;",onfocus:"请输入您的联系QQ，方便客户可以与您取得联系。",oncorrect:"&nbsp;"}).inputValidator({min:0,onerror: "请输入您的联系QQ，方便客户可以与您取得联系。"})
		$("#txtCompanyYingye").formValidator({onshow:"&nbsp;",onfocus:"请输入店铺的营业时间。",oncorrect:"&nbsp;"}).inputValidator({min:2,onerror: "请输入店铺的营业时间。"})
		$("#txtCompanyXiangmu").formValidator({onshow:"&nbsp;",onfocus:"请填写您主营的产品（服务）的关键词，如有多个，请用逗号隔开。",oncorrect:"&nbsp;"}).inputValidator({min:2,onerror: "请填写您主营的产品（服务）的关键词，如有多个，请用逗号隔开。"})
		$("#txtCompanyMark").formValidator({onshow:"&nbsp;",onfocus:"请输入商家简介，不超过500字。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:1000,onerror: "请输入商家简介，不超过500字。"})
		$("#txtCompanyQQ2").formValidator({onshow:"&nbsp;",onfocus:"请输入您的联系QQ，没有可不填写。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:20,onerror: "请输入您的联系QQ，没有可不填写。"})
		$("#txtCompanyTongji").formValidator({onshow:"&nbsp;",onfocus:"请输入第三方统计代码，不超过1000字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:1000,onerror: "请输入第三方统计代码，不超过1000字。"})
	}
	if($_D("MemberCompanyConfigForm"))
	{
		$.formValidator.initConfig({formid:"MemberCompanyConfigForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
				if( $("#txtCompanyDomain").length>0)
				{
					if(  $.trim($("#txtCompanyDomain").val()).length==0)
					{
						var x=document.getElementById("MemberCompanyConfigForm");
		  				x.action="MemberStoreConfig.aspx?action=add&from="+window.location.href;
						$("#MemberCompanySubmit").attr("disabled", true); //设置为不可点
						return true;
					}
					else{
						if( $.trim($("#txtCompanyDomain").val()).length<parseInt($("#SiteSafeDomainLen").html()) && $.trim($("#txtCompanyDomain").val()).length >0  )
						{
							alert("对不起，域名长度最低"+$("#SiteSafeDomainLen").html()+"位！");  
							return false;
						}
						else{
							var x=document.getElementById("MemberCompanyConfigForm");
		  					x.action="MemberStoreConfig.aspx?action=add&from="+window.location.href;
							$("#MemberCompanySubmit").attr("disabled", true); //设置为不可点
							return true;
						}
					}
				}
				else{
					var x=document.getElementById("MemberCompanyConfigForm");
		  			x.action="MemberStoreConfig.aspx?action=add&from="+window.location.href;
					$("#MemberCompanySubmit").attr("disabled", true); //设置为不可点	
				}
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtCompanyMoban").formValidator({onshow:"&nbsp;",onfocus:"请选择店铺模板。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "请选择店铺模板。"})
		$("#txtCompanyMark").formValidator({onshow:"&nbsp;",onfocus:"请输入商家简介，不超过500字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:1000,onerror: "请输入商家简介，不超过500字。"})
		$("#txtCompanyTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入商城SEO标题，不超过100字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:500,onerror: "请输入商城SEO标题，不超过100字。"})
		$("#txtCompanyKeyword").formValidator({onshow:"&nbsp;",onfocus:"请输入商城SEO关键字，多个请用逗号隔开，不超过200字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:200,onerror: "请输入商城SEO关键字，多个请用逗号隔开，不超过200字。"})
		$("#txtCompanyDescription").formValidator({onshow:"&nbsp;",onfocus:"请输入商城SEO描述，不超过500字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:500,onerror: "请输入商城SEO描述，不超过500字。"})
		if( $("#txtCompanyDomain").length>0)
		{
			$("#txtCompanyDomain").formValidator({onshow:"&nbsp;",onfocus:"如不申请可为空。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^[a-zA-Z0-9]{0,}$",onerror:"只可以为数字和字母。"})
		}
	}
	if($_D("MemberdianpuConfigForm"))
	{
		$.formValidator.initConfig({formid:"MemberdianpuConfigForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
				if( $("#txtCompanyDomain").length>0)
				{
					if(  $.trim($("#txtCompanyDomain").val()).length==0)
					{
						var x=document.getElementById("MemberdianpuConfigForm");
		  				x.action="MemberStoreConfig.aspx?action=add&from="+window.location.href;
						$("#MemberCompanySubmit").attr("disabled", true); //设置为不可点
						return true;
					}
					else{
						if( $.trim($("#txtCompanyDomain").val()).length<parseInt($("#SiteSafeDomainLen").html()) && $.trim($("#txtCompanyDomain").val()).length >0  )
						{
							alert("对不起，域名长度最低"+$("#SiteSafeDomainLen").html()+"位！");  
							return false;
						}
						else{
							var x=document.getElementById("MemberdianpuConfigForm");
		  					x.action="MemberStoreConfig.aspx?action=add&from="+window.location.href;
							$("#MemberCompanySubmit").attr("disabled", true); //设置为不可点
							return true;
						}
					}
				}
				else{
					var x=document.getElementById("MemberdianpuConfigForm");
		  			x.action="MemberStoreConfig.aspx?action=add&from="+window.location.href;
					$("#MemberCompanySubmit").attr("disabled", true); //设置为不可点	
				}
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtCompanyMoban").formValidator({onshow:"&nbsp;",onfocus:"请选择店铺模板。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "请选择店铺模板。"})
		$("#txtCompanyMark").formValidator({onshow:"&nbsp;",onfocus:"请输入店铺简介，不超过300字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:300,onerror: "请输入店铺简介，不超过300字。"})
		$("#txtCompanyTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入店铺SEO标题，不超过100字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:500,onerror: "请输入店铺SEO标题，不超过100字。"})
		$("#txtCompanyKeyword").formValidator({onshow:"&nbsp;",onfocus:"请输入店铺SEO关键字，多个请用逗号隔开，不超过200字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:200,onerror: "请输入店铺SEO关键字，多个请用逗号隔开，不超过200字。"})
		$("#txtCompanyDescription").formValidator({onshow:"&nbsp;",onfocus:"请输入店铺SEO描述，不超过500字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:500,onerror: "请输入店铺SEO描述，不超过500字。"})
		if( $("#txtCompanyDomain").length>0)
		{
			$("#txtCompanyDomain").formValidator({onshow:"&nbsp;",onfocus:"如不申请可为空。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^[a-zA-Z0-9]{0,}$",onerror:"只可以为数字和字母。"})
		}
	}
	if($_D("MembershangjiaConfigForm"))
	{
		$.formValidator.initConfig({formid:"MembershangjiaConfigForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
				if( $("#txtCompanyDomain").length>0)
				{
					if(  $.trim($("#txtCompanyDomain").val()).length==0)
					{
						var x=document.getElementById("MembershangjiaConfigForm");
		 				x.action="MemberStoreConfig.aspx?action=save&from="+window.location.href;
						$("#MemberCompanySubmit").attr("disabled", true); //设置为不可点
						return true;
					}
					else{
						if( $.trim($("#txtCompanyDomain").val()).length<parseInt($("#SiteSafeDomainLen").html()) && $.trim($("#txtCompanyDomain").val()).length >0  )
						{
							alert("对不起，域名长度最低"+$("#SiteSafeDomainLen").html()+"位！");  
							return false;
						}
						else{
							var x=document.getElementById("MembershangjiaConfigForm");
		 				 	x.action="MemberStoreConfig.aspx?action=save&from="+window.location.href;
							$("#MemberCompanySubmit").attr("disabled", true); //设置为不可点
							return true;
						}
					}
				}
				else{
					var x=document.getElementById("MembershangjiaConfigForm");
		 			x.action="MemberStoreConfig.aspx?action=save&from="+window.location.href;
					$("#MemberCompanySubmit").attr("disabled", true); //设置为不可点	
				}
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtCompanyMoban").formValidator({onshow:"&nbsp;",onfocus:"请选择网站模板。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "请选择网站模板。"})
		if( $("#txtCompanyDomain").length>0)
		{
			$("#txtCompanyDomain").formValidator({onshow:"&nbsp;",onfocus:"如不申请可为空。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^[a-zA-Z0-9]{0,}$",onerror:"只可以为数字和字母。"})
		}
		$("#txtCompanyTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入企业SEO标题，不超过100字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:500,onerror: "请输入企业SEO标题，不超过100字。"})
		$("#txtCompanyKeyword").formValidator({onshow:"&nbsp;",onfocus:"请输入企业SEO关键字，多个请用逗号隔开，不超过200字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:200,onerror: "请输入企业SEO关键字，多个请用逗号隔开，不超过200字。"})
		$("#txtCompanyDescription").formValidator({onshow:"&nbsp;",onfocus:"请输入企业SEO描述，不超过500字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:500,onerror: "请输入企业SEO描述，不超过500字。"})
		$("#txtCompanyContentName").formValidator({onshow:"&nbsp;",onfocus:"请输入公司简介显示名称，四个汉字。",oncorrect:"&nbsp;"}).inputValidator({min:4,max:20,onerror: "请输入公司简介显示名称，四个汉字。"})
		$("#txtCompanyWenhuaName").formValidator({onshow:"&nbsp;",onfocus:"请输入企业文化显示名称，四个汉字。",oncorrect:"&nbsp;"}).inputValidator({min:4,max:20,onerror: "请输入企业文化显示名称，四个汉字。"})
		$("#txtCompanyRongyuName").formValidator({onshow:"&nbsp;",onfocus:"请输入企业荣誉显示名称，四个汉字。",oncorrect:"&nbsp;"}).inputValidator({min:4,max:20,onerror: "请输入企业荣誉显示名称，四个汉字。"})
		$("#txtCompanyNewsName").formValidator({onshow:"&nbsp;",onfocus:"请输入企业新闻显示名称，四个汉字。",oncorrect:"&nbsp;"}).inputValidator({min:4,max:20,onerror: "请输入企业新闻显示名称，四个汉字。"})
		$("#txtCompanyHuoName").formValidator({onshow:"&nbsp;",onfocus:"请输入优惠活动显示名称，四个汉字。",oncorrect:"&nbsp;"}).inputValidator({min:4,max:20,onerror: "请输入优惠活动显示名称，四个汉字。"})
		$("#txtCompanyProductName").formValidator({onshow:"&nbsp;",onfocus:"请输入产品展示显示名称，四个汉字。",oncorrect:"&nbsp;"}).inputValidator({min:4,max:20,onerror: "请输入产品展示显示名称，四个汉字。"})
		$("#txtCompanyAnliName").formValidator({onshow:"&nbsp;",onfocus:"请输入成功案例显示名称，四个汉字。",oncorrect:"&nbsp;"}).inputValidator({min:4,max:20,onerror: "请输入成功案例显示名称，四个汉字。"})
		$("#txtCompanyVideoName").formValidator({onshow:"&nbsp;",onfocus:"请输入企业视频显示名称，四个汉字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:20,onerror: "请输入企业视频显示名称，四个汉字。"})
		$("#txtCompanyQuanName").formValidator({onshow:"&nbsp;",onfocus:"请输入360全景显示名称，四个汉字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:20,onerror: "请输入360全景显示名称，四个汉字。"})
	}
	if($_D("memebercommentform"))
	{
		$.formValidator.initConfig({formid:"memebercommentform",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			$("#memebercommentsubmit").attr("disabled", true); //设置为不可
			$.ajax({
                type: "post",
                global: false,
                dataType: "html",
                url: "/public/Ajax.aspx",
                data: { CommentID: $("#CommentID").val(),content: $("#txtCommentReplay").val(),kill:$("input[name='txtCommentKill']:checked").val(), action: "editcomment" },
                success: function(data, textStatus) {
                    var content = data.toString();
                    if(content=="0")
					{
						alert("回复评论成功！");	
					}
					else
					{
						alert(content);
					}
					$("#memebercommentsubmit").attr("disabled", false); //设置为可
                }
            });
			return false;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtCommentReplay").formValidator({onshow:"&nbsp;",onfocus:"请输入回复内容，不多于500字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:500,onerror: "请输入回复内容，不多于500字。"})
	}
	if($_D("MemberhuangForm"))
	{
		$.formValidator.initConfig({formid:"MemberhuangForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberhuangForm");
		 	x.action="MemberStoreHuang.aspx?action=add";
			$("#MemberCompanySubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtAdvTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入标题，不多于100字。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:100,onerror: "请输入标题，不多于100字。"})
		$("#txtAdvUrl").formValidator({onshow:"&nbsp;",onfocus:"请输入链接，以http://开始。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:200,onerror: "请输入链接，以http://开始。"})
		$("#txtAdvFilepath").formValidator({onshow:"&nbsp;",onfocus:"请选择上传幻灯片图片。",oncorrect:"&nbsp;"}).functionValidator({
			fun:function(val,elem){
				if($("#ID").val()!="0" || val.length>3){
					return true;
				}else{
					return "请选择上传幻灯片图片。"
				}
			}
		});
		$("#txtAdvOrder").formValidator({onshow:"&nbsp;",onfocus:"请输入幻灯片排序，数字越小越排在前面。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^\\d{1,5}$",onerror:"幻灯片排序输入不正确。"});
	}
	if($_D("MemberLinkForm"))
	{
		$.formValidator.initConfig({formid:"MemberLinkForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberLinkForm");
		 	x.action="MemberStoreLink.aspx?action=add";
			$("#MemberCompanySubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtlinkname").formValidator({onshow:"&nbsp;",onfocus:"请输入店铺名称或用户名。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:200,onerror: "请输入店铺名称或用户名。"})
		$("#txtLinkOrder").formValidator({onshow:"&nbsp;",onfocus:"请输入链接排序，数字越小越排在前面。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^\\d{1,5}$",onerror:"链接排序输入不正确。"});
	}
	if($_D("MemberAddressForm"))
	{
		$.formValidator.initConfig({formid:"MemberAddressForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberAddressForm");
		 	x.action="MemberStoreAddress.aspx?action=add";
			$("#MemberCompanySubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtAddressName").formValidator({onshow:"&nbsp;",onfocus:"请输入地址，可以在地图上详细标注。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:100,onerror: "请输入地址，不多于100字。"})
		$("#txtAddressTel").formValidator({onshow:"&nbsp;",onfocus:"请输入联系电话，方便客户联系您。",oncorrect:"&nbsp;"}).inputValidator({min:6,max:40,onerror: "请输入正确的联系电话，方便客户联系您。"})
		$("#txtAddressFax").formValidator({onshow:"&nbsp;",onfocus:"请输入传真。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:20,onerror: "请输入传真。"})
		$("#txtAddressTraffic").formValidator({onshow:"&nbsp;",onfocus:"请输入交通路线。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:200,onerror: "请输入交通路线。"})
		$("#txtAddressOrder").formValidator({onshow:"&nbsp;",onfocus:"请输入地址排序，数字越小越排在前面。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^\\d{1,5}$",onerror:"地址排序输入不正确。"});
	}
	if($_D("MemberPicForm"))
	{
		$.formValidator.initConfig({formid:"MemberPicForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberPicForm");
		  	x.action="MemberStorePic.aspx?action=add";
			$("#MemberCompanySubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtPicTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入店铺展示的标题。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "请输入店铺展示的标题，100字以内。"})
		$("#txtPicCategoryID").formValidator({onshow:"&nbsp;",onfocus:"请选择店铺展示分类。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:100,onerror: "请选择店铺展示分类。"})
		$("#txtPicFilepath").formValidator({onshow:"图片大小(长*宽不超过：160*160)",onfocus:"请选择上传店铺展示的代表图片。",oncorrect:"&nbsp;"}).functionValidator({
			fun:function(val,elem){
				if($("#ID").val()!="0" || val.length>3){
					return true;
				}else{
					return "请选择上传店铺展示的代表图片。"
				}
			}
		});
	}
	$("#btnSearchButton").click(function(){
		var aa=$.trim( $("#txtCategoryName").val() );
		if(aa=="")
		{
			alert("对不起，请输入分类名称！");
			$("#txtCategoryName").focus();
			return false;
		}
	   $.ajax({
		  url: "../public/ajax.aspx?action=addcompanycategory&aa="+escape(aa)+"&id="+$("#txtCategoryName").attr("rel"),
		  cache: false,
		  success:function(data)
		  {
			  if(data==0)
			  {
				window.location.href=window.location.href;
			  }
			  else{
				alert(data);
			  }
		  }
		});	
		return false;
	});
	$("#DataList1").find("#edit").each(function(){
		$(this).click(function(){
			$("#btnSearchButton").val("修改分类");
			$("#btnSearchButton").css("color","#ff0000");
			$("#txtCategoryName").val($(this).attr("alt"));
			$("#txtCategoryName").attr("rel",$(this).attr("rel"));
		});
	});
	$("#orderlist").find("input").each(function(){
		$(this).keyup(function(){
			if($(this).attr("id").indexOf("txtShopJie")==-1)
			{
				$(this).val( $(this).val().replace(/\D+/g,"") );
			}
			else{
				//先把非数字的都替换掉，除了数字和.
				$(this).val($(this).val().replace(/[^-?\d.]/g,""));
				//必须保证第一个为数字而不是.
				$(this).val( $(this).val().replace(/^\./g,""));
				//保证只有出现一个.而没有多个.
				$(this).val( $(this).val().replace(/\.{2,}/g,"."));
				$(this).val( $(this).val().replace(/\-{2,}/g,"-"));
			}
		});
	});
	$("#DataList1").find("#Delete").each(function(){
		$(this).click(function(){
			if(confirm("删除店铺展示分类，将会删除店铺展示分类下面的图片"))
			{
				$.ajax({
				  url: "../public/ajax.aspx?action=addcompanycategory&id=-"+$(this).attr("rel"),
				  cache: false,
				  success:function(data)
				  {
					  if(data==0)
					  {
						window.location.href=window.location.href;
					  }
					  else{
						alert(data);
					  }
				  }
				});	
			}
		});
	});
	if($_D("MemberhuodongForm"))
	{
		$.formValidator.initConfig({formid:"MemberhuodongForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberhuodongForm");
			x.action="memberstorehuodong.aspx?action=add";
			$("#MemberCompanySubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtNewsTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入优惠活动的标题。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "请输入优惠活动的标题，100字以内。"})
	}
	if($_D("MemberCompanyPicForm"))
	{
		$.formValidator.initConfig({formid:"MemberCompanyPicForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberCompanyPicForm");
		  	x.action="MemberCompanyPic.aspx?action=add";
			$("#MemberCompanySubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtPicTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入产品标题。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "请输入产品标题，100字以内。"})
		$("#txtPicOrder").formValidator({onshow:"&nbsp;",onfocus:"请输入分类排序，数字越大越排在前面。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^\\d{1,5}$",onerror:"显示排序输入不正确。"});
		$("#txtPicCategoryID").formValidator({onshow:"&nbsp;",onfocus:"请选择产品分类。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:100,onerror: "请选择产品分类。"})
		$("#txtPicFilepath").formValidator({onshow:"图片大小(长*宽不超过：130*130)",onfocus:"请选择上传产品的代表图片。",oncorrect:"&nbsp;"}).functionValidator({
			fun:function(val,elem){
				if($("#ID").val()!="0" || val.length>3){
					return true;
				}else{
					return "请选择上传产品的代表图片。"
				}
			}
		});
	}
	if($_D("MemberCompanyNewsForm"))
	{
		$.formValidator.initConfig({formid:"MemberCompanyNewsForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberCompanyNewsForm");
			x.action="MemberCompanyNews.aspx?action=add";
			$("#MemberCompanySubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtNewsTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入新闻标题。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "请输入新闻标题，100字以内。"})
	}
	if($_D("MemberCompanyHuodongForm"))
	{
		$.formValidator.initConfig({formid:"MemberCompanyHuodongForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberCompanyHuodongForm");
			x.action="MemberCompanyHuodong.aspx?action=add";
			$("#MemberCompanySubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtNewsTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入活动标题。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "请输入活动标题，100字以内。"})
	}
	if($_D("MemberCompanyAnliForm"))
	{
		$.formValidator.initConfig({formid:"MemberCompanyAnliForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberCompanyAnliForm");
			x.action="MemberCompanyAnli.aspx?action=add";
			$("#MemberCompanySubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtNewsTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入成功案例标题。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "请输入成功案例标题，100字以内。"})
	}
	if($_D("MemberCompanyLinkForm"))
	{
		$.formValidator.initConfig({formid:"MemberCompanyLinkForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberCompanyLinkForm");
		 	x.action="MemberCompanyLink.aspx?action=add";
			$("#MemberCompanySubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtLinkName").formValidator({onshow:"&nbsp;",onfocus:"请输入链接的网站名称。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "请输入链接的网站名称。"})
		$("#txtLinkUrl").formValidator({onshow:"&nbsp;",onfocus:"请输入链接的网站地址，以http://开头。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:200,onerror: "请输入链接的网站地址，以http://开头。"})
		$("#txtLinkOrder").formValidator({onshow:"&nbsp;",onfocus:"请输入链接排序，数字越小越排在前面。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^\\d{1,5}$",onerror:"链接排序输入不正确。"});
	}
	if($_D("MemberCategoryForm"))
	{
		$.formValidator.initConfig({formid:"MemberCategoryForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberCategoryForm");
		 	x.action="MemberStoreCategory.aspx?action=add";
			$("#MemberCompanySubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtClassName").formValidator({onshow:"&nbsp;",onfocus:"请输入商品分类名称。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:50,onerror: "商品分类名称控制在50字之内。"})
		$("#txtClassParent").formValidator({onshow:"&nbsp;",onfocus:"选择上级商品分类，如果是一级，请不要选择。",oncorrect:"&nbsp;"}).inputValidator({min:0,onerror: "选择上级商品分类，如果是一级，请不要选择。"})
		$("#txtClassOrder").formValidator({onshow:"&nbsp;",onfocus:"请输入分类排序，数字越小越排在前面。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^\\d{1,5}$",onerror:"显示排序输入不正确。"});
		$("#txtClassFilePath").formValidator({onshow:"图片大小，宽度不能超过160px",onfocus:"上传商品分类图片，没有可不传。",oncorrect:"&nbsp;"}).inputValidator({min:0,onerror: "上传商品分类图片，没有可不传。"})
	}
	
	if($_D("memebershopform"))
	{
		$.formValidator.initConfig({formid:"memebershopform",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("memebershopform");
		 	x.action="MemberStoreShopAdd.aspx?action=add";
			$("#MemberCompanySubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtShopCode").formValidator({onshow:"&nbsp;",onfocus:"请输入您的商品编码，没有可不填。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:20,onerror: "请输入您的商品编码，没有可不填，20位以内。"})
		$("#txtShopName").formValidator({onshow:"&nbsp;",onfocus:"请输入商品名称，200字以内。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:200,onerror: "请选择商品名称，200字以内。"})
		$("#txtShopPinpaiID").formValidator({onshow:"&nbsp;",onfocus:"请选择商品品牌，没有可不选择。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:20000,onerror: "请正确选择商品品牌"})
		$("#txtShopClass").formValidator({onshow:"&nbsp;",onfocus:"请选择商品分类。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "请选择商品分类。"})
		$("#txtShopSong").formValidator({onshow:"&nbsp;",onfocus:"购买商品赠送礼品，没有可不填写。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:100,onerror: "购买商品赠送礼品，没有可不填写。"})
		$("#txtShopMoneyYuan").formValidator({onshow:"&nbsp;",onfocus:"请输入市场价，输入0表示面议。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^\\d+(\\.\\d+)?$",onerror:"请输入市场价，输入0表示面议。"});
		$("#txtShopMoney").formValidator({onshow:"&nbsp;",onfocus:"请输入商品价格，输入0表示面议。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^\\d+(\\.\\d+)?$",onerror:"请输入商品价格，输入0表示面议。"});
		$("#txtShopYunfei").formValidator({onshow:"&nbsp;",onfocus:"请输入商品运费，输入0表示免运费。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^\\d+(\\.\\d+)?$",onerror:"请输入商品运费，输入0表示免运费。"});
	}
	
	if($_D("dialogshopTop"))
	{
		$("#InfoDay").bind("keyup",function(){
			this.value=this.value.replace(/\D/g,'');
			GetInfoTotal();
		});
		$("#InfoMoney").bind("keyup",function(){
			this.value=this.value.replace(/\D/g,'');								  
			GetInfoTotal();
		});
		if(parseInt($("#UserScore").html())<parseInt($("#TotalScore").html()))
			$("#InfoTopSubmit").attr("disabled", true); //设置为不可点
		$("#dialogshopTop").submit(function(){
			if( $("#InfoMoney").val() < parseInt($("#SiteInfoJingjia").html()))
			{
				$("#InfoTopSubmit").attr("disabled", true); //设置为不可点
				alert("对不起，出价不能低于底价"+$("#SiteInfoJingjia").html()+"！");
				$("#InfoMoney").focus();
				return false;
			}
			var args = new Object();
		    args = GetUrlParms();
		    var InfoID = args["InfoID"];
			 $.ajax({
			  url: "../public/ajax.aspx?action=topshop&InfoID="+InfoID+"&InfoDay="+$("#InfoDay").val()+"&InfoMoney="+$("#InfoMoney").val(),
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，付费竟价成功!");
					window.parent.AntHouseSale.InfoTop(InfoID);
				  }
				  else{
					alert(data);
				  }
			  }
			});
			return false;
		});
	}
	
	if($_D("memberorderPaysubmit"))
	{
		$("#memberorderPaysubmit").submit(function(){	
			$("#MemberMyorder").attr("disabled", true); //设置为不可点	
			var aa = $("input[name='paytype']:checked").val();
			if($("input[name='paytype']:checked").length==0)
			{
				$.ajax({
				  url: "../public/ajax.aspx?action=updateorder&id="+$("#tuangouid").val(),
				  cache: false,
				  success:function(data)
				  {
					  if(data=="0")
					  {
						 alert("支付成功！");
						 window.location.href="MemberOrder.aspx";
					  }
					  else
					  {
						  alert(data);
						  $("#MemberMyorder").attr("disabled", false); //设置为不可点
					  }
				  }
				});	
				return false;
			}
			else
			{
				var cc = $("#PayMentIsself"+aa).val();
				if(aa=="1" && cc=="1")
				{
					var x=document.getElementById("memberorderPaysubmit");
					x.action="../BankPay/Alipay/AliPayDefault.aspx?action=shoppay";
					return true;
				}
				else if(aa=="1" && cc=="0")
				{
					var x=document.getElementById("memberorderPaysubmit");
					x.action="../BankPay/PartnerAlipay/AliPayDefault.aspx?action=shoppay";
					return true;
				}
				else if(aa=="1" && cc=="2")
				{
					var x=document.getElementById("memberorderPaysubmit");
					x.action="../BankPay/TwoAlipay/AliPayDefault.aspx?action=shoppay";
					return true;
				}
				else if(aa=="2"){
					var x=document.getElementById("memberorderPaysubmit");
					x.action="../BankPay/Chinabank/BankSend.aspx?action=shoppay";
					return true;	
				}
				else if(aa=="3" && cc=="0"){
					var x=document.getElementById("memberorderPaysubmit");
					x.action="../BankPay/PartnerTenpay/TenpayDefault.aspx?action=shoppay";
					return true;	
				}
				else if(aa=="3" && cc=="1"){
					var x=document.getElementById("memberorderPaysubmit");
					x.action="../BankPay/Tenpay/TenpayDefault.aspx?action=shoppay";
					return true;	
				}
				else if(aa=="-1" ){
					var x=document.getElementById("memberorderPaysubmit");
					x.action="../BankPay/Cbb/CBDefault.aspx?action=shoppay";
					return true;	
				}
			}
		});
	}
	
	if($_D("MemberHouseBuildForm"))
	{
		$.formValidator.initConfig({formid:"MemberHouseBuildForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberHouseBuildForm");
		 	x.action="MemberBuildAdd.aspx?action=add";
			$("#MemberHouseSubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtBuildName").formValidator({onshow:"&nbsp;",onfocus:"请输入楼盘的名称。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:50,onerror: "请输入楼盘的名称，50字符以内。"})
		$("#txtBuildAreaID").formValidator({onshow:"&nbsp;",onfocus:"请选择楼盘所在的地区。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "请选择楼盘所在的地区。"})
		$("#txtBuildAddress").formValidator({onshow:"&nbsp;",onfocus:"请输入楼盘地址。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:250,onerror: "请输入楼盘地址，250字以内。"})
		$("#txtBuildDeveloper").formValidator({onshow:"&nbsp;",onfocus:"请输入楼盘开发商。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:50,onerror: "请输入楼盘开发商。"})
		$("#txtBuildDeveloperUrl").formValidator({onshow:"&nbsp;",onfocus:"楼盘开发商的网址，可以不填写。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:150,onerror: "楼盘开发商网址长度不能超过150字符。"})
		$("#txtBuildPrice").formValidator({onshow:"&nbsp;",onfocus:"请输入楼盘均价，输入0表示售价待定。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^\\d{1,10}$",onerror:"请输入楼盘均价，输入0表示售价待定。"});
		$("#txtBuildShoulouTel").formValidator({onshow:"&nbsp;",onfocus:"请输入售楼处电话。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:50,onerror: "请输入售楼处电话。"})
		$("#txtBuildShoulouDate").formValidator({onshow:"&nbsp;",onfocus:"请输入售楼处服务时间。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:50,onerror: "请输入售楼处服务时间。"})
		$("#txtBuildShoulouAddress").formValidator({onshow:"&nbsp;",onfocus:"请输入售楼地址。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:150,onerror: "请输入售楼地址。"})
		$("#txtBuildMark").formValidator({onshow:"&nbsp;",onfocus:"请输入楼盘项目介绍。",oncorrect:"&nbsp;"}).inputValidator({min:10,max:1000,onerror: "请输入楼盘项目介绍，在10至1000字符以内。"})
		$("#txtBuildZhandi").formValidator({onshow:"&nbsp;",onfocus:"楼盘占地面积，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "楼盘占地面积，如果不填写，前台将不显示。"})
		$("#txtBuildJianzhu").formValidator({onshow:"&nbsp;",onfocus:"楼盘建筑面积，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "楼盘建筑面积，如果不填写，前台将不显示。"})
		$("#txtBuildRongji").formValidator({onshow:"&nbsp;",onfocus:"容积率，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "容积率，如果不填写，前台将不显示。"})
		$("#txtBuildLvhu").formValidator({onshow:"&nbsp;",onfocus:"绿化率，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "绿化率，如果不填写，前台将不显示。"})
		$("#txtBuildHushu").formValidator({onshow:"&nbsp;",onfocus:"规划户数，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "规划户数，如果不填写，前台将不显示。"})
		$("#txtBuildJiaofuDate").formValidator({onshow:"&nbsp;",onfocus:"预计交房时间，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "预计交房时间，如果不填写，前台将不显示。"})
		$("#txtBuildKaipanDate").formValidator({onshow:"&nbsp;",onfocus:"预计开盘时间，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "预计开盘时间，如果不填写，前台将不显示。"})
		$("#txtBuildWuye").formValidator({onshow:"&nbsp;",onfocus:"物业管理费，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "物业管理费，如果不填写，前台将不显示。"})
		$("#txtBuildChewei").formValidator({onshow:"&nbsp;",onfocus:"车位数，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "车位数，如果不填写，前台将不显示。"})
		$("#txtBuildYezhu").formValidator({onshow:"&nbsp;",onfocus:"业主论坛，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:150,onerror: "业主论坛，如果不填写，前台将不显示。"})
		$("#txtBuildGongjiao").formValidator({onshow:"&nbsp;",onfocus:"楼盘附近的公交线路，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:250,onerror: "楼盘附近的公交线路，如果不填写，前台将不显示。"})
		$("#txtBuildGonglu").formValidator({onshow:"&nbsp;",onfocus:"楼盘附近的高速公路，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:250,onerror: "楼盘附近的高速公路，如果不填写，前台将不显示。"})
		$("#txtBuildJiaoyu").formValidator({onshow:"&nbsp;",onfocus:"楼盘附近的教育，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:250,onerror: "楼盘附近的教育，如果不填写，前台将不显示。"})
		$("#txtBuildYiyuan").formValidator({onshow:"&nbsp;",onfocus:"楼盘附近的医院，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:250,onerror: "楼盘附近的医院，如果不填写，前台将不显示。"})
		$("#txtBuildYinhang").formValidator({onshow:"&nbsp;",onfocus:"楼盘附近的银行，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:250,onerror: "楼盘附近的银行，如果不填写，前台将不显示。"})
		$("#txtBuildPeitao").formValidator({onshow:"&nbsp;",onfocus:"楼盘附近的配套，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:250,onerror: "楼盘附近的配套，如果不填写，前台将不显示。"})
		$("#txtBuildQita").formValidator({onshow:"&nbsp;",onfocus:"楼盘附近的其他设施，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:250,onerror: "楼盘附近的其他设施，如果不填写，前台将不显示。"})
	}
	
	if($_D("MemberBuildHuForm"))
	{
		$.formValidator.initConfig({formid:"MemberBuildHuForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			$("#MemberBuildHuSubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtHuxingShi").formValidator({onshow:"&nbsp;",onfocus:"请选择房型。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "请选择房型。"})
		$("#txtHuxingTing").formValidator({onshow:"&nbsp;",onfocus:"请选择房型。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "请选择房型。"})
		$("#txtHuxingWei").formValidator({onshow:"&nbsp;",onfocus:"请选择房型。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "请选择房型。"})
		$("#txtHuxingSize").formValidator({onshow:"&nbsp;",onfocus:"请输入户型的面积。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^\\d+(\\.\\d+)?$",onerror:"请输入户型的面积。"}).inputValidator({min:2,max:50,onerror: "请正确输入户型的面积。"});
	}
	if($_D("MemberCommunityHuForm"))
	{
		$.formValidator.initConfig({formid:"MemberCommunityHuForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			$("#MemberCommunityHuSubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtHuxingShi").formValidator({onshow:"&nbsp;",onfocus:"请选择房型。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "请选择房型。"})
		$("#txtHuxingTing").formValidator({onshow:"&nbsp;",onfocus:"请选择房型。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "请选择房型。"})
		$("#txtHuxingWei").formValidator({onshow:"&nbsp;",onfocus:"请选择房型。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "请选择房型。"})
		$("#txtHuxingSize").formValidator({onshow:"&nbsp;",onfocus:"请输入户型的面积。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^\\d+(\\.\\d+)?$",onerror:"请输入户型的面积。"}).inputValidator({min:2,max:50,onerror: "请正确输入户型的面积。"});
	}
	if($_D("MemberBuildClassForm"))
	{
		$.formValidator.initConfig({formid:"MemberBuildClassForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			$("#MemberBuildClassSubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtCategoryName").formValidator({onshow:"&nbsp;",onfocus:"请输入相册名称。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:50,onerror: "请输入相册名称。"})
		$("#txtCategoryOrder").formValidator({onshow:"&nbsp;",onfocus:"请输入相册排序。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^\\d{1,5}$",onerror:"请正确输入相册排序。"})
	}
	if($_D("MemberBuildNewsForm"))
	{
		$.formValidator.initConfig({formid:"MemberBuildNewsForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			$("#MemberBuildClassSubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtNewsTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入楼盘动态标题。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:150,onerror: "请输入楼盘动态标题。"})
		$("#txtNewsKeyword").formValidator({onshow:"&nbsp;",onfocus:"请输入楼盘动态关键字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:100,onerror: "请输入楼盘动态关键字。"})
		$("#txtNewsDate").formValidator({onshow:"&nbsp;",onfocus:"请输入时间。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:50,onerror: "请输入时间。"})
	}
	if($_D("MemberBuildPicForm"))
	{
		$.formValidator.initConfig({formid:"MemberBuildPicForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			$("#MemberBuildPicSubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtPicName").formValidator({onshow:"&nbsp;",onfocus:"请输入相片名称。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "请输入相片名称。"})
		$("#txtPicCategoryid").formValidator({onshow:"&nbsp;",onfocus:"请选择相片所属楼盘相册。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:100,onerror: "请选择相片所属楼盘相册。"})
		$("#txtPicOrder").formValidator({onshow:"&nbsp;",onfocus:"请输入相片排序。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^\\d{1,5}$",onerror:"请输入相片排序。"})
	}
	if($_D("MemberCommunityPicForm"))
	{
		$.formValidator.initConfig({formid:"MemberCommunityPicForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			$("#MemberCommunityPicSubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtPicName").formValidator({onshow:"&nbsp;",onfocus:"请输入相片名称。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "请输入相片名称。"})
		$("#txtPicOrder").formValidator({onshow:"&nbsp;",onfocus:"请输入相片排序。",oncorrect:"&nbsp;"}).regexValidator({regexp:"^\\d{1,5}$",onerror:"请输入相片排序。"})
	}
	if($_D("MemberHouseCommunityForm"))
	{
		$.formValidator.initConfig({formid:"MemberHouseCommunityForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberHouseCommunityForm");
		 	x.action="MemberCommunityAdd.aspx?action=add";
			$("#MemberHouseSubmit").attr("disabled", true); //设置为不可
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtCommunityName").formValidator({onshow:"&nbsp;",onfocus:"请输入小区的名称。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:50,onerror: "请输入小区的名称，50字符以内。"})
		$("#txtCommunityAreaID").formValidator({onshow:"&nbsp;",onfocus:"请选择小区所在的地区。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "请选择小区所在的地区。"})
		$("#txtCommunityAddress").formValidator({onshow:"&nbsp;",onfocus:"请输入小区地址。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:250,onerror: "请输入小区地址，250字以内。"})
		$("#txtCommunityDeveloper").formValidator({onshow:"&nbsp;",onfocus:"请输入小区开发商。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:50,onerror: "请输入小区开发商。"})
		$("#txtCommunityDeveloperUrl").formValidator({onshow:"&nbsp;",onfocus:"小区开发商的网址，可以不填写。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:150,onerror: "小区开发商网址长度不能超过150字符。"})
		$("#txtCommunityMark").formValidator({onshow:"&nbsp;",onfocus:"请输入小区项目介绍。",oncorrect:"&nbsp;"}).inputValidator({min:10,max:1000,onerror: "请输入小区项目介绍，在10至1000字符以内。"})
		$("#txtCommunityZhandi").formValidator({onshow:"&nbsp;",onfocus:"小区占地面积，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "小区占地面积，如果不填写，前台将不显示。"})
		$("#txtCommunityJianzhu").formValidator({onshow:"&nbsp;",onfocus:"小区建筑面积，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "小区建筑面积，如果不填写，前台将不显示。"})
		$("#txtCommunityRongji").formValidator({onshow:"&nbsp;",onfocus:"容积率，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "容积率，如果不填写，前台将不显示。"})
		$("#txtCommunityLvhu").formValidator({onshow:"&nbsp;",onfocus:"绿化率，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "绿化率，如果不填写，前台将不显示。"})
		$("#txtCommunityHushu").formValidator({onshow:"&nbsp;",onfocus:"规划户数，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "规划户数，如果不填写，前台将不显示。"})
		$("#txtCommunityJianzhuDate").formValidator({onshow:"&nbsp;",onfocus:"建筑年代，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "建筑年代，如果不填写，前台将不显示。"})
		$("#txtCommunityWuye").formValidator({onshow:"&nbsp;",onfocus:"物业管理费，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "物业管理费，如果不填写，前台将不显示。"})
		$("#txtCommunityChewei").formValidator({onshow:"&nbsp;",onfocus:"车位数，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:50,onerror: "车位数，如果不填写，前台将不显示。"})
		$("#txtCommunityYezhu").formValidator({onshow:"&nbsp;",onfocus:"业主论坛，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:150,onerror: "业主论坛，如果不填写，前台将不显示。"})
		$("#txtCommunityGongjiao").formValidator({onshow:"&nbsp;",onfocus:"小区附近的公交线路，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:250,onerror: "小区附近的公交线路，如果不填写，前台将不显示。"})
		$("#txtCommunityGonglu").formValidator({onshow:"&nbsp;",onfocus:"小区附近的高速公路，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:250,onerror: "小区附近的高速公路，如果不填写，前台将不显示。"})
		$("#txtCommunityJiaoyu").formValidator({onshow:"&nbsp;",onfocus:"小区附近的教育，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:250,onerror: "小区附近的教育，如果不填写，前台将不显示。"})
		$("#txtCommunityYiyuan").formValidator({onshow:"&nbsp;",onfocus:"小区附近的医院，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:250,onerror: "小区附近的医院，如果不填写，前台将不显示。"})
		$("#txtCommunityYinhang").formValidator({onshow:"&nbsp;",onfocus:"小区附近的银行，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:250,onerror: "小区附近的银行，如果不填写，前台将不显示。"})
		$("#txtCommunityPeitao").formValidator({onshow:"&nbsp;",onfocus:"小区附近的配套，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:250,onerror: "小区附近的配套，如果不填写，前台将不显示。"})
		$("#txtCommunityQita").formValidator({onshow:"&nbsp;",onfocus:"小区附近的其他设施，如果不填写，前台将不显示。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:250,onerror: "小区附近的其他设施，如果不填写，前台将不显示。"})
	}
	
	
	if($_D("MemberVideoAddForm"))
	{
		$.formValidator.initConfig({formid:"MemberVideoAddForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberVideoAddForm");
			x.action="MemberVideoAdd.aspx?action=Edit&IsCheck=1";
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtVideoTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入视频标题，100汉字以内",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "请输入视频标题，100汉字以内"})
		$("#txtVideoClassID").formValidator({onshow:"&nbsp;",onfocus:"请选择视频所属分类",oncorrect:"&nbsp;"}).inputValidator({min:1,max:100,onerror: "请选择视频所属分类"})
		$("#txtVideoKeyword").formValidator({ onshow:"&nbsp;",onfocus: "请输入视频关键字，可不填写。",oncorrect:"&nbsp;"}).inputValidator({ min:0,max:100,onerror: "请输入视频关键字，可不填写。" })
		$("#txtVideoMark").formValidator({ onshow:"&nbsp;",onfocus: "请输入视频描述，没有可不填写。" ,oncorrect:"&nbsp;"}).inputValidator({min:0,max:1000,onerror: "请输入视频描述，没有可不填写。"})
		$('#uploadImageUrl').formValidator({ onshow:"&nbsp;宽*高不能大于120*90",onfocus:'请选择上传代表图片，宽*高不能大于120*90。',oncorrect:"&nbsp;"}).inputValidator({min:0,max:150,onerror: "请选择上传代表图片，宽*高不能大于120*90。"})
	}
	if($_D("MemberYouhuiAddForm"))
	{
		$.formValidator.initConfig({formid:"MemberYouhuiAddForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberYouhuiAddForm");
			x.action="MemberYouhuiAdd.aspx?action=Edit&IsCheck=1";
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtYouhuiTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入优惠券标题，100汉字以内",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "请输入优惠券标题，100汉字以内"})
		$("#txtYouhuiStart").formValidator({ onshow:"&nbsp;",onfocus: "请选择优惠券开始时间。",oncorrect:"&nbsp;"}).inputValidator({ min:5,max:50,onerror: "请选择优惠券开始时间。" })
		$("#txtYouhuiEnd").formValidator({ onshow:"&nbsp;",onfocus: "请选择优惠券结束时间。",oncorrect:"&nbsp;"}).inputValidator({ min:5,max:50,onerror: "请选择优惠券结束时间。" })
		$("#txtYouhuiMark").formValidator({ onshow:"为了避免纠纷和投诉，请输入优惠条件。",onfocus: "为了避免纠纷和投诉，请输入优惠条件。" ,oncorrect:"&nbsp;"}).inputValidator({min:5,max:500,onerror: "为了避免纠纷和投诉，请输入优惠条件，500字以内。"})
		$('#uploadImageUrl').formValidator({ onshow:"&nbsp;宽*高比例为280*186",onfocus:'请选择上传代表图片，宽*高比例为280*186。',oncorrect:"&nbsp;"}).inputValidator({min:0,max:150,onerror: "请选择上传代表图片，宽*高比例为280*186。"})
	}
	if($_D("MemberQuanAddForm"))
	{
		$.formValidator.initConfig({formid:"MemberQuanAddForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberQuanAddForm");
			x.action="MemberQuanAdd.aspx?action=Edit&IsCheck=1";
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtQuanTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入360全景标题，100汉字以内",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "请输入360全景标题，100汉字以内"})
		$("#txtQuanClassID").formValidator({onshow:"&nbsp;",onfocus:"请选择360全景所属分类",oncorrect:"&nbsp;"}).inputValidator({min:1,max:100,onerror: "请选择360全景所属分类"})
		$("#txtQuanKeyword").formValidator({ onshow:"&nbsp;",onfocus: "请输入360全景关键字，可不填写。",oncorrect:"&nbsp;"}).inputValidator({ min:0,max:100,onerror: "请输入360全景关键字，可不填写。" })
		$("#txtQuanMark").formValidator({ onshow:"&nbsp;",onfocus: "请输入360全景描述，没有可不填写。" ,oncorrect:"&nbsp;"}).inputValidator({min:0,max:1000,onerror: "请输入360全景描述，没有可不填写。"})
		$('#uploadImageUrl').formValidator({ onshow:"&nbsp;宽*高不能大于160*100",onfocus:'请选择上传代表图片，宽*高不能大于160*100。',oncorrect:"&nbsp;"}).inputValidator({min:0,max:150,onerror: "请选择上传代表图片，宽*高不能大于160*100。"})
	}
	if($_D("dialoglifezhiding"))
	{
		$("#infozhiding").bind("click",function(){
			GetInfoTotalDing();
		});
		$("[name='RadioGroup']").each(function(){ 
			$(this).click(function(){
				var total = $("#infozhidingscore").val() * $("input[name='RadioGroup']:checked").val();
				$("#infozhidingtotal").html(total);
				GetInfoTotalDing();
			});
		});
		if(parseInt($("#UserScore").html())<parseInt($("#TotalScore").html()))
			$("#zhidingsubmit").attr("disabled", true); //设置为不可点
		$("#dialoglifezhiding").submit(function(){
			var tt1=0,tt2=0,tt3=0,tt4=0;
			if( $("input[name='infozhiding']:checked").val()=="1" )
				tt3=1;
			tt4=$("input[name='RadioGroup']:checked").val();
			if(tt1==0 && tt2==0 && tt3==0)
			{
				$("#zhidingsubmit").attr("disabled", true); //设置为不可点
				alert("对不起，请选择置顶服务！");
				return false;
			}
			var args = new Object();
		    args = GetUrlParms();
		    var LifeID = args["LifeID"];
			 $.ajax({
			  url: "../public/ajax.aspx?action=dinglife&LifeID="+LifeID+"&tt1="+tt1+"&tt2="+tt2+"&tt3="+tt3+"&tt4="+tt4,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，付费置顶成功!");
					window.parent.AntLifeClass.InfoZhiDing(InfoID);
				  }
				  else{
					alert(data);
				  }
			  }
			});
			return false;
		});
	}
	if($_D("dialogvideozhiding"))
	{
		$("#infozhiding").bind("click",function(){
			GetInfoTotalDing();
		});
		$("[name='RadioGroup']").each(function(){ 
			$(this).click(function(){
				var total = $("#infozhidingscore").val() * $("input[name='RadioGroup']:checked").val();
				$("#infozhidingtotal").html(total);
				GetInfoTotalDing();
			});
		});
		if(parseInt($("#UserScore").html())<parseInt($("#TotalScore").html()))
			$("#zhidingsubmit").attr("disabled", true); //设置为不可点
		$("#dialogvideozhiding").submit(function(){
			var tt1=0,tt2=0,tt3=0,tt4=0;
			if( $("input[name='infozhiding']:checked").val()=="1" )
				tt3=1;
			tt4=$("input[name='RadioGroup']:checked").val();
			if(tt1==0 && tt2==0 && tt3==0)
			{
				$("#zhidingsubmit").attr("disabled", true); //设置为不可点
				alert("对不起，请选择置顶服务！");
				return false;
			}
			var args = new Object();
		    args = GetUrlParms();
		    var LifeID = args["VideoID"];
			 $.ajax({
			  url: "../public/NewJson.aspx?action=dingvideo&VideoID="+LifeID+"&tt1="+tt1+"&tt2="+tt2+"&tt3="+tt3+"&tt4="+tt4,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，付费置顶成功!");
					window.parent.AntVideoClass.InfoZhiDing(LifeID);
				  }
				  else{
					alert(data);
				  }
			  }
			});
			return false;
		});
	}
	if($_D("dialogQuanzhiding"))
	{
		$("#infozhiding").bind("click",function(){
			GetInfoTotalDing();
		});
		$("[name='RadioGroup']").each(function(){ 
			$(this).click(function(){
				var total = $("#infozhidingscore").val() * $("input[name='RadioGroup']:checked").val();
				$("#infozhidingtotal").html(total);
				GetInfoTotalDing();
			});
		});
		if(parseInt($("#UserScore").html())<parseInt($("#TotalScore").html()))
			$("#zhidingsubmit").attr("disabled", true); //设置为不可点
		$("#dialogQuanzhiding").submit(function(){
			var tt1=0,tt2=0,tt3=0,tt4=0;
			if( $("input[name='infozhiding']:checked").val()=="1" )
				tt3=1;
			tt4=$("input[name='RadioGroup']:checked").val();
			if(tt1==0 && tt2==0 && tt3==0)
			{
				$("#zhidingsubmit").attr("disabled", true); //设置为不可点
				alert("对不起，请选择置顶服务！");
				return false;
			}
			var args = new Object();
		    args = GetUrlParms();
		    var LifeID = args["QuanID"];
			 $.ajax({
			  url: "../public/NewJson.aspx?action=dingQuan&QuanID="+LifeID+"&tt1="+tt1+"&tt2="+tt2+"&tt3="+tt3+"&tt4="+tt4,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，付费置顶成功!");
					window.parent.AntQuanClass.InfoZhiDing(LifeID);
				  }
				  else{
					alert(data);
				  }
			  }
			});
			return false;
		});
	}
	if($_D("MemberDomainConfigForm"))
	{
		$.formValidator.initConfig({formid:"MemberDomainConfigForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberDomainConfigForm");
			x.action="MemberDomain.aspx?action=edit&IsCheck=1&from="+window.location.href;
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		var tishi="(店铺域名不提供修改，只有签约通过才生效)";
		if($("#DomainCun").val()=="1")
			tishi="(以后将不可修改，只有通过签约才生效，比如：www.baidu.com)";
		$("#txtDomainMain").formValidator({onshow:tishi,onfocus:"请输入需要绑定的外部域名，以后不可以修改，请仔细填写",oncorrect:"&nbsp;"}).inputValidator({min:0,onerror: "<p>请选择对应的地区</p><span></span>"})
		$("#txtDomainBeian").formValidator({onshow:"(请输入绑定域名的网站备案编号，只有备案了才能通过审核)",onfocus:"请输入绑定域名的网站备案编号。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:30,onerror: "请输入绑定域名的网站备案编号。"})
	}
	
	if($("#memeberzxform").length>0)
	{
		$.formValidator.initConfig({formid:"memeberzxform",errorfocus:false,onerror:function(msg){},onsuccess:function(){
					
			if( $("#txtCompanyDomain").length>0)
			{
				if(  $.trim($("#txtCompanyDomain").val()).length==0)
				{
						$("#memebercompanysubmit").attr("disabled", true);
						var x=document.getElementById("memeberzxform");
						x.action="memberzxjoin.aspx?action=add&from="+window.location.href;
						return true;
				}
				else{
					if( $.trim($("#txtCompanyDomain").val()).length<parseInt($("#SiteSafeDomainLen").html()) && $.trim($("#txtCompanyDomain").val()).length >0  )
					{
						alert("对不起，域名长度最低"+$("#SiteSafeDomainLen").html()+"位！");  
						return false;
					}
					else{
						$("#memebercompanysubmit").attr("disabled", true);
						var x=document.getElementById("memeberzxform");
						x.action="memberzxjoin.aspx?action=add&from="+window.location.href;
						return true;
					}
				}
			}
			else{
				$("#memebercompanysubmit").attr("disabled", true);
				var x=document.getElementById("memeberzxform");
				x.action="memberzxjoin.aspx?action=add&from="+window.location.href;
				return true;
			}
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtCompanyName").formValidator({onshow:"&nbsp;",onfocus:"请填写您的公司名称。",oncorrect:"&nbsp;"}).inputValidator({min:4,max:60,onerror: "请填写您的公司名称，长度在3-60个字符之间。"})
		$("#txtCompanyAreaID").formValidator({onshow:"&nbsp;",onfocus:"请选择所在地区，客户轻松搜到您。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "请选择所在地区，客户轻松搜到您。"})
		$("#txtCompanyMan").formValidator({onshow:"&nbsp;",onfocus:"请选择联系人，方便与您取的联系。",oncorrect:"&nbsp;"}).inputValidator({min:2,onerror: "请选择联系人，方便与您取的联系。"})
		$("#txtCompanyTel").formValidator({onshow:"&nbsp;",onfocus:"请输入您的联系电话，方便与您取的联系。",oncorrect:"&nbsp;"}).inputValidator({min:7,onerror: "请输入您的联系电话，方便与您取的联系。"})
		$("#txtCompanyAddress").formValidator({onshow:"&nbsp;",onfocus:"请输入您公司的地址。",oncorrect:"&nbsp;"}).inputValidator({min:3,max:200,onerror: "请输入您公司的地址，200字以内。"})
	}
	if($("#memeberjcform").length>0)
	{
		$.formValidator.initConfig({formid:"memeberjcform",errorfocus:false,onerror:function(msg){},onsuccess:function(){
					
			if( $("#txtCompanyDomain").length>0)
			{
				if(  $.trim($("#txtCompanyDomain").val()).length==0)
				{
						$("#memebercompanysubmit").attr("disabled", true);
						var x=document.getElementById("memeberjcform");
						x.action="memberjcjoin.aspx?action=add&from="+window.location.href;
						return true;
				}
				else{
					if( $.trim($("#txtCompanyDomain").val()).length<parseInt($("#SiteSafeDomainLen").html()) && $.trim($("#txtCompanyDomain").val()).length >0  )
					{
						alert("对不起，域名长度最低"+$("#SiteSafeDomainLen").html()+"位！");  
						return false;
					}
					else{
						$("#memebercompanysubmit").attr("disabled", true);
						var x=document.getElementById("memeberjcform");
						x.action="memberjcjoin.aspx?action=add&from="+window.location.href;
						return true;
					}
				}
			}
			else{
				$("#memebercompanysubmit").attr("disabled", true);
				var x=document.getElementById("memeberjcform");
				x.action="memberjcjoin.aspx?action=add&from="+window.location.href;
				return true;
			}
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtCompanyName").formValidator({onshow:"&nbsp;",onfocus:"请填写您的公司名称。",oncorrect:"&nbsp;"}).inputValidator({min:4,max:60,onerror: "请填写您的公司名称，长度在3-60个字符之间。"})
		$("#txtCompanyAreaID").formValidator({onshow:"&nbsp;",onfocus:"请选择所在地区，客户轻松搜到您。",oncorrect:"&nbsp;"}).inputValidator({min:1,onerror: "请选择所在地区，客户轻松搜到您。"})
		$("#txtCompanyMan").formValidator({onshow:"&nbsp;",onfocus:"请选择联系人，方便与您取的联系。",oncorrect:"&nbsp;"}).inputValidator({min:2,onerror: "请选择联系人，方便与您取的联系。"})
		$("#txtCompanyTel").formValidator({onshow:"&nbsp;",onfocus:"请输入您的联系电话，方便与您取的联系。",oncorrect:"&nbsp;"}).inputValidator({min:7,onerror: "请输入您的联系电话，方便与您取的联系。"})
		$("#txtCompanyAddress").formValidator({onshow:"&nbsp;",onfocus:"请输入您公司的地址。",oncorrect:"&nbsp;"}).inputValidator({min:3,max:200,onerror: "请输入您公司的地址，200字以内。"})
	}
	if($_D("MemberZxCertForm"))
	{
		$.formValidator.initConfig({formid:"MemberZxCertForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberZxCertForm");
			x.action="MemberzxCert.aspx?action=add&from="+window.location.href;
			$("#MemberZxSubmit").attr("disabled", true); //设置为不可点	
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtCompanyCertFilepath").formValidator({onshow:"&nbsp;",onfocus:"请选择上传企业营业执照。",oncorrect:"&nbsp;"}).inputValidator({min:2,onerror: "请选择上传企业营业执照。"})
		$("#txtCompanyCertMark").formValidator({onshow:"&nbsp;",onfocus:"可以输入联系方式，方便客服快速审核。",oncorrect:"&nbsp;"}).inputValidator({min:10,max:200,onerror: "申请认证说明在10-200汉字内。",onerrormin: ""})
	}
	if($_D("MemberzxConfigForm"))
	{
		$.formValidator.initConfig({formid:"MemberzxConfigForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberzxConfigForm");
			x.action="memberzxconfig.aspx?action=save&from="+window.location.href;
			$("#MemberCompanySubmit").attr("disabled", true); //设置为不可点	
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtCompanyTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入装修公司店铺的SEO标题。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:200,onerror: "请输入装修公司店铺的SEO标题，在200字内。",onerrormin: ""})
		$("#txtCompanyKeyword").formValidator({onshow:"&nbsp;",onfocus:"请输入装修公司店铺的SEO关键字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:300,onerror: "请输入装修公司店铺的SEO关键字，在300字内。",onerrormin: ""})
		$("#txtCompanyDescription").formValidator({onshow:"&nbsp;",onfocus:"请输入装修公司店铺的SEO描述。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:500,onerror: "请输入装修公司店铺的SEO描述，在500字内。",onerrormin: ""})
	}
	if($_D("MemberjcConfigForm"))
	{
		$.formValidator.initConfig({formid:"MemberjcConfigForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberjcConfigForm");
			x.action="memberjcconfig.aspx?action=save&from="+window.location.href;
			$("#MemberCompanySubmit").attr("disabled", true); //设置为不可点	
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtCompanyTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入装修公司店铺的SEO标题。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:200,onerror: "请输入装修公司店铺的SEO标题，在200字内。",onerrormin: ""})
		$("#txtCompanyKeyword").formValidator({onshow:"&nbsp;",onfocus:"请输入装修公司店铺的SEO关键字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:300,onerror: "请输入装修公司店铺的SEO关键字，在300字内。",onerrormin: ""})
		$("#txtCompanyDescription").formValidator({onshow:"&nbsp;",onfocus:"请输入装修公司店铺的SEO描述。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:500,onerror: "请输入装修公司店铺的SEO描述，在500字内。",onerrormin: ""})
	}
	if($_D("MemberzxNewsForm"))
	{
		$.formValidator.initConfig({formid:"MemberzxNewsForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberzxNewsForm");
			x.action="memberzxnews.aspx?action=add&from="+window.location.href;
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtNewsTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入促销活动标题。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "请输入促销活动标题，在100字内。",onerrormin: ""})
		$("#txtNewsDate").formValidator({onshow:"&nbsp;",onfocus:"请输入促销活动日期。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:30,onerror: "请输入促销活动日期。",onerrormin: ""})
		$("#txtNewsURL").formValidator({onshow:"&nbsp;",onfocus:"请输入促销活动的跳转地址，不跳转请留空。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:100,onerror: "请输入促销活动的跳转地址，不跳转请留空。",onerrormin: ""})
	}
	if($_D("MemberjcNewsForm"))
	{
		$.formValidator.initConfig({formid:"MemberjcNewsForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberjcNewsForm");
			x.action="memberjcnews.aspx?action=add&from="+window.location.href;
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtNewsTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入促销活动标题。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "请输入促销活动标题，在100字内。",onerrormin: ""})
		$("#txtNewsDate").formValidator({onshow:"&nbsp;",onfocus:"请输入促销活动日期。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:30,onerror: "请输入促销活动日期。",onerrormin: ""})
		$("#txtNewsURL").formValidator({onshow:"&nbsp;",onfocus:"请输入促销活动的跳转地址，不跳转请留空。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:100,onerror: "请输入促销活动的跳转地址，不跳转请留空。",onerrormin: ""})
	}
	if($_D("memeberzxcommentform"))
	{
		$.formValidator.initConfig({formid:"memeberzxcommentform",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			$("#memebercommentsubmit").attr("disabled", true); //设置为不可
			$.ajax({
                type: "post",
                global: false,
                dataType: "html",
                url: "/public/Ajax.aspx",
                data: { CommentID: $("#CommentID").val(),content: $("#txtCommentReplay").val(),kill:$("input[name='txtCommentKill']:checked").val(), action: "EditZxComment" },
                success: function(data, textStatus) {
					
                    var content = data.toString();
                    if(content=="0")
					{
						alert("回复评论成功！");	
					}
					else
					{
						alert(content);
					}
					$("#memebercommentsubmit").attr("disabled", false); //设置为可
                }
            });
			return false;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtCommentReplay").formValidator({onshow:"&nbsp;",onfocus:"请输入回复内容，不多于500字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:500,onerror: "请输入回复内容，不多于500字。"})
	}
	if($_D("memeberjccommentform"))
	{
		$.formValidator.initConfig({formid:"memeberjccommentform",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			$("#memebercommentsubmit").attr("disabled", true); //设置为不可
			$.ajax({
                type: "post",
                global: false,
                dataType: "html",
                url: "/public/Ajax.aspx",
                data: { CommentID: $("#CommentID").val(),content: $("#txtCommentReplay").val(),kill:$("input[name='txtCommentKill']:checked").val(), action: "EditjcComment" },
                success: function(data, textStatus) {
					
                    var content = data.toString();
                    if(content=="0")
					{
						alert("回复评论成功！");	
					}
					else
					{
						alert(content);
					}
					$("#memebercommentsubmit").attr("disabled", false); //设置为可
                }
            });
			return false;
		}});
		$.formValidator.getInitConfig("1").wideword = true;
		$("#txtCommentReplay").formValidator({onshow:"&nbsp;",onfocus:"请输入回复内容，不多于500字。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:500,onerror: "请输入回复内容，不多于500字。"})
	}
	if($_D("MemberDesForm"))
	{
		$.formValidator.initConfig({formid:"MemberDesForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
				var x=document.getElementById("MemberDesForm");
				x.action="Memberdesign.aspx?action=add&from="+window.location.href;
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtDesName").formValidator({onshow:"&nbsp;",onfocus:"请输入设计师的名称。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:20,onerror: "设计师名称一定要填写的噢，长度限制2-20位。"})
		$("#txtDesAge").formValidator({onshow:"&nbsp;",onfocus:"请输入工作年限，没有可以输入0。",oncorrect:"&nbsp;"}).inputValidator({min:1,max:2,onerror: "请输入工作年限，没有可以输入0。",onerrormin: ""})
		$("#txtDesCompany").formValidator({onshow:"&nbsp;",onfocus:"请输入所属装修公司名称。",oncorrect:"&nbsp;"}).inputValidator({min:2,max:50,onerror: "请输入所属装修公司名称。"})
		$("#txtDesLinian").formValidator({onshow:"&nbsp;",onfocus:"请输入设计理念。",oncorrect:"&nbsp;"}).inputValidator({min:0,max:200,onerror: "请输入设计理念。",onerrormin: ""})
	}
	if($_D("MemberanliAddForm"))
	{
		$.formValidator.initConfig({formid:"MemberanliAddForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberanliAddForm");
			x.action="MemberanliAdd.aspx?action=Edit&IsCheck=1";
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtAnTitle").formValidator({onshow:"&nbsp;",onfocus:"请输入装修案例标题，100汉字以内",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "请输入装修案例标题，100汉字以内"})
		$("#txtAnYusuan").formValidator({ onshow:"&nbsp;",onfocus: "请输入装修预算。",oncorrect:"&nbsp;"}).inputValidator({ min:0,max:50,onerror: "请输入装修预算。" }).regexValidator({regexp:"^[1-9]\\d*.\\d*|0.\\d*[1-9]\\d*|0?.0+|0|[1-9]\d*$",onerror:"请正确输入装修预算。"});
		$("#txtAnSize").formValidator({ onshow:"&nbsp;",onfocus: "请输入装修面积。",oncorrect:"&nbsp;"}).inputValidator({ min:0,max:50,onerror: "请输入装修面积。" }).regexValidator({regexp:"^[1-9]\\d*.\\d*|0.\\d*[1-9]\\d*|0?.0+|0|[1-9]\d*$",onerror:"请正确输入装修面积。"});
		$("#txtAnMark").formValidator({ onshow:"请描述一下装修案例。",onfocus: "请描述一下装修案例。" ,oncorrect:"&nbsp;"}).inputValidator({min:0,max:500,onerror: "请描述一下装修案例，500字以内。"})
		$('#uploadImageUrl').formValidator({ onshow:"&nbsp;宽*高比例为280*190",onfocus:'请选择上传代表图片，宽*高比例为280*190。',oncorrect:"&nbsp;"}).inputValidator({min:0,max:150,onerror: "请选择上传代表图片，宽*高比例为280*190。"})
	}
	if($_D("MemberjcproductAddForm"))
	{
		$.formValidator.initConfig({formid:"MemberjcproductAddForm",errorfocus:false,onerror:function(msg){},onsuccess:function(){	
			var x=document.getElementById("MemberjcproductAddForm");
			x.action="MemberjcproductAdd.aspx?action=Edit&IsCheck=1";
			return true;
		}});
		$.formValidator.getInitConfig("1").wideword = false;
		$("#txtProductName").formValidator({onshow:"&nbsp;",onfocus:"请输入建材名称，100汉字以内",oncorrect:"&nbsp;"}).inputValidator({min:2,max:100,onerror: "请输入建材名称，100汉字以内"})
		$("#txtProductMoney1").formValidator({ onshow:"&nbsp;",onfocus: "请正确输入原始价格，可以输入0。",oncorrect:"&nbsp;"}).inputValidator({ min:0,onerror: "请正确输入原始价格，可以输入0。" }).regexValidator({regexp:"^\\d+(\\.\\d+)?$",onerror:"请正确输入原始价格，可以输入0。"});
		$("#txtProductMoney2").formValidator({ onshow:"&nbsp;",onfocus: "请正确输入特价，可以输入0。",oncorrect:"&nbsp;"}).inputValidator({ min:0,onerror: "请正确输入特价，可以输入0。" }).regexValidator({regexp:"^\\d+(\\.\\d+)?$",onerror:"请正确输入特价，可以输入0。"});
		$("#txtProductTypeID").formValidator({ onshow:"&nbsp;",onfocus: "请选择产品类别。" ,oncorrect:"&nbsp;"}).inputValidator({min:0,onerror: "请选择产品类别。"})
		$("#txtProductPinpai").formValidator({ onshow:"&nbsp;",onfocus: "请选择产品品牌，没有可不选择。" ,oncorrect:"&nbsp;"}).inputValidator({min:0,onerror: "请选择产品品牌，没有可不选择。"})
		$('#uploadImageUrl').formValidator({ onshow:"&nbsp;宽*高比例为250*250",onfocus:'请选择上传代表图片，宽*高比例为250*250。',oncorrect:"&nbsp;"}).inputValidator({min:0,max:150,onerror: "请选择上传代表图片，宽*高比例为250*250。"})
		$("#txtProductXinghao").formValidator({onshow:"&nbsp;",onfocus:"请输入产品型号，没有可不填写",oncorrect:"&nbsp;"}).inputValidator({min:0,max:100,onerror: "请输入产品型号，没有可不填写"})
		$("#txtProductGuige").formValidator({onshow:"&nbsp;",onfocus:"请输入产品规格，没有可不填写",oncorrect:"&nbsp;"}).inputValidator({min:0,max:100,onerror: "请输入产品规格，没有可不填写"})
	}
});
function GetSmallNewsClassID(_id){
    $.post("/public/ajax.aspx?action=ShowCompanyClassid", {id:_id}, function(data) {
		var $small=$("select[name='txtCompanyClassID']");
		$small.html("");
		$.each(data,function(idx,item){
			$small.append("<option value='"+item.id+"'>"+item.name+"</option>");
		});
		
	},"json");
}
function GetzxClassID(){
	var _id= $("#txtClassParent").val()
    $.post("/public/ajax.aspx?action=showjcClassid&styleid=0", {id:_id}, function(data) {
		var $small=$("select[name='txtProductTypeID']");
		$small.html("");
		$.each(data,function(idx,item){
			$small.append("<option value='"+item.id+"'>"+item.name+"</option>");
		});
		
	},"json");
    $.post("/public/ajax.aspx?action=showjcClassid&styleid=1", {id:_id}, function(data) {
		var $small=$("select[name='txtProductPinpai']");
		$small.html("");
		$.each(data,function(idx,item){
			$small.append("<option value='"+item.id+"'>"+item.name+"</option>");
		});
		
	},"json");
}
function GetSmallShopCategory(_id){
    $.post("/public/ajax.aspx?action=showshopcategory", {id:_id}, function(data) {
		var $small=$("select[name='txtShopClass']");
		$small.html("");
		$.each(data,function(idx,item){
			$small.append("<option value='"+item.id+"'>"+item.name+"</option>");
		});
		
	},"json");
}
function DeleteGiftExchange(aa){
	if (!window.confirm('此操作不可逆，您确定要取消吗?')) 
	{
		return;
	}
	else
	{
		 $.ajax({
		  url: "../public/ajax.aspx?action=deleteexchage&id="+aa,
		  cache: false,
		  success:function(data)
		  {
			  if(data==0)
			  {
				alert("恭喜您，礼品兑换删除成功。");
				window.location.href=window.location.href;
			  }
			  else{
				alert(data);
			  }
		  }
		});	
	}
}
function DeleteGiftExchangeAll()
{
	var allID = GetSelectID('ExchangeID');
	if (allID == "") {
		alert("请选择要删除的礼品兑换订单!");
		return;
	}
	if (!window.confirm('此操作不可逆，您确定要删除您选中的订单吗?')) 
	{
		return;
	}
	else
	{
		$.ajax({
		  url: "../public/ajax.aspx?action=deleteexchage&id="+allID,
		  cache: false,
		  success:function(data)
		  {
			  if(data==0)
			  {
				alert("恭喜您，礼品兑换删除成功。");
				window.location.href=window.location.href;
			  }
			  else{
				alert(data);
			  }
		  }
		});	
	}
}
function showmessage(val)
{
	$.ajax({
	  url: "../public/ajax.aspx?action=deletemessage&typeid=5&messageid="+val,
	  cache: false,
	  success:function(data)
	  {
		    if( $("#Ulfrm"+val).css("display")=="none")
			{
				$("#Ulfrm"+val).fadeIn();
			}
			else{
				$("#Ulfrm"+val).fadeOut();	
			}
	  }
	});	
}

var AntMyStoreOrder = {
	OrderDelete: function(OrderID) {
        if (!window.confirm('此操作不可逆，您确定要取消吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=CancelStoreOrder&OrderID="+OrderID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，订单取消成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	OrderFahuo: function(OrderID) {
        if (!window.confirm('此操作不可逆，您确定要发货吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=fahuostoreorder&OrderID="+OrderID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("发货操作完成。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteMemberOrderAll: function() {
        var allID = GetSelectID('InfoID');
        if (allID == "") {
            alert("请先选择要取消的订单!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定要取消您选中的订单吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=CancelStoreOrder&OrderID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，订单取消成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    }
}

function replaymessage(tt)
{
	var contentmark = $("#txtMessageContent"+tt).val();
	if(contentmark.length==0)
	{
		alert("对不起，请输入回复内容。");
		return false;
	}
	$.ajax({
		type: "post",
		global: false,
		dataType: "html",
		url: "/public/Ajax.aspx",
		data: { id: tt,content: escape(contentmark), action: "sendmessage" },
		success: function(data, textStatus) {
			var content = data.toString();
			if(content=="0")
			{
				alert("回复成功！");	
				$("#txtMessageContent"+tt).val("")
				$("#MemberMessageSubmit"+tt).attr("disabled", false); //设置为可
			}
			else
			{
				alert(content);
				$("#MemberMessageSubmit"+tt).attr("disabled", true); //设置为可
			}
		}
	});
	return false;
}
function FlashMessageAll()
{
	var messageid="";
	if(messageid=="")
		messageid = GetSelectID('MessageID');
	if (messageid == "") {
		alert("请先选择要设为已读的信息!");
		return;
	}
	if(confirm("此操作不可逆，您确认要设为已读吗？"))
	{
		$.ajax({
		  url: "../public/ajax.aspx?action=deletemessage&messageid="+messageid+"&typeid=5",
		  cache: false,
		  success:function(data)
		  {
			  if(data==0)
			  {
				  alert("操作成功。");
				  window.location.href=window.location.href;
			  }
			  else{
				alert(data);
			  }
		  }
		});	
	}
}
function DeleteZxCert(allID)
{
	if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
	{
		return;
	}
	else
	{
		$.ajax({
		  url: "../public/ajax.aspx?action=deletezxcert&InfoID="+allID,
		  cache: false,
		  success:function(data)
		  {
			  if(data==0)
			  {
				alert("恭喜您，申请认证删除成功。");
				window.location.href=window.location.href;
			  }
			  else{
				alert(data);
			  }
		  }
		});	
	}
}
function DeleteZxCertAll()
{
	var allID = GetSelectID('InfoID');
	if (allID == "") {
		alert("请先选择要删除的信息!");
		return;
	}
	if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
	{
		return;
	}
	else
	{
		$.ajax({
		  url: "../public/ajax.aspx?action=deletezxcert&InfoID="+allID,
		  cache: false,
		  success:function(data)
		  {
			  if(data==0)
			  {
				alert("恭喜您，申请认证批量删除成功。");
				window.location.href=window.location.href;
			  }
			  else{
				alert(data);
			  }
		  }
		});	
	}
}
function DeleteCompanyCert(allID)
{
	if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
	{
		return;
	}
	else
	{
		$.ajax({
		  url: "../public/ajax.aspx?action=deletecompanycert&InfoID="+allID,
		  cache: false,
		  success:function(data)
		  {
			  if(data==0)
			  {
				alert("恭喜您，申请认证删除成功。");
				window.location.href=window.location.href;
			  }
			  else{
				alert(data);
			  }
		  }
		});	
	}
}
function DeleteCompanyCertAll()
{
	var allID = GetSelectID('InfoID');
	if (allID == "") {
		alert("请先选择要删除的信息!");
		return;
	}
	if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
	{
		return;
	}
	else
	{
		$.ajax({
		  url: "../public/ajax.aspx?action=deletecompanycert&InfoID="+allID,
		  cache: false,
		  success:function(data)
		  {
			  if(data==0)
			  {
				alert("恭喜您，申请认证批量删除成功。");
				window.location.href=window.location.href;
			  }
			  else{
				alert(data);
			  }
		  }
		});	
	}
}
var AntYouhuiClass = {
	DeleteInfo: function(youid) {
        if (!window.confirm('此操作不可逆，您确定要删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deleteyouhui&youid="+youid,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，删除优惠券成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteInfoAll: function() {
        var allID = GetSelectID('YouhuiID');
        if (allID == "") {
            alert("请选择要删除的优惠券!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定要删除您选中的优惠券吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deleteyouhui&youid="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，删除优惠券成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    }
}
var MyCompanyClass = {
	DeleteHuang: function(AdvID) {
        if (!window.confirm('此操作不可逆，您确定要删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deletehuang&AdvID="+AdvID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，删除幻灯片成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteHuangAll: function() {
        var allID = GetSelectID('Advid');
        if (allID == "") {
            alert("请选择要删除的幻灯片!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定要删除您选中的幻灯片吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletehuang&AdvID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，删除幻灯片成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	UpdateCategoryAll: function() {
		if (!window.confirm('此操作不可逆，您确定要批量修改吗?')) 
		{
			return;
		}
		else
		{
			var tt=1;
			$(".AntUserInfoList").find(".AntUserInfoList_Content").each(function(){
				var cname=$("#ClassName_"+tt).val();
				var cid=$("#ClassID_"+tt).val();
				var corder=$("#ClassOrder_"+tt).val();
				$.ajax({
				  url: "../public/ajax.aspx?action=updateshopcategory&cname="+escape(cname)+"&cid="+cid+"&corder="+corder,
				  cache: false,
				  success:function(data)
				  {
					  
				  }
				});	
				tt ++;
			});
			alert("恭喜您，批量修改成功。");
			window.location.href=window.location.href;
		}
    },
	DeleteLink: function(LinkID) {
        if (!window.confirm('此操作不可逆，您确定要删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deletelink&LinkID="+LinkID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，删除友情链接成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteLinkAll: function() {
        var allID = GetSelectID('LinkID');
        if (allID == "") {
            alert("请选择要删除的链接!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定要删除您选中的链接吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletelink&LinkID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，删除友情链接成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	
	DeleteAddress: function(AddressID) {
        if (!window.confirm('此操作不可逆，您确定要删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deleteAddress&AddressID="+AddressID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，删除地址成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteAddressAll: function() {
        var allID = GetSelectID('AddressID');
        if (allID == "") {
            alert("请选择要删除的链接!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定要删除您选中的地址吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deleteAddress&AddressID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，删除地址成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	
	DeleteNews: function(NewsID) {
        if (!window.confirm('此操作不可逆，您确定要删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=DeleteCompanyNews&NewsID="+NewsID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，删除信息成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteNewsAll: function() {
        var allID = GetSelectID('NewsID');
        if (allID == "") {
            alert("请选择要删除的信息!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定要删除您选中的信息吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=DeleteCompanyNews&NewsID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，删除信息成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	DeleteCategoryPic: function(ClassID) {
        if (!window.confirm('此操作不可逆，您确定要删除分类图片吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=DeleteCategoryPic&ClassID="+ClassID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，删除商品分类图片成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeletePic: function(PicID) {
        if (!window.confirm('此操作不可逆，您确定要删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=DeleteCompanypic&PicID="+PicID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，删除信息成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeletePicAll: function() {
        var allID = GetSelectID('PicID');
        if (allID == "") {
            alert("请选择要删除的信息!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定要删除您选中的信息吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=DeleteCompanypic&PicID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，删除信息成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	
	DeleteCategory: function(ID) {
        if (!window.confirm('此操作不可逆，您确定要删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deleteshopcategory&ID="+ID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，删除信息成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteCategoryAll: function() {
        var allID = GetSelectID('ClassID');
        if (allID == "") {
            alert("请选择要删除的信息!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定要删除您选中的信息吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deleteshopcategory&ID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，删除信息成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	
	DeleteShop: function(ID) {
        if (!window.confirm('此操作不可逆，您确定要删除商品吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deleteshop&ID="+ID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，删除商品成功。");
					window.location.href=window.location.href;
				  }
				  else if(data==1)
				  {
					alert("恭喜您，删除商品成功，但是部分商品里面已经有订单了，请先删除订单。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteShopAll: function() {
        var allID = GetSelectID('ShopID');
        if (allID == "") {
            alert("请选择要删除的商品!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定要删除您选中的商品吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deleteshop&ID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，删除商品成功。");
					window.location.href=window.location.href;
				  }
				   else if(data==1)
				  {
					alert("恭喜您，删除商品成功，但是部分商品里面已经有订单了，请先删除订单。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	InfoTop: function(infoID) {
        if ($("#Ulfrm" + infoID).html()=="" ) {
			var val="<iframe frameborder='0' width=784 height=1 id='frm"+infoID+"' name='frm"+infoID+"' scrolling='no' src='MemberStoreShopDing.aspx?InfoID="+infoID+"&temp=1 "+ new Date().getTime()+"' style='width:784px; height:5px;  margin:0; padding:0; border:0px; margin-top:0px' ></iframe>";
			$("#Ulfrm" + infoID).html(val);
			$("#Ulfrm" + infoID).fadeIn();
			//window.open("MemberStoreShopDing.aspx?InfoID="+infoID+"&temp="+ new Date().getTime()+"");
  			$("#frm" + infoID).attr('src', "MemberStoreShopDing.aspx?InfoID="+infoID+"&temp="+ new Date().getTime()); 
      }
        else {
			var frm = $("#frm" + infoID);
            frm.css("height", "0px");
			$("#Ulfrm" + infoID).html("");
        }
    },
	setframeheight: function(frmID, height) {
        var frm = $("#frm" + frmID);
		frm.css('height',　height　+　'px');
        if (frm.length > 0) 
		{
            $_D("frm" + frmID).height= height+ "px";
		}
    }
}
var AntMyOrder = {
	OrderDelete: function(OrderID) {
        if (!window.confirm('此操作不可逆，您确定要取消吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=cancelorder&OrderID="+OrderID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，订单取消成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	OrderFahuo: function(OrderID) {
        if (!window.confirm('此操作不可逆，您确认收货吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=fahuoorder&OrderID="+OrderID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("确认收货操作成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteMemberOrderAll: function() {
        var allID = GetSelectID('InfoID');
        if (allID == "") {
            alert("请先选择要取消的订单!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定要取消您选中的订单吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=cancelorder&OrderID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，订单取消成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    }
}
var AntMyTuan = {
	DeleteTuangouInfo: function(TuanID) {
        if (!window.confirm('此操作不可逆，您确定要删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deleteorder&TuanID="+TuanID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，订单取消成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteTuangouInfoAll: function() {
        var allID = GetSelectID('TuanID');
        if (allID == "") {
            alert("请选择要删除的团购!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定要删除选中的团购吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deleteorder&TuanID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，订单取消成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    }
}
var AntYuyueClass = {
	DeleteInfo: function(CommentID) {
        if (!window.confirm('此操作不可逆，您确定要删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deleteyuyue&ID="+CommentID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，预约服务删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteInfoAll: function() {
        var allID = GetSelectID('InfoID');
        if (allID == "") {
            alert("请选择要删除的在线预约服务!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确认要删除选中的记录吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deleteyuyue&ID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，预约服务删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	Deleteyuyue: function(CommentID) {
        if (!window.confirm('此操作不可逆，您确定要删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deletezxyuyue&ID="+CommentID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，免费量房预约删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteyuyueAll: function() {
        var allID = GetSelectID('InfoID');
        if (allID == "") {
            alert("请选择要删除的免费量房预约!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确认要删除选中的记录吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletezxyuyue&ID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，免费量房预约删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	Deletedesyuyue: function(CommentID) {
        if (!window.confirm('此操作不可逆，您确定要删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deletezxyuyue&styleid=0&ID="+CommentID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，免费量房预约删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeletedesyuyueAll: function() {
        var allID = GetSelectID('InfoID');
        if (allID == "") {
            alert("请选择要删除的免费量房预约!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确认要删除选中的记录吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletezxyuyue&styleid=0&ID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，免费量房预约删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    }
}
var AntCommentClass = {
	DeleteInfo: function(CommentID) {
        if (!window.confirm('此操作不可逆，您确定要删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deletecomment&CommentID="+CommentID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，评论删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteInfoAll: function() {
        var allID = GetSelectID('CommentID');
        if (allID == "") {
            alert("请选择要删除的评论!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确认要删除选中的评论吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletecomment&tt=0&CommentID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，评论删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	PassAll: function() {
        var allID = GetSelectID('CommentID');
        if (allID == "") {
            alert("请选择要审核通过的评论!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确认要审核通过的评论?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletecomment&tt=1&CommentID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，评论审核通过成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	PassNotAll: function() {
        var allID = GetSelectID('CommentID');
        if (allID == "") {
            alert("请选择要审核失败的评论!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确认要审核失败的评论?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletecomment&tt=2&CommentID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，评论审核拒绝成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    }
}
function setsonghuofashi()
{
	var tt = $("input[name='txtOrderPeisong']:checked").val();
	if(tt==1 || tt==2)
	{
		$("#song1").hide();
		$("#song2").hide();
		$("#songtext").html("联系人：");
	}
	else
	{
		$("#song1").show();
		$("#song2").show();
		$("#songtext").html("收货人姓名：");
	}
}
function DeleteMessage(messageid,typeid)
{
	if(messageid=="")
		messageid = GetSelectID('MessageID');
	if (messageid == "") {
		alert("请先选择要删除的信息!");
		return;
	}
	if(confirm("此操作不可逆，您确认要删除吗？"))
	{
		$.ajax({
		  url: "../public/ajax.aspx?action=deletemessage&messageid="+messageid+"&typeid="+typeid,
		  cache: false,
		  success:function(data)
		  {
			  if(data==0)
			  {
				  alert("信息删除成功。");
				  window.location.href=window.location.href;
			  }
			  else{
				alert(data);
			  }
		  }
		});	
	 }
}
var AntJobInfoClass = {
	InfoZhiDing: function(infoID) {
        var frm = $("#frm" + infoID);
		if ( $.trim( $("#Ulfrm_" + infoID).html() )=="") {	
			var val="<iframe frameborder='0' width=786 height=1 id='frm"+infoID+"' name='frm"+infoID+"' scrolling='no' src='MemberJobInfoDing.aspx?InfoID="+infoID+"&temp=1 "+ new Date().getTime()+" style='width:790px; height:5px;  margin:0; padding:0; border:0px; margin-top:0px' ></iframe>";
			$("#Ulfrm" + infoID).html("");
			$("#Ulfrm_" + infoID).html(val);
			$("#Ulfrm_" + infoID).fadeIn();
        }
        else {
            frm.css("height", "0px");
			$("#Ulfrm_" + infoID).html("");
			$("#Ulfrm" + infoID).html("");
        }
    },
	setframeheight: function(frmID, height) {
        var frm = $("#frm" + frmID);
        if (frm.length > 0) 
		{
            $_D("frm" + frmID).height= height+ "px";
		}
    },
	DeleteInfo: function(infoID) {
        if (!window.confirm('此操作不可逆，您确定删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deletejobinfo&InfoID="+infoID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，信息删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	RepostInfo: function(obj, infoID) {
		var ScoreName= $("#RepostInfoScoreName").html();
		var score = $("#RepostInfoScore").html();
		if (!window.confirm("每刷新一条信息，将会扣除" + score +ScoreName+ ",您确定要刷新么?"))
		{
			return;
		}
		
		$.ajax({
			  url: "../public/ajax.aspx?action=flushjobinfo&InfoID="+infoID,
			  cache: false,
			  success:function(data)
			  {
				  if(data.indexOf("Success")!=-1)
				  {
						alert("恭喜您，本条信息刷新成功，发布时间更新为"+data.replace("Success","")+"。");
						$(obj).parent().prev().html(data.replace("Success",""));
				  }
				  else{
				  		alert(data);
				  }
			  }
		});	
	},
	DeleteInfoAll: function() {
        var allID = GetSelectID('InfoID');
        if (allID == "") {
            alert("请先选择要删除的信息!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletejobinfo&InfoID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，信息批量删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	FlashInfoAll: function() {
		var ScoreName= $("#RepostInfoScoreName").html();
		var score = $('#RepostInfoScore').html();
        var itemCount = 0;
        var allID = GetSelectID('InfoID');
        if (allID == "") {
            alert("请先选择要刷新的信息!");
            return;
        }
        itemCount = allID.split(',').length;
        if (!window.confirm('刷新这些信息需要' + (score * itemCount) +ScoreName+'，您确定刷新这些信息吗?')) {
            return false;
        }
        else {
            $.ajax({
			  url: "../public/ajax.aspx?action=flushjobinfoall&InfoID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data.indexOf("Success")!=-1)
				  {
					alert("恭喜您，信息刷新成功，共扣除"+(score * itemCount) +ScoreName+"。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
	}
}
function GetJobInfoTotalDing(){
	var dan=$("#infozhidingscore").val();
	var total= 0;
	if( $("input[name='infozhiding']:checked").val()=="1" )
	{
		total += dan * $("input[name='RadioGroup']:checked").val();
	}
	$("#TotalScore").html(total);
	if(parseInt($("#UserScore").html())<parseInt($("#TotalScore").html())  ||  parseInt($("#TotalScore").html())==0 )
			$("#zhidingsubmit").attr("disabled", true); //设置为不可点
	else
			$("#zhidingsubmit").attr("disabled", false); //设置为不可点
}
function DeleteResumeFav(favid,typeid)
{
	if(favid=="")
		favid = GetSelectID('FavID');
	if (favid == "") {
		alert("请先选择要删除的信息!");
		return;
	}
	if(confirm("此操作不可逆，您确认要删除吗？"))
	{
		$.ajax({
		  url: "../public/ajax.aspx?action=deletefav&FavID="+favid+"&typeid="+typeid,
		  cache: false,
		  success:function(data)
		  {
			  if(data==0)
			  {
				  if(typeid==4)
					alert("恭喜您，删除收藏职位成功。");
				  else if(typeid==5)
					alert("恭喜您，删除面试邀请通知成功。");
				  else if(typeid==3)
					alert("恭喜您，删除我的应聘记录成功。");
				   else if(typeid==2)
					alert("恭喜您，删除收藏的人才简历成功。");
				  window.location.href=window.location.href;
			  }
			  else{
				alert(data);
			  }
		  }
		});	
	 }
}
function ShowResumeFav(id)
{
	$.ajax({
	  url: "../public/ajax.aspx?action=updatefav&FavID="+id,
	  cache: false,
	  success:function(data)
	  {
		  if($("#std"+id).css("display")=="none")
		  	$("#std"+id).fadeIn();
		  else
		  	$("#std"+id).fadeOut();
	  }
	});	
}
function sendCouponSMS(o,orderid,chrmobile,OID)
{
	var _84=o.parentNode.getElementsByTagName("form");
	if(_84.length){
		_84=_84[0];
	}
	else{
		_84=_makeCouponSMSForm(orderid,chrmobile,OID);
		o.parentNode.appendChild(_84);
	}
	if(_84.style.display=="none")
	{
		_84.style.display="block";
		_84.mobile.focus();
	}else{
		_84.style.display="none";
	}
	return false;
}
function getElementsByClassName(className,ttinput, parentElement){
	var elems = parentElement.getElementsByTagName(ttinput);
	var result=null;
	for (i=0; j=elems[i]; i++){
	  if ((" "+j.className+" ").indexOf(" "+className+" ")!=-1){
	   return j;
	  }
	}
} 
function _makeCouponSMSForm(_72,_73,OID){
	var _74=document.createElement("form");
	_73=_73?_73:"";
	_74.style.display="none";
	var _75="<div id='showdivmobile'><input type=\"text\" class=\"f-input\" name=\"mobile\" id='send_buy_quan' maxlength=\"11\" value=\""+_73+"\" autocomplete=\"off\" /><br /><input type=\"submit\" class=\"formbutton";
	_75+="\" value=\"\u53d1\u9001\u5230\u624b\u673a\" onclick=\"submitmobile('"+_72+"',this.form,'"+OID+"');return false;\"/></div><p id='showpmobile'></p>";
	_74.innerHTML=_75;
	document.body.appendChild(_74);
	var _76=getElementsByClassName("f-input","input",_74);
	var _77=getElementsByClassName("formbutton","input",_74);
	var div=_74.getElementsByTagName("div")[0];
	var p=_74.getElementsByTagName("p")[0];
	return _74;
}
function submitmobile(a,b,OID){
	var chrmobile = b.mobile.value;
	var div=b.getElementsByTagName("div")[0];
	var p=b.getElementsByTagName("p")[0];
	if(!$.checkMobilePhone(chrmobile))
	{
		alert("请输入正确的11位手机号码！");
		b.focus();
		return false;
	}
	else{
		submitquanmobilesend(a,chrmobile,div,p,OID);
	}
	return false;
}
function submitquanmobilesend(orderid,chrmobile,div,p,OID){
	div.style.display="none";p.innerHTML="<img src=\"/public/images/Loading.gif\"  width=32 height=32>";
	$.ajax({
	  url: "/public/ajax.aspx?action=quanmobile&orderid="+escape(orderid)+"&chrmobile="+escape(chrmobile)+"&OID="+escape(OID),
	  cache: false,
	  success:function(data)
	  {
		  if(data=="0"){
			p.innerHTML="发送成功!";
			return false;
		 }
		 else{
			alert(data);
			div.style.display="";
			p.style.display="none";
			return false;
		 }
	  }
  });
}
var SmallClassid="0";
function GetSmallNewsCategory(_id){
    $.post("../public/ajax.aspx?action=shownewstypeid", {id:_id}, function(data) {
		var $small=$("select[name='txtNewsCategoryID']");
		$small.html("");
		$.each(data,function(idx,item){
			$small.append("<option value='"+item.id+"'>"+item.name+"</option>");
		});
		$("#txtNewsCategoryID").val(SmallClassid);
	},"json");
}
var AntNewsClass = {
	DeleteInfo: function(infoID) {
        if (!window.confirm('此操作不可逆，您确定删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deletenews&InfoID="+infoID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，投搞删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteInfoAll: function() {
        var allID = GetSelectID('NewsID');
        if (allID == "") {
            alert("请先选择要删除的信息!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletenews&InfoID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，投搞批量删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    }
}
function DeleteHouseAgentCert(allID)
{
	if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
	{
		return;
	}
	else
	{
		$.ajax({
		  url: "../public/ajax.aspx?action=deleteagentcert&InfoID="+allID,
		  cache: false,
		  success:function(data)
		  {
			  if(data==0)
			  {
				alert("恭喜您，申请认证删除成功。");
				window.location.href=window.location.href;
			  }
			  else{
				alert(data);
			  }
		  }
		});	
	}
}
function DeleteHouseAgentCertAll()
{
	var allID = GetSelectID('InfoID');
	if (allID == "") {
		alert("请先选择要删除的信息!");
		return;
	}
	if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
	{
		return;
	}
	else
	{
		$.ajax({
		  url: "../public/ajax.aspx?action=deleteagentcert&InfoID="+allID,
		  cache: false,
		  success:function(data)
		  {
			  if(data==0)
			  {
				alert("恭喜您，申请认证批量删除成功。");
				window.location.href=window.location.href;
			  }
			  else{
				alert(data);
			  }
		  }
		});	
	}
}
function DeleteHouseAgentCompanyCert(allID)
{
	if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
	{
		return;
	}
	else
	{
		$.ajax({
		  url: "../public/ajax.aspx?action=deleteagentcompanycert&InfoID="+allID,
		  cache: false,
		  success:function(data)
		  {
			  if(data==0)
			  {
				alert("恭喜您，申请认证删除成功。");
				window.location.href=window.location.href;
			  }
			  else{
				alert(data);
			  }
		  }
		});	
	}
}
function DeleteHouseAgentCompanyCertAll()
{
	var allID = GetSelectID('InfoID');
	if (allID == "") {
		alert("请先选择要删除的信息!");
		return;
	}
	if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
	{
		return;
	}
	else
	{
		$.ajax({
		  url: "../public/ajax.aspx?action=deleteagentcompanycert&InfoID="+allID,
		  cache: false,
		  success:function(data)
		  {
			  if(data==0)
			  {
				alert("恭喜您，申请认证批量删除成功。");
				window.location.href=window.location.href;
			  }
			  else{
				alert(data);
			  }
		  }
		});	
	}
}
var AntHouseSale = {
	InfoTop: function(infoID) {
        var frm = $("#frm" + infoID);
        if ( $.trim( $("#Ulfrm" + infoID).html() )=="") {
			var val="<iframe frameborder='0' width=786 height=1 id='frm"+infoID+"' name='frm"+infoID+"' scrolling='no' src='MemberUserHouseTop.aspx?InfoID="+infoID+"&temp="+ new Date().getTime()+" style='width:780px; height:100px;  margin:0; padding:0; border:0px; margin-top:0px' ></iframe>";
			$("#Ulfrm_" + infoID).html("");
			$("#Ulfrm" + infoID).html(val);
			$("#Ulfrm" + infoID).fadeIn();
        }
        else {
            frm.css("height", "0px");
			$("#Ulfrm_" + infoID).html("");
			$("#Ulfrm" + infoID).html("");
        }
    },
	InfoZhiDing: function(infoID) {
        var frm = $("#frm" + infoID);
        if ($.trim( $("#Ulfrm_" + infoID).html() )=="" ) {
			var val="<iframe frameborder='0' width=786 height=1 id='frm"+infoID+"' name='frm"+infoID+"' scrolling='no' src='MemberUserHouseDing.aspx?InfoID="+infoID+"&temp="+ new Date().getTime()+" style='width:780px; height:100px;    margin:0; padding:0; border:0px; margin-top:0px' ></iframe>";
			$("#Ulfrm" + infoID).html("");
			$("#Ulfrm_" + infoID).html(val);
			$("#Ulfrm_" + infoID).fadeIn();
        }
        else {
            frm.css("height", "0px");
			$("#Ulfrm_" + infoID).html("");
			$("#Ulfrm" + infoID).html("");
        }
    },
	setframeheight: function(frmID, height) {
        var frm = $("#frm" + frmID);
        if (frm.length > 0) 
		{
            $_D("frm" + frmID).height= height+ "px";
		}
    },
	JingxuanAll: function() {
		var allID = GetSelectID('SaleID');
        if (allID == "") {
            alert("请先选择要设为精选房源的信息!");
            return;
        }
		$.ajax({
		  url: "../public/ajax.aspx?action=jingxuanhouse&InfoID="+allID,
		  cache: false,
		  success:function(data)
		  {
			  if(data==0)
			  {
				alert("恭喜您，批量设为精选房源成功。");
				window.location.href=window.location.href;
			  }
			  else{
				alert(data);
			  }
		  }
		});	
	},	
	DeleteInfo: function(infoID) {
        if (!window.confirm('此操作不可逆，您确定删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deletehouse&InfoID="+infoID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，信息删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteBuildHu: function(infoID) {
        if (!window.confirm('此操作不可逆，您确定删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deletehu&InfoID="+infoID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，户型删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	CancelInfoAll: function() {
        var allID = GetSelectID('SaleID');
        if (allID == "") {
            alert("请先选择要取消显示的信息!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定取消显示选中的信息吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=cancelsale&InfoID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，信息批量取消显示成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	DeleteBuildHuAll: function() {
        var allID = GetSelectID('HuxingID');
        if (allID == "") {
            alert("请先选择要删除的信息!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletehu&InfoID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，户型批量删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	DeleteCommunityHu: function(infoID) {
        if (!window.confirm('此操作不可逆，您确定删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deleteCommunityhu&InfoID="+infoID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，户型删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteCommunityHuAll: function() {
        var allID = GetSelectID('HuxingID');
        if (allID == "") {
            alert("请先选择要删除的信息!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deleteCommunityhu&InfoID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，户型批量删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	DeleteBuildNews: function(infoID) {
        if (!window.confirm('此操作不可逆，您确定删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deletebuildnews&InfoID="+infoID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，楼盘动态删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteBuildNewsAll: function() {
        var allID = GetSelectID('NewsID');
        if (allID == "") {
            alert("请先选择要删除的信息!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletebuildnews&InfoID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，楼盘动态批量删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	DeleteBuildPic: function(infoID) {
        if (!window.confirm('此操作不可逆，您确定删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deletebuildpic&InfoID="+infoID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，楼盘图片删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteBuildPicAll: function() {
        var allID = GetSelectID('PicID');
        if (allID == "") {
            alert("请先选择要删除的信息!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletebuildpic&InfoID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，楼盘图片批量删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	DeleteCommunityPic: function(infoID) {
        if (!window.confirm('此操作不可逆，您确定删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deleteCommunitypic&InfoID="+infoID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，小区图片删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteCommunityPicAll: function() {
        var allID = GetSelectID('PicID');
        if (allID == "") {
            alert("请先选择要删除的信息!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deleteCommunitypic&InfoID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，小区图片批量删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	DeleteBuildClass: function(infoID) {
        if (!window.confirm('此操作不可逆，您确定删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=DeleteBuildClass&InfoID="+infoID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，楼盘相册删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteBuildClassAll: function() {
        var allID = GetSelectID('CategoryID');
        if (allID == "") {
            alert("请先选择要删除的信息!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=DeleteBuildClass&InfoID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，楼盘相册批量删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	RepostInfo: function(obj, infoID) {
		var ScoreName= $("#RepostInfoScoreName").html();
		var score = $("#RepostInfoScore").html();
		if (!window.confirm("每刷新一条信息，将会扣除" + score +ScoreName+ ",您确定要刷新么?"))
		{
			return;
		}
		
		$.ajax({
			  url: "../public/ajax.aspx?action=flushhouseall&InfoID="+infoID,
			  cache: false,
			  success:function(data)
			  {
				  if(data.indexOf("Success")!=-1)
				  {
						alert("恭喜您，本条信息刷新成功，发布时间更新为"+data.replace("Success","")+"。");
						$(obj).parent().prev().html(data.replace("Success",""));
				  }
				  else{
				  		alert(data);
				  }
			  }
		});	
	},
	DeleteInfoAll: function() {
        var allID = GetSelectID('SaleID');
        if (allID == "") {
            alert("请先选择要删除的信息!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletehouse&InfoID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，信息批量删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	FlashInfoAll: function() {
		var ScoreName= $("#RepostInfoScoreName").html();
		var score = $('#RepostInfoScore').html();
        var itemCount = 0;
        var allID = GetSelectID('SaleID');
        if (allID == "") {
            alert("请先选择要刷新的房源信息!");
            return;
        }
        itemCount = allID.split(',').length;
        if (!window.confirm('刷新这些房源信息需要' + (score * itemCount) +ScoreName+'，您确定刷新这些信息吗?')) {
            return false;
        }
        else {
            $.ajax({
			  url: "../public/ajax.aspx?action=flushhouseall&InfoID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data.indexOf("Success")!=-1)
				  {
					alert("恭喜您，房源信息刷新成功，共扣除"+(score * itemCount) +ScoreName+"。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
	}
}
function DeleteHouseDemand(DemandID)
{
	if (!window.confirm('此操作不可逆，您确定删除吗?')) 
	{
		return;
	}
	else
	{
		 $.ajax({
		  url: "../public/ajax.aspx?action=deletehousedecommand&DemandID="+DemandID,
		  cache: false,
		  success:function(data)
		  {
			  if(data==0)
			  {
				alert("恭喜您，求租求购信息删除成功。");
				window.location.href=window.location.href;
			  }
			  else{
				alert(data);
			  }
		  }
		});	
	}
}
function DeleteHouseDemandAll()
{
	var allID = GetSelectID('DemandID');
	if (allID == "") {
		alert("请先选择要删除的信息!");
		return;
	}
	if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
	{
		return;
	}
	else
	{
		$.ajax({
		  url: "../public/ajax.aspx?action=deletehousedecommand&DemandID="+allID,
		  cache: false,
		  success:function(data)
		  {
			  if(data==0)
			  {
				alert("恭喜您，求租求购信息批量删除成功。");
				window.location.href=window.location.href;
			  }
			  else{
				alert(data);
			  }
		  }
		});	
	}
}
var LastVoteID='';
function ShowVoteList(ID,VoteID)
{
	if(LastVoteID==''){
		LoadVoteClass(ID,VoteID);	
	}
	else{
		if(LastVoteID !=ID){
			LoadVoteClass(ID,VoteID);
		}
	}
}
function LoadVoteClass(ID,VoteID)
{
	LastVoteID=ID;
	var SelectInfoOtherRequired="";
	$.ajax({
		  url: "/public/ajax.aspx?action=showvotemobanqian&id="+ID+"&VoteID="+VoteID+"&url=/account/",
		  cache: false,
		  success:function(data)
		  {
			  if(data!="@Ant@"){
				  dat1=data.split("@Ant@");
				  $("#HTMLVoteListMobanList").html("<table width=100% cellpadding=0 cellspacing=0 border=0 >"+dat1[0]+"</table>");
				  $("#HTMLVoteListMoban").fadeIn();
				  SelectInfoOtherRequired +=dat1[1];
				  /****over***/
				  $("#JSVoteListMobanList").html("<script>$(document).ready(function(){"+SelectInfoOtherRequired+"});</script>");
			 }
			  else{
				  $("#HTMLVoteListMobanList").html("");
				  $("#HTMLVoteListMoban").fadeOut();
			  }
		  }
	});	
}


var LastTOPAnt='0',ClickAntSecond="",lastFirstCLASSID='';
var oldLastTOPAnt='0';var InfoID='0';
var LastTopClass=null,LastTopClassSS=null;
function SelectInfoClassList(obj,ID,num,cname)
{
	if(LastTOPAnt=='1'){
		LoadFirstClass(obj,ID,num,cname);	
	}
	else{
		if(lastFirstCLASSID !=ID){
			if($("#thisInfoClassID").val().length>0)
			{
				if(confirm("切换类别会丢失当前已经编辑但是还没有保存的属性数据，确定要切换吗？"))
				{
					LoadFirstClass(obj,ID,num,cname);
				}
			}
			else{
				LoadFirstClass(obj,ID,num,cname);	
			}
		}
	}
}
function LoadFirstClass(obj,ID,num,cname)
{
	obj.className="on";
	if(LastTopClass)
		LastTopClass.className="";
	LastTopClass=obj;
 	$.ajax({
		  url: "../public/ajax.aspx?action=showclassid&Topid="+ID,
		  cache: false,
		  success:function(data)
		  {
			 var list = "";
			 var mm=0;
			 var data1=data.split('⊙');
			 if(LastTOPAnt=='0'){
				 $("#thisInfoClassID").val("");
			 }
			 if(data.length>0){
				 list += "<div style='border:none;margin:0;padding:0;'>";
				 list += '<table border=0 style="font-size:12px;border:none;margin:0;padding:0;" cellpadding="0" cellspacing="0">';
				 list += "<tr>";
			 	for(var i=0;i<data1.length;i++){
					 
				 	 if ( (mm+1) % num == 1) {
						 list += '<td border=0 style="font-size:12px;border:none;margin:0;padding:0;">';
					 }
					 var data2=data1[i].split('÷');
					 list += "<a href='javascript:void(0);' id='SelectSmallClassid"+data2[0]+"' name='SelectSmallClassid"+data2[0]+"' style='cursor:pointer' onclick=\"SelectInfoClassRight(this,'"+data2[0]+"','"+cname+"','"+data2[1]+"','"+data2[2]+"');\">" + data2[1] + "</a>";
					 if(LastTOPAnt=='1'  &&  $("#firstCategory").attr("rel")== data2[0]){ //反显二级分类  firefox 里面$("#thisInfoClassID").val()这个得不到值，怪事
						 ClickAntSecond =data2[0];
					 }
					 if ( (mm+1) % num == 0) {
						 list += "</td>";
					 }
					 mm++;
				 }
				 list += "</tr>";
				 list += "</table>";
				 list += "</div>";
				 
				 $("#secondCategory").html( list );
				 lastFirstCLASSID=ID;
				 if(LastTOPAnt=='0'){
					 $("#middCategory").fadeIn();
					 $("#secondCategory").fadeIn();
				 }
				 else{
					 LastTOPAnt='0';//如果是修改载入的话，不需要显示出来
					 invokeClick(document.getElementById("SelectSmallClassid"+ClickAntSecond));
					 $("#middCategory").css("vertical-align","middle");
				 }
			 }
			 else{
				 lastFirstCLASSID=ID;
				 $("#secondCategory").fadeOut();
			 }
		  }
	});		
}
function SelectInfoClassRight(obj,ID,cname1,cname2,mobanid){
	if(oldLastTOPAnt=='1'){
		SelectInfoValue(obj,ID,cname1,cname2,mobanid);
		oldLastTOPAnt='0';
	}
	else{
		//正常点击	
		if(ID!=$("#thisInfoClassID").val()){
			if($("#thisInfoClassID").val().length>0){
				if(confirm("切换类别会丢失当前已经编辑但是还没有保存的属性数据，确定要切换吗？"))
				{
					SelectInfoValue(obj,ID,cname1,cname2,mobanid);
				}
			}
			else{
				SelectInfoValue(obj,ID,cname1,cname2,mobanid);
			}
		}
		else{
			$("#firstCategory").fadeOut();
			$("#secondCategory").fadeOut();
			$("#middCategory").fadeOut();
			$("#txtInfoClassName").fadeIn();
		}
	}
}
function SelectInfoValue(obj,ID,cname1,cname2,mobanid){
	obj.className="on";
	if(LastTopClassSS)
		LastTopClassSS.className="";
	LastTopClassSS=obj;
	$("#firstCategory").fadeOut();
	$("#secondCategory").fadeOut();
	$("#middCategory").fadeOut();
	$("#thisInfoClassID").val(ID);
	$("#txtInfoClassName").fadeIn();
	$("#txtInfoClassName").html(cname1+" » "+cname2+"    <a href='javascript:void(0);' onclick='ResetClassID();' style='color:#Ff0000'><b>«返回重选类别</b></a>");
	var SelectInfoOtherRequired="";
	
	/***开始查找属性***/
	var outputhtml="function CheckInfoSubmit(){";
	outputhtml +="var InfoClassID =$(\"#thisInfoClassID\").val();";
	outputhtml +="if(InfoClassID>0){";
	outputhtml +="}";
	outputhtml +="else{";
	outputhtml +="	alert('请选择类目！');";
	outputhtml +="	return false;";
	outputhtml +="}";
	$.ajax({
		  url: "../public/ajax.aspx?action=showclassmobanqian&tt=1&id="+mobanid+"&InfoID="+InfoID+"&url="+window.location.href,
		  cache: false,
		  success:function(data)
		  {
			  if(data.length>0 && data!="@Ant@"){
				  dat1=data.split("@Ant@");
				  $("#HTMLInfoListMobanList").html("<table width=100% cellpadding=0 cellspacing=0 border=0 style='line-height:30px;'>"+dat1[0]+"</table>");
				  $("#HTMLInfoListMoban").fadeIn();
				  SelectInfoOtherRequired +=dat1[1];
				  outputhtml +=SelectInfoOtherRequired;
				  outputhtml +="}";
				  $("#JSInfoListMobanList").html("<script>$(document).ready(function(){"+SelectInfoOtherRequired+"});</script>");
			 }
			  else{
				  $("#HTMLInfoListMobanList").html(data);
				  $("#HTMLInfoListMoban").fadeOut();
			  }
		  }
	});	
}
function ResetClassID(){
	$("#firstCategory").fadeIn();
	$("#secondCategory").fadeIn();
	$("#middCategory").fadeIn();
	$("#txtInfoClassName").fadeOut();
}
function GetInfoTotalDing(){
	var dan=$("#infozhidingscore").val();
	var total= 0;
	if( $("input[name='infozhiding']:checked").val()=="1" )
	{
		total += dan * $("input[name='RadioGroup']:checked").val();
	}
	if($("input[name='infocolor']:checked").val()=="1"){
		total +=parseInt($("#InfoColorScore").html());	
	}
	if($("input[name='infobold']:checked").val()=="1"){
		total +=parseInt($("#InfoBoldScore").html());	
	}
	$("#TotalScore").html(total);
	if(parseInt($("#UserScore").html())<parseInt($("#TotalScore").html()))
			$("#zhidingsubmit").attr("disabled", true); //设置为不可点
	else
			$("#zhidingsubmit").attr("disabled", false); //设置为不可点
}
function GetInfoTotal(){
	if( $("#InfoDay").val()<1)
		$("#InfoDay").val("1");
	var total= $("#InfoDay").val() * $("#InfoMoney").val();
	if($("input[name='infocolor']:checked").val()=="1"){
		total +=parseInt($("#InfoColorScore").html());	
	}
	if($("input[name='infobold']:checked").val()=="1"){
		total +=parseInt($("#InfoBoldScore").html());	
	}
	$("#TotalScore").html(total);
	if(parseInt($("#UserScore").html())<parseInt($("#TotalScore").html()))
			$("#InfoTopSubmit").attr("disabled", true); //设置为不可点
	else
			$("#InfoTopSubmit").attr("disabled", false); //设置为不可点
}
function GetSelectID(name) {
	var children = document.getElementsByName(name);
	var allID = "";
	for (var i = 0; i < children.length; i++) {
		if (children[i].checked) {
			if(allID.length>0)
				allID+=",";
			allID += children[i].value;
		}
	}
	return allID;
}
var AntInfoClass = {
	InfoTop: function(infoID) {
        var frm = $("#frm" + infoID);
		if ( $.trim( $("#Ulfrm" + infoID).html() )=="") {
			var val="<iframe frameborder='0' width=786 height=1 id='frm"+infoID+"' name='frm"+infoID+"' scrolling='no' src='MemberUserInfoTop.aspx?InfoID="+infoID+"&temp="+ new Date().getTime()+" style='width:780px; height:100px;  margin:0; padding:0; border:0px; margin-top:0px' ></iframe>";
			$("#Ulfrm_" + infoID).html("");
			$("#Ulfrm" + infoID).html(val);
			$("#Ulfrm" + infoID).fadeIn();
			//alert(val);
        }
        else {
            frm.css("height", "0px");
			$("#Ulfrm_" + infoID).html("");
			$("#Ulfrm" + infoID).html("");
        }
    },
	InfoZhiDing: function(infoID) {
        var frm = $("#frm" + infoID);
		if ( $.trim( $("#Ulfrm_" + infoID).html() )=="") {
			var val="<iframe frameborder='0' width=786 height=1 id='frm"+infoID+"' name='frm"+infoID+"' scrolling='no' src='MemberUserInfoDing.aspx?InfoID="+infoID+"&temp=1 "+ new Date().getTime()+" style='width:780px; height:height:100px;    margin:0; padding:0; border:0px; margin-top:0px' ></iframe>";
			$("#Ulfrm" + infoID).html("");
			$("#Ulfrm_" + infoID).html(val);
			$("#Ulfrm_" + infoID).fadeIn();
        }
        else {
            frm.css("height", "0px");
			$("#Ulfrm_" + infoID).html("");
			$("#Ulfrm" + infoID).html("");
        }
    },
	setframeheight: function(frmID, height) {
        var frm = $("#frm" + frmID);
        if (frm.length > 0) 
		{
            $_D("frm" + frmID).height= height+ "px";
		}
    },
	DeleteInfo: function(infoID) {
        if (!window.confirm('此操作不可逆，您确定删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deleteinfo&InfoID="+infoID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，信息删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	RepostInfo: function(obj, infoID) {
		var ScoreName= $("#RepostInfoScoreName").html();
		var score = $("#RepostInfoScore").html();
		if (!window.confirm("每刷新一条信息，将会扣除" + score +ScoreName+ ",您确定要刷新么?"))
		{
			return;
		}
		
		$.ajax({
			  url: "../public/ajax.aspx?action=flushinfo&InfoID="+infoID,
			  cache: false,
			  success:function(data)
			  {
				  if(data.indexOf("Success")!=-1)
				  {
						alert("恭喜您，本条信息刷新成功，发布时间更新为"+data.replace("Success","")+"。");
						$(obj).parent().prev().html(data.replace("Success",""));
				  }
				  else{
				  		alert(data);
				  }
			  }
		});	
	},
	DeleteInfoAll: function() {
        var allID = GetSelectID('InfoID');
        if (allID == "") {
            alert("请先选择要删除的信息!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deleteinfo&InfoID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，信息批量删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	CancelInfoAll: function() {
        var allID = GetSelectID('InfoID');
        if (allID == "") {
            alert("请先选择要取消显示的信息!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定取消显示选中的信息吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=cancelinfo&InfoID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，信息批量取消显示成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	FlashInfoAll: function() {
		var ScoreName= $("#RepostInfoScoreName").html();
		var score = $('#RepostInfoScore').html();
        var itemCount = 0;
        var allID = GetSelectID('InfoID');
        if (allID == "") {
            alert("请先选择要刷新的信息!");
            return;
        }
        itemCount = allID.split(',').length;
        if (!window.confirm('刷新这些信息需要' + (score * itemCount) +ScoreName+'，您确定刷新这些信息吗?')) {
            return false;
        }
        else {
            $.ajax({
			  url: "../public/ajax.aspx?action=flushinfoall&InfoID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data.indexOf("Success")!=-1)
				  {
					alert("恭喜您，信息刷新成功，共扣除"+(score * itemCount) +ScoreName+"。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
	}
}
function SelectAllCheckBox(obj) 
{
   $("input[type='checkbox']").each(function() { 
	  if(!($(this).attr("disabled")) )
		$(this).attr("checked",obj.checked) ;
	  else
	    $(this).attr("checked",false);
   });
   //$("input[type=checkbox][^disabled]").attr("checked", obj ? obj.checked : this.checked);
}
function callbackWaiguan(msg,boot)
{
	if(boot==0){
		alert(msg);	
	}
	else if(boot==3){
		$("#memeberavatarsrc").attr("src","../"+msg);
		$("#Step1Container").show();
		$("#Step2Container").hide();
	}
	else{
		window.location.href="../Account/MemberSpace.aspx?CuID=2&picUrl="+msg;
	}
}
function ShowLeftMenuClick(aa)
{
	ShowLeftMenu($("#bigmenu"+aa),"bigmenu"+aa);	
}
function ShowLeftMenu(obj,val){
	val =val.replace("bigmenu","");
	var jia=0;
	for(var i=0;i<15;i++){
		if(i==val){
			$("#ulmenu"+i).show();
			obj.removeClass();
			obj.addClass("Current");
		}	
		else{
			$("#ulmenu"+i).hide();
			$("#bigmenu"+i).removeClass();
		}
	}
}
function Marquee(o, lh, speed, delay)
{
	var p=false;
	var t;
	o.innerHTML += o.innerHTML;
	o.style.marginTop = "0px";
	o.onmouseover = function(){p = true;}
	o.onmouseout = function(){p = false;}
	function start()
	{
		if(!p) o.style.marginTop = parseInt(o.style.marginTop) - 1 + "px";
		t = setInterval(scrolling, speed);
	}
	function scrolling()
	{
		if(parseInt(o.style.marginTop) % lh != 0)
		{
			o.style.marginTop = parseInt(o.style.marginTop) - 1 + "px";
			if(Math.abs(parseInt(o.style.marginTop)) >= o.scrollHeight/2) 
				o.style.marginTop = o.scrollHeight/2 - Math.abs(parseInt(o.style.marginTop)) + "px";
		}
		else
		{
			clearInterval(t);
			setTimeout(start, delay);
		}
	}
	setTimeout(start, delay);
}
function addReviewsList()
{
	var inn=$("#goodsReviewsListHtml").html();
	for(var tt=1;tt<10;tt++){
		inn = inn.replace("[]","")	
	}
	var txtTRLastIndex = findObj("count",document);
	var rowID = parseInt(txtTRLastIndex.value);
	var signFrame = findObj("SignFrame",document);
	//添加行
	var ab = rowID+1;
	inn = inn.replace("[tt]",ab)	
	var newTR = signFrame.insertRow(signFrame.rows.length);
	newTR.id = "SignItem" + ab;
	//添加列:付款时间
	var newNameTD=newTR.insertCell(0);
	//添加列内容
	newNameTD.innerHTML = inn;
	//将行号推进下一行
	$("#count").val( (rowID + 1).toString() );
	$("#total").val( parseInt($("total").value)+1 );
}

// Example: obj = findObj("image1");
function findObj(theObj, theDoc){var p, i, foundObj;if(!theDoc) theDoc = document;if( (p = theObj.indexOf("?")) > 0 && parent.frames.length){    theDoc = parent.frames[theObj.substring(p+1)].document;    theObj = theObj.substring(0,p);}if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];for (i=0; !foundObj && i < theDoc.forms.length; i++)     foundObj = theDoc.forms[i][theObj];for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++)     foundObj = findObj(theObj,theDoc.layers[i].document);if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);return foundObj;}
function delReviewsList(rowid,id)
{
	var signFrame = findObj("SignFrame",document);
	var signItem = findObj(rowid,document);
	//获取将要删除的行的Index
	if(signItem){
		var rowIndex = signItem.rowIndex;
		//删除指定Index的行
		signFrame.deleteRow(rowIndex);
	}
	if($("total")){
		$("#total").val( parseInt($("#total").val())-1 );	
	}
}
function setnextdate(aa){
	var  s=aa.split("-"); 
	var  yy=parseInt(s[0]);
	var  mm=s[1];
	if(mm.length==2){
		if(mm.substring(0,1)=="0"){
			mm=mm.substring(1,2);
		}
	} 
	var  dd=s[2]; 
	if(dd.length==2){
		if(dd.substring(0,1)=="0"){
			dd=dd.substring(1,2);
		}
	}
	dd=parseInt(dd);
	var newyy = parseInt(dd)+1;
	$("#txtTuanEndDate").val(addDate(""+yy+"/"+mm+"/"+newyy+" 00:00:00"));
}
function showdate(aa,n)
{
	var uom = new Date(aa);
	uom.setDate(uom.getDate()+n);
	uom = uom.getFullYear() + "-" +   (uom.getMonth()+1) + "-" + uom.getDate();
	return uom;
}

function addDate(dtDate){
	var date = new Date(dtDate)
	if(date.getYear()<1000)
		return (date.getYear()+1900) +'-' +  (date.getMonth()+1) + '-' +date.getDate();
	else
		return date.getYear() +'-' +  (date.getMonth()+1) + '-' +date.getDate();
}

function ClientSideStrongPassword(value) {
	var num = 1;
	if ($.trim(value).length == 0) {
	  return num;
	}
	if (value.length > 0 && value.length < 7) {
	  num = 2;
	  return num;
	}

	var pat1 = /[a-zA-Z]+/;
	if (pat1.test(value)) {
	  ++num;
	}
	var pat2 = /[0-9]+/;
	if (pat2.test(value)) {
	  ++num;
	}
	var chr = "";
	for (var i = 0; i < value.length; i++) {
	  chr = value.substr(i, 1);
	  if ("!@#$%^&*()_+-='\";:[{]}\|.>,</?`~".indexOf(chr) >= 0) {
		++num;
		break;
	  }
	}
	return num;
}
  
function SetPwdStrengthEx(obj, value) {
	var ret = ClientSideStrongPassword(value);
	if (ret == 1) {
	  $("#passwd_power").removeClass( "pwlv2");
	  $("#passwd_power").removeClass( "pwlv3");
	  $("#passwd_power").removeClass( "pwlv4");
	  $("#passwd_power").addClass("pwlv1");
	} else if (ret == 2) {
	  $("#passwd_power").removeClass( "pwlv1");
	  $("#passwd_power").removeClass( "pwlv3");
	  $("#passwd_power").removeClass( "pwlv4");
	  $("#passwd_power").addClass( "pwlv pwlv2");
	} else if (ret == 3) {
	  $("#passwd_power").removeClass( "pwlv1");
	  $("#passwd_power").removeClass( "pwlv2");
	  $("#passwd_power").removeClass( "pwlv4");
	  $("#passwd_power").addClass( "pwlv pwlv3");
	} else if (ret == 4) {
	  $("#passwd_power").removeClass( "pwlv1");
	  $("#passwd_power").removeClass( "pwlv2");
	  $("#passwd_power").removeClass( "pwlv3");
	  $("#passwd_power").addClass( "pwlv pwlv4");
	}
}

var AntVoteClass = {
	DeleteInfo: function(VoteID) {
        if (!window.confirm('此操作不可逆，您确定删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deletevote&VoteID="+VoteID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，信息删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteInfoAll: function() {
        var allID = GetSelectID('ContentID');
        if (allID == "") {
            alert("请先选择要删除的信息!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletevote&ContentID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，信息批量删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    }
}

var AntVideoClass = {
	InfoZhiDing: function(LifeID) {
        var frm = $("#frm" + LifeID);
		if ( $.trim( $("#Ulfrm_" + LifeID).html() )=="") {
			//window.open("MemberVideoZhiDing.aspx?VideoID="+LifeID+"&temp=1");
			var val="<iframe frameborder='0' width=786 height=1 id='frm"+LifeID+"' name='frm"+LifeID+"' scrolling='no' src='MemberVideoZhiDing.aspx?VideoID="+LifeID+"&temp=1 "+ new Date().getTime()+" style='width:780px; height:height:100px;    margin:0; padding:0; border:0px; margin-top:0px' ></iframe>";
			$("#Ulfrm" + LifeID).html("");
			$("#Ulfrm_" + LifeID).html(val);
			$("#Ulfrm_" + LifeID).fadeIn();
        }
        else {
            frm.css("height", "0px");
			$("#Ulfrm_" + LifeID).html("");
			$("#Ulfrm" + LifeID).html("");
        }
    },
	setframeheight: function(frmID, height) {
        var frm = $("#frm" + frmID);
        if (frm.length > 0) 
		{
            $_D("frm" + frmID).height= height+ "px";
		}
    },
	DeleteInfo: function(LifeID) {
        if (!window.confirm('此操作不可逆，您确定删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/NewJson.aspx?action=deletevideo&VideoID="+LifeID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，信息删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteInfoAll: function() {
        var allID = GetSelectID('VideoID');
        if (allID == "") {
            alert("请先选择要删除的信息!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/NewJson.aspx?action=deletevideo&VideoID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，信息批量删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    }
}
var AntQuanClass = {
	InfoZhiDing: function(LifeID) {
        var frm = $("#frm" + LifeID);
		if ( $.trim( $("#Ulfrm_" + LifeID).html() )=="") {
			//window.open("MemberQuanZhiDing.aspx?QuanID="+LifeID+"&temp=1");
			var val="<iframe frameborder='0' width=786 height=1 id='frm"+LifeID+"' name='frm"+LifeID+"' scrolling='no' src='MemberQuanZhiDing.aspx?QuanID="+LifeID+"&temp=1 "+ new Date().getTime()+" style='width:780px; height:height:100px;    margin:0; padding:0; border:0px; margin-top:0px' ></iframe>";
			$("#Ulfrm" + LifeID).html("");
			$("#Ulfrm_" + LifeID).html(val);
			$("#Ulfrm_" + LifeID).fadeIn();
        }
        else {
            frm.css("height", "0px");
			$("#Ulfrm_" + LifeID).html("");
			$("#Ulfrm" + LifeID).html("");
        }
    },
	setframeheight: function(frmID, height) {
        var frm = $("#frm" + frmID);
        if (frm.length > 0) 
		{
            $_D("frm" + frmID).height= height+ "px";
		}
    },
	DeleteInfo: function(LifeID) {
        if (!window.confirm('此操作不可逆，您确定删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/NewJson.aspx?action=deleteQuan&QuanID="+LifeID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，信息删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteInfoAll: function() {
        var allID = GetSelectID('QuanID');
        if (allID == "") {
            alert("请先选择要删除的信息!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定删除选中的信息吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/NewJson.aspx?action=deleteQuan&QuanID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，信息批量删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    }
}
function judgeString(str){
 	var len = str.length;
	var tt=0;
    for(var i=0;i<len;i++){
       var txt = str.charCodeAt(i);
       if(txt>128){     //ascii码大于128的是汉字
          tt= tt+2;
       } else{
          tt= tt+1;
       }
    }
 	return tt;
}
function isRightEmail(email) {
   var re="^[\s]*[a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+\.[a-zA-Z0-9]{2,4}[\s]*$";
   if(email.match(re)==null)
       return false;
   else
       return true;
}
function checkmembercompanyconfigform()
{
	var JobEmailKill=$("input[name='txtJobEmailKill']:checked").val();
	if(JobEmailKill!="1")
		JobEmailKill="0";
	var JobMobileKill=$("input[name='txtJobMobileKill']:checked").val();
	if(JobMobileKill!="1")
		JobMobileKill="0";
	var JobEmail=$("#txtJobEmail").val();
	var JobMobile=$("#txtJobMobile").val();
	if(JobEmailKill=="1" && JobEmail=="" )
	{
		alert("对不起，开通邮件通知服务需要输入您的邮箱！");
		return false;
	}
	if(JobMobileKill=="1"  && JobMobile<11)
	{
		alert("对不起，开通手机短信通知服务需要输入正确的手机号码！");
		return false;
	}
	$.ajax({
	  url: "../public/ajax.aspx?action=updatejob&JobEmailKill="+escape(JobEmailKill)+"&JobMobileKill="+escape(JobMobileKill)+"&JobEmail="+JobEmail+"&JobMobile="+escape(JobMobile),
	  cache: false,
	  success:function(data)
	  {
		  if(data==1)
		  {
			alert("修改设置成功！");
		  }
		  else{
			alert(data);
		  }
	  }
	});	
	return false;
}
function checkMemberSjConfigform()
{
	var CompanyTKill=$("input[name='txtCompanyTKill']:checked").val();
	if(CompanyTKill!="1")
		CompanyTKill="0";
	var CompanyT=$("#txtCompanyT").val();
	if(CompanyTKill=="1"  && CompanyT<11)
	{
		alert("对不起，开通手机短信通知服务需要输入正确的手机号码！");
		$("#txtCompanyT").focus();
		return false;
	}
	$.ajax({
	  url: "../public/ajax.aspx?action=updatesj&CompanyTKill="+escape(CompanyTKill)+"&CompanyT="+escape(CompanyT),
	  cache: false,
	  success:function(data)
	  {
		  if(data==1)
		  {
			alert("修改设置成功！");
		  }
		  else{
			alert(data);
		  }
	  }
	});	
	return false;
}
function checkqqregister()
{
	var qqname=$("#qqname").val();
	var qqpassword=$("#qqpassword").val();
	var FromStr=$("#FromStr").val();
	var qqemail=$("#qqemail").val();
	var qqtypeid=$("input[name='qqtypeid']:checked").val() ;
	var typeid=$("input[name='typeid']:checked").val() ;
	if(judgeString(qqname)>30 || judgeString(qqname)<3)
	{
		alert("对不起，会员帐号3-15个字符，可为汉字");
		return false;
	}
	if(qqpassword.length<5  || qqpassword.length>32)
	{
		alert("对不起，密码长度5~32位，请使用数字加字母或符号的组合方式");
		return false;
	}
	if(typeid==0 &&  (qqemail.length<3 || qqemail.length >40) )
	{
		alert("对不起，请输入您的常用邮箱，用于正常接收");
		return false;
	}
	if(typeid==0 &&  (!isRightEmail(qqemail)) )
	{
		alert("对不起，邮箱格式不正确，请重新输入");
		return false;
	}
	$.ajax({
	  url: "../public/ajax.aspx?action=qq&qqname="+escape(qqname)+"&qqpassword="+escape(qqpassword)+"&qqtypeid="+qqtypeid+"&qqemail="+escape(qqemail)+"&FromStr="+escape(FromStr)+"&typeid="+typeid,
	  cache: false,
	  success:function(data)
	  {
		  if(data==0)
		  {
			  //因为短域名影响跨域登录处理
			  if(window.location.href.toLowerCase().indexOf(".26.ca")!=-1)
			  {
					WebLoginCheck(qqname,qqpassword,"","");
					setTimeout('LoginQQState(\"'+ FromStr +'\")',1000)
			  }
			  else if(window.location.href.toLowerCase().indexOf(".yl.cc")!=-1)
			  {
					WebLoginCheck2(qqname,qqpassword,"","");
					setTimeout('LoginQQState(\"'+ FromStr +'\")',1000)
			  }
			  else if(window.location.href.toLowerCase().indexOf(".d4.cn")!=-1)
			  {
					WebLoginCheck3(qqname,qqpassword,"","");
					setTimeout('LoginQQState(\"'+ FromStr +'\")',1000)
			  }
			  else{
				  LoginQQState(FromStr);
			  }
			  //登录成功
		  }
		  else if(data==1)
		  {
			  //因为短域名影响跨域登录处理
			  if(window.location.href.toLowerCase().indexOf(".26.ca")!=-1)
			  {
					WebLoginCheck(qqname,qqpassword,"","");
					setTimeout('RegisterQQState(\"'+ FromStr +'\")',1000)
			  }
			  else if(window.location.href.toLowerCase().indexOf(".yl.cc")!=-1)
			  {
					WebLoginCheck2(qqname,qqpassword,"","");
					setTimeout('RegisterQQState(\"'+ FromStr +'\")',1000)
			  }
			  else if(window.location.href.toLowerCase().indexOf(".d4.cn")!=-1)
			  {
					WebLoginCheck3(qqname,qqpassword,"","");
					setTimeout('RegisterQQState(\"'+ FromStr +'\")',1000)
			  }
			  else{
				  RegisterQQState(FromStr);
			  }
			  //注册成功
		  }
		  else{
			alert(data);
		  }
	  }
	});	
	return false;
}
function RegisterQQState(FromStr)
{
	window.location.href=SiteWebUrl+"Account/MemberSuccess.aspx?from="+escape(FromStr); //注册成功
}
function LoginQQState(FromStr)
{
	window.location.href=SiteWebUrl+"Account/MemberLoginOver.aspx?flag=0&from="+escape(FromStr); //登录成功
}
function DeleteComanyBanner()
{
	if(confirm("此操作不可逆，您确认要删除吗？"))
	{
		$.ajax({
			  url: "/public/ajax.aspx?action=deletebanner",
			  cache: false,
			  success:function(data)
			  {
				  if(data=="1")
				  {
					 $('#showimage3').show();$('#showimage4').hide();
				  }
				  else{
					alert(data);  
				  }
			  }
		});	
	}
}
var AntzxCommentClass = {
	DeleteInfo: function(CommentID) {
        if (!window.confirm('此操作不可逆，您确定要删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deletezxcomment&CommentID="+CommentID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，评论删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteInfoAll: function() {
        var allID = GetSelectID('CommentID');
        if (allID == "") {
            alert("请选择要删除的评论!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确认要删除选中的评论吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletezxcomment&tt=0&CommentID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，评论删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	Deletejcproduct: function(ProductID) {
        if (!window.confirm('此操作不可逆，您确定要删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deletejcproduct&productid="+ProductID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，建材删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	Deletejcproductall: function() {
        var allID = GetSelectID('ProductID');
        if (allID == "") {
            alert("请选择要删除的建材!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确认要删除选中的建材吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletejcproduct&productid="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，建材删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	DeletejcInfo: function(CommentID) {
        if (!window.confirm('此操作不可逆，您确定要删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deletejccomment&CommentID="+CommentID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，评论删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeletejcInfoAll: function() {
        var allID = GetSelectID('CommentID');
        if (allID == "") {
            alert("请选择要删除的评论!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确认要删除选中的评论吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletejccomment&tt=0&CommentID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，评论删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	DeleteanliInfo: function(anliid) {
        if (!window.confirm('此操作不可逆，您确定要删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=deleteanli&anid="+anliid,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，装修案例删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteanliInfoAll: function() {
        var allID = GetSelectID('CommentID');
        if (allID == "") {
            alert("请选择要删除的装修案例!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确认要删除选中的装修案例吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deleteanli&tt=0&anid="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，装修案例删除成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	PassAll: function() {
        var allID = GetSelectID('CommentID');
        if (allID == "") {
            alert("请选择要审核通过的评论!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确认要审核通过的评论?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletezxcomment&tt=1&CommentID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，评论审核通过成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	PassNotAll: function() {
        var allID = GetSelectID('CommentID');
        if (allID == "") {
            alert("请选择要审核失败的评论!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确认要审核失败的评论?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletezxcomment&tt=2&CommentID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，评论审核拒绝成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	PassjcAll: function() {
        var allID = GetSelectID('CommentID');
        if (allID == "") {
            alert("请选择要审核通过的评论!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确认要审核通过的评论?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletejccomment&tt=1&CommentID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，评论审核通过成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	PassjcNotAll: function() {
        var allID = GetSelectID('CommentID');
        if (allID == "") {
            alert("请选择要审核失败的评论!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确认要审核失败的评论?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=deletejccomment&tt=2&CommentID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，评论审核拒绝成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	DeleteNews: function(NewsID) {
        if (!window.confirm('此操作不可逆，您确定要删除吗?')) 
		{
			return;
		}
		else
		{
         	 $.ajax({
			  url: "../public/ajax.aspx?action=DeletezxNews&NewsID="+NewsID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，删除信息成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
        }
    },
	DeleteNewsAll: function() {
        var allID = GetSelectID('NewsID');
        if (allID == "") {
            alert("请选择要删除的信息!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定要删除您选中的信息吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=DeletezxNews&NewsID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，删除信息成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	DesginYesAll: function() {
        var allID = GetSelectID('DesID');
        if (allID == "") {
            alert("请选择要审核通过的设计师!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定要审核通过您选中的设计师吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=designall&styleid=1&DesID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，审核设计师成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    },
	DesginNoAll: function() {
        var allID = GetSelectID('DesID');
        if (allID == "") {
            alert("请选择要拒绝审核的设计师!");
            return;
        }
		if (!window.confirm('此操作不可逆，您确定要拒绝审核您选中的设计师吗?')) 
		{
			return;
		}
		else
		{
			$.ajax({
			  url: "../public/ajax.aspx?action=designall&styleid=2&&DesID="+allID,
			  cache: false,
			  success:function(data)
			  {
				  if(data==0)
				  {
					alert("恭喜您，拒绝审核设计师成功。");
					window.location.href=window.location.href;
				  }
				  else{
					alert(data);
				  }
			  }
			});	
		}
    }
}
function SetAnStyleid()
{
	var val=$("input[name='txtAnStyleid']:checked").val();
	if(val=="1")
	{
		$("#tr1").hide()
		$("#tr2").hide()
		$("#tr3").show();
	}
	else
	{
		$("#tr3").hide()
		$("#tr1").show();
		$("#tr2").show();
	}
}
