String.prototype.trim = function(){
			return this.replace(/(^\s*)|(\s*$)/g, ""); 
		}
		function isMail(mail)  { 
   		 return(new RegExp(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/).test(mail)); 
		}
		function addEmail(){
		var emailContent = document.getElementById('emailContent').value;
		if(emailContent.trim().length==0||!isMail(emailContent)){
			alert('邮箱格式不正确');
			return false;
		}
		location.href="http://reg.ciotimes.com/servlet/Email?email="+emailContent;}

		function addEmail2(){
		var emailContent2 = document.getElementById('emailContent2').value;
		if(emailContent2.trim().length==0||!isMail(emailContent2)){
			alert('邮箱格式不正确!');
			return false;
		}
		location.href="http://reg.ciotimes.com/servlet/Email?email="+emailContent2;}