function ifok(theform)
{

if (theform.qymc.value=="")
{
alert ("企业名称不能为空");
theform.qymc.focus();
return false;
}

if (theform.y_xkzbh.value=="")
{
alert ("原许可证编号不能为空");
theform.y_xkzbh.focus();
return false;
}

if (theform.y_xkzfzrq.value=="")
{
	alert ("原许可证发证日期不可为空，例如：2004年7月1日的格式为20040701。");
	theform.y_xkzfzrq.focus();
	return false;
}

if (theform.y_xkzfzjg.value=="")
{
	alert ("原许可证发证机关不可为空");
	theform.y_xkzfzjg.focus();
	return false;
}

if (theform.dz_zc.value=="")
{
	alert ("注册地址不能为空");
	theform.dz_zc.focus();
	return false;
}

if (theform.ssdqbm.value=="0")
{
	alert ("请选择所属地区");
	theform.ssdqbm.focus();
	return false;
}

if (theform.fddbr.value=="")
{
	alert ("法定代表人不能为空");
	theform.fddbr.focus();
	return false;
}

if (theform.qyfzr.value=="")
{
	alert ("企业负责人不能为空");
	theform.qyfzr.focus();
	return false;
}

if (theform.zlfzr.value=="")
{
	alert ("质量负责人不能为空");
	theform.zlfzr.focus();
	return false;
}

if (theform.jyfw.value=="")
{
	alert ("经营范围不能为空");
	theform.jyfw.focus();
	return false;
}

if (theform.jyfs.value=="0")
{
	alert ("请选择经营方式");
	theform.jyfs.focus();
	return false;
}

if (theform.dz_ck_1.value=="")
{
	alert ("请输入仓库地址1");
	theform.dz_ck_1.focus();
	return false;
}

if (theform.cs_xc.value=="0")
{
	alert ("请选择城市或者乡村");
	theform.cs_xc.focus();
	return false;
}

if (theform.sfszd.value=="0")
{
	alert ("请选择是否是总店");
	theform.sfszd.focus();
	return false;
}

}
