<!--
var emailReg = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/;
var phoneReg = /(^[0-9]{3,4}\-[0-9]{3,8}$)|(^[0-9]{3,8}$)|(^\([0-9]{3,4}\)[0-9]{3,8}$)|(^0{0,1}13|15|18[0-9]{9}$)/;
var postcodeReg = /^\d{6}$/;

function showApply(){ 
	$("#rareApply").css({"left":"205px","top":"180px","display":"block"});
}
function closeApply(){ 
	$("#rareApply").hide("fast");
}

$(document).ready(function(){
	$("#btnClose img").click(function(){
		closeApply();
	});

	$("#_ServerForm").submit(function(){
		if($("input[@name='age'][@checked]").attr("value")==undefined){
			alert("请选择您的年龄范围！");
			$("#age20").focus();
			return false;
		}
		if($("#name").attr("value")==""){
			alert("请填写您的姓名！");
			$("#name").focus();
			return false;
		}
		if($("#email").attr("value")==""){
			alert("请填写您的电子邮件！");
			$("#email").focus();
			return false;
		}else if(!emailReg.test($("#email").attr("value"))){
			alert("请正确填写您的电子邮件！");
			$("#email").focus();
			return false;
		}
		if($("#phone").attr("value")==""){
			alert("请填写您的联系电话！");
			$("#phone").focus();
			return false;
		}else if(!phoneReg.test($("#phone").attr("value"))){
			alert("请正确填写您的联系电话！格式：\n13800138000\n或：\n021-00000000");
			$("#phone").focus();
			return false;
		}
		if($("#postcode").attr("value")==""){
			alert("请填写您的邮政编码！");
			$("#postcode").focus();
			return false;
		}else if(!postcodeReg.test($("#postcode").attr("value"))){
			alert("请正确填写您的邮政编码！");
			$("#postcode").focus();
			return false;
		}
		if($("#address").attr("value")==""){
			alert("请填写您的邮寄地址！");
			$("#address").focus();
			return false;
		}
	});

	$("#btnCloseWin img").click(function(){
		$(parent.document.body).contents().find("#rareApply").hide("fast");
	});

	if ($("#rareApply").length) { 
		$("#rareApply").bgiframe();
	} 

});
-->