            
function checkItem()
{
	var name = document.all.txtName.value;
	var createdate = GetDate('AppDateBox1');	
	var attribute = document.all.txtattribute.value;
	var masterbusi = document.all.txtmasterBusi.value;
	var regcaptial = document.all.regCapital.value;
	var industype = document.all.dropIndustype;
	var pastyearincome = document.all.txtpastincome.value;
	var profit = document.all.txtProfit.value;
	var assetdebtrate = document.all.txtRate.value;
	var cmbwith = document.all.txtCmbWith.value;
	var cmbuseproduct = document.all.txtCmbProduct.value;
//	var cmbrank = document.all.txtCmbRank.value;
	var cmbtickamount = document.all.txtCmbTickAmount.value;
	var address = document.all.txtAddress.value;
	var leasecount = document.all.txtLeaseCount.value;
	var leaseobject = document.all.txtLeaseObject.value;
	var leasetype = document.all.txtLeaseType.value;
	var contactname = document.all.txtContactName.value;
	var contactmode = document.all.txtContactMode.value;
	var intro =	document.all.txtIntro.value;
	
	if(Trim(name)=='')
	{
		alert("请输入企业名称！") ;
		document.all.txtName.focus() ;
		window.event.returnValue = false; 
		return;
	}	
	
	
	if(Trim(address)=='')
	{
		alert("请输入地址信息！") ;
		document.all.txtAddress.focus() ;
		window.event.returnValue = false; 
		return;
	}
	
	if(Trim(contactname)=='')
	{
		alert("请输入企业联系人姓名！") ;
		document.all.txtContactName.focus() ;
		window.event.returnValue = false; 
		return;
	}
	
	if(Trim(contactmode)=='')
	{
		alert("请输入联系方式！") ;
		document.all.txtContactMode.focus() ;
		window.event.returnValue = false; 
		return;
	}
	
	if(Trim(intro)=='')
	{
		alert("请输入融资需求简介！") ;
		document.all.txtIntro.focus() ;
		window.event.returnValue = false; 
		return;
	}
}

function chekInquiryInfo()
{
	var problem = document.all.txtProblem.value;
	
	if(Trim(problem) == '')
	{
		alert("请输入您要咨询的问题！") ;
		document.all.txtProblem.focus() ;
		window.event.returnValue = false; 
		return;
	}
}

function GetDate(id)
{
	var ctl = document.getElementById(id);
	return ctl.date;
}

function Trim(str)
{
	if(str.charAt(0) == " ")
	{
		str = str.slice(1);
		str = Trim(str); 
	}
	return str;
}
