function checkbuyer(){
/*----------------------------------------主题-----------*/
strtemp=document.uploadtext.title;
	temp=jreplace(jtrim(strtemp.value))                                             
	if ((CheckLength(temp)>50) || (CheckLength(temp)==0))                                             
	{                                             
		alert("标题不能为空,且不能超过25个汉字！");                                             
		strtemp.focus();                                             
		return false;                                             
	}
strtemp=document.uploadtext.classid;
	temp=jreplace(jtrim(strtemp.value))                                             
	if ((CheckLength(temp)>50) || (CheckLength(temp)==0))                                             
	{                                             
		alert("请选择一种类型！");                                             
		strtemp.focus();                                             
		return false;                                             
	}
/*----------------------------------------内容-----------*/
strtemp=document.uploadtext.content;
	temp=jreplace(jtrim(strtemp.value))                                             
	if (CheckLength(temp)==0)                                            
	{                                             
		alert("内容不能为空！");                                             
		strtemp.focus();                                             
		return false;                                             
	}
/*----------------------------------------联系人-----------*/
strtemp=document.uploadtext.name;
	temp=jreplace(jtrim(strtemp.value))                                             
	if ((CheckLength(temp)>1200) || (CheckLength(temp)==0))                                             
	{                                             
		alert("请填写联系人！");                                             
		strtemp.focus();                                             
		return false;                                             
	}
	
	/*----------------------------------------EMAIL -----------*/
	if (document.uploadtext.email.value =="")
	{
	alert("请输入您的电子邮件地址！");
	document.uploadtext.email.focus();
	document.uploadtext.email.select();
	return false;
	}
	
	var filter=/^\s*([A-Za-z0-9_-]+(\.\w+)*@(\w+\.)+\w{2,3})\s*$/;
	if (!filter.test(document.uploadtext.email.value)) { 
	alert("电子邮件地址不正确,请重新填写！"); 
	document.uploadtext.email.focus();
	document.uploadtext.email.select();
	return false; 
	}

/*----------------------------------------省份-----------*/
strtemp=document.uploadtext.sf;
	temp=jreplace(jtrim(strtemp.value))                                             
	if (CheckLength(temp)==0)                                          
	{                                             
		alert("请选择省份！");                                             
		strtemp.focus();                                             
		return false;                                             
	}
	
/*----------------------------------------地址-----------*/
strtemp=document.uploadtext.address;
	temp=jreplace(jtrim(strtemp.value))                                             
	if ((CheckLength(temp)>1200) || (CheckLength(temp)==0))                                             
	{                                             
		alert("请填写地址！");                                             
		strtemp.focus();                                             
		return false;                                             
	}
	
/*----------------------------------------电话-----------
strtemp=document.uploadtext.phone;
	temp=jreplace(jtrim(strtemp.value))                                             
	if ((CheckLength(temp)>1200) || (CheckLength(temp)==0))                                             
	{                                             
		alert("请填写电话！");                                             
		strtemp.focus();                                             
		return false;                                             
	}

/*----------------------------------------电话号码----------
strtemp=document.uploadtext.mobile;
	if (jtrim(strtemp.value)=="")
	{	
		alert ("请填写手机。");
		strtemp.focus();
		return false;
	}
	var filter=/^\s*[0-9-]{8,11}\s*$/;
	if (!filter.test(strtemp.value)) { 
    alert("电话不正确,请重新填写！");
    strtemp.focus();
	return false;
    } 
-*/
/*----------------------------------------EMAIL -----------
strtemp=document.uploadtext.email;
if (strtemp.value =="")
{
alert("请输入您的电子邮件地址！");
strtemp.focus();
strtemp.select();
return false;
}
if (CheckLength(jtrim(strtemp.value))>40)
	{	
		alert ("电子邮件地址不正确,请重新填写！");
		strtemp.focus();
		return false;		
	}
var filter=/^\s*([A-Za-z0-9_-]+(\.\w+)*@(\w+\.)+\w{2,3})\s*$/;
if (!filter.test(strtemp.value)) { 
alert("电子邮件地址不正确,请重新填写！"); 
strtemp.focus();
strtemp.select();
return false; 
} 
*/
}
