function reloadQuestion(types)
{
	var loadUrl = '/ajaxinc/questionlist.php';
	$.get(loadUrl,{ t:types,r:Math.random()},function(html){
		$("#compnews").empty();$("#compnews").append(html);
	});
}



function checkAddForm()
{
	if(document.form1.mpmodel.value.length==0)
	{
    alert("手机型号不可以为空，请输入!");
	  document.form1.mpmodel.focus();
	  return false;
	}
	

	if(document.form1.content.value.length==0)
	{
    alert("问题描述不可以为空，请输入内容!");
	  document.form1.content.focus();
	  return false;
	}


	if(document.form1.checkcode.value.length==0)
	{
    alert("验证码不可以为空，请输入验证码!");
	  document.form1.checkcode.focus();
	  return false;
	}
	else 
	{
		var Reg_Fnum = /^\d{4}$/;
		if(Reg_Fnum.test(document.form1.checkcode.value)==false)
		{
		  alert("验证码只能是四位数字!");
			document.form1.checkcode.focus();
			return false;
		}
	}
	
	return true;
}
