function ChangeLeftImage(father, i) {
	var src_;
	try {
		if (getspSelectControl('menu_1', "menu1", father) != null) {
			if (i == 1) {
				src_ = getspSelectControl('menu_1', "menu1", father).className = "nav_cur_subnav1";
			} else {
				src_ = getspSelectControl('menu_1', "menu1", father).className = "nav_subnav1";
			}
		}
		if (getspSelectControl('menu_2', "menu2", father) != null) {
			if (i == 2) {
				src_ = getspSelectControl('menu_2', "menu2", father).className = "nav_cur_subnav2";
			} else {
				src_ = getspSelectControl('menu_2', "menu2", father).className = "nav_subnav2";
			}
		}
		if (getspSelectControl('menu_3', "menu3", father) != null) {
			if (i == 3) {
				src_ = getspSelectControl('menu_3', "menu3", father).className = "nav_cur_subnav3";
			} else {
				src_ = getspSelectControl('menu_3', "menu3", father).className = "nav_subnav3";
			}
		}
		if (getspSelectControl('menu_4', "menu4", father) != null) {
			if (i == 4) {
				src_ = getspSelectControl('menu_4', "menu4", father).className = "nav_cur_subnav4";
			} else {
				src_ = getspSelectControl('menu_4', "menu4", father).className = "nav_subnav4";
			}
		}
		if (getspSelectControl('menu_5', "menu5", father) != null) {
			if (i == 5) {
				src_ = getspSelectControl('menu_5', "menu5", father).className = "nav_cur_subnav5";
			} else {
				src_ = getspSelectControl('menu_5', "menu5", father).className = "nav_subnav5";
			}
		}
		if (getspSelectControl('menu_6', "menu6", father) != null) {
			if (i == 6) {
				src_ = getspSelectControl('menu_6', "menu6", father).className = "nav_cur_subnav6";
			} else {
				src_ = getspSelectControl('menu_6', "menu6", father).className = "nav_subnav6";
			}
		}
		if (getspSelectControl('menu_7', "menu7", father) != null) {
			if (i == 7) {
				src_ = getspSelectControl('menu_7', "menu7", father).className = "nav_cur_subnav7";
			} else {
				src_ = getspSelectControl('menu_7', "menu7", father).className = "nav_subnav7";
			}
		}
	} finally {
		src_ = null;
	}
}

function getspSelectControl(spkey,controlutname,father)
{
	var control = null;
	try
	{
		if ( father.spControl.contains(spkey) )
		{
			control = father.spControl.getvalue(spkey);
		}
		else
		{
			control = father.getUT(controlutname) ;
			father.spControl.add(spkey,control);
		}
		return control;
	}
	finally
	{
		control = null;
	}
}
function getspSelectControl_MD(spkey,controlutname,father)
{
	var control = null;
	try
	{
		if ( father.spControl.contains(spkey) )
		{
			control = father.spControl.getvalue(spkey);
		}
		else
		{
			control = father.getMD(controlutname) ;
			father.spControl.add(spkey,control);
		}
		return control;
	}
	finally
	{
		control = null;
	}
}
String.prototype.endWith = function(str) {
	if (str == null || str == "" || this.length == 0
			|| str.length > this.length)
		return false;
	if (this.substring(this.length - str.length) == str)
		return true;
	else
		return false;
	return true;
}

String.prototype.startWith = function(str) {
	if (str == null || str == "" || this.length == 0
			|| str.length > this.length)
		return false;
	if (this.substr(0, str.length) == str)
		return true;
	else
		return false;
	return true;
}
function getsp(father)
{
	if ( father.sp == null)
	{
		father.sp = new Object();
		father.sp.javaClass ="com.longrise.LEAP.FISP.BO.carparameters";
	}
	
	if ( getspSelectControl('companyno',"companyselect",father) != null )
	{
		father.sp.companyno = LEAP.select.getValue(getspSelectControl('companyno',"companyselect",father));//投保公司
	}else{
	father.sp.companyno =insinfo.curData.companyselect;
	}
	
	if ( getspSelectControl('zoneno',"inszone",father) != null )
	{
		father.sp.zoneno = LEAP.select.getValue(getspSelectControl('zoneno',"inszone",father));//投保地区
	}else{
	father.sp.zoneno =insinfo.curData.inszone;
	}
	
	if ( getspSelectControl('isrenewal',"isrenewalselect",father) != null )
	{
		father.sp.isrenewal = LEAP.select.getValue(getspSelectControl('isrenewal',"isrenewalselect",father));//是否续保
	}else{
	father.sp.isrenewal =insinfo.curData.isrenewalselect;
	}
	
		if(cinfo!=null){
//	if ( getspSelectControl('belong',"belongselect",father) != null )
//	{
		father.sp.belong = cinfo.curData.belongselect;//车辆所属
//	}
	
//	if ( getspSelectControl('usetype',"usetypeselect",father) != null )
//	{
		father.sp.usetype = cinfo.curData.usetypeselect;//使用用途
//	}
	
//	if ( getspSelectControl('carlicensezoneno',"carbelongzone_city",father) != null )
//	{
		father.sp.carlicensezoneno = cinfo.curData.carbelongzone_city;//车辆所属城市
//	}
	
	father.sp.cardetail =carIn ;//carIn  father.selectcar 
	father.sp.routing = "";

	father.sp.regisdate = cinfo.curData.regisdate ;//登记日期
	father.sp.commercebegin = cinfo.curData.commercebegin;//商业险起保日期
	father.sp.constraintbegin = cinfo.curData.constraintbegin;//交强险起保日期<
	
	var k = '' ;
//	if ( getspSelectControl('traffic',"traffic_violation",father) != null )//交强险交通违章记录
//	{
		k = cinfo.curData.traffic_violation;
//	}

	if ( k == '' || k == '1' || k == '2' || k == '6')
	{
		if ( k == '' )
			father.sp.yearcount = 0 ;
		if ( k == '1')
			father.sp.yearcount = 1 ;
		if ( k == '2')
			father.sp.yearcount = 2 ;
		if ( k == '6')
			father.sp.yearcount = 3 ;
		
		father.sp.accidentcount = 0 ;
		father.sp.diecount = 0 ;
	}
	if ( k == '3')
	{
		father.sp.yearcount = 1 ;
		father.sp.accidentcount = 1 ;
		father.sp.diecount = 0 ;
	}
	if ( k == '4')
	{
		father.sp.yearcount = 1 ;
		father.sp.accidentcount = 2 ;
		father.sp.diecount = 0 ;
	}
	if ( k == '5')
	{
		father.sp.yearcount = 1 ;
		father.sp.accidentcount = 0 ;
		father.sp.diecount = 1 ;
	}
	
//	if ( getspSelectControl('deadweight',"deadweight",father) != null )
//	{
		father.sp.deadweight = cinfo.curData.deadweight;//货车自重(吨
//	}
	
//	if ( getspSelectControl('suminsured',"newcarprice",father) != null )
//	{
			father.sp.suminsured = cinfo.curData.newcarprice;//新车购置价
//	}
	
	father.sp.robberysumins	= 0 ;
//	father.sp.carIn=carIn;
	}
	
	k = null;
}

function getCarInfo(father){ //车辆信息json对象 
		if ( father.ci == null)
	{
		father.ci = new Object();
		father.ci.javaClass ="com.longrise.LEAP.FISP.BO.carinsdatacarinfo";
	}
		father.ci.carbrandid       = carIn.carbrandid;
		father.ci.carmodelid       = carIn.carmodelid;
		father.ci.carmodeldetailid = carIn.id;
		father.ci.seating          = carIn.seating;
		father.ci.remark           = carIn.detailmodel;
	if(father.cinfo!=null){	
		father.ci.cartypeid        = father.cinfo.curData.cartype;
		father.ci.carholderid      = father.cinfo.curData.belongselect; 
		father.ci.usenatureid      = father.cinfo.curData.usetypeselect;   
	    father.ci.engineno         = father.perinfo.curData.engine_num; 
		father.ci.carbodyno        = father.perinfo.curData.Chassis_Number;
		father.ci.caridno          = father.perinfo.curData.number_plate_no;   
		father.ci.price            = father.cinfo.curData.newcarprice;
		father.ci.zoneno           = father.cinfo.curData.carbelongzone;
		father.ci.emission         = father.cinfo.curData.deadweight;
		father.ci.city             = father.cinfo.curData.carbelongzone_city;
		father.ci.buydate = DateConvert.StringToDateType(father.cinfo.curData.regisdate);
		father.ci.registerdate=DateConvert.StringToDateType(father.cinfo.curData.regisdate);
	}	
}
function getInsurancePolicy(father){// 投保单信息json对象
	if(cinfo==null&&insinfo==null&&perinfo==null) return;
	if ( father.ip == null)
	{
		father.ip = new Object();
		father.ip.javaClass ="com.longrise.LEAP.FISP.BO.carinsdatainsurancepolicy";
	}
//    	father.ip.premium           = canselectsc.disall;// premium;//标准保费总额
//    	father.ip.amountpaid= canselectsc.payall;
//	    father.ip.discountpremium   = canselectsc.disall;// discountPremium;//应付保费（折后）amountPaid应付保费
	    father.ip.isrenewing        = insinfo.curData.isrenewalselect;// isRenew.getValue();//是否续保
	    father.ip.drivenrouteid     = '';// 行驶线路
	    father.ip.stateid           = 0 ;// 投保状态
	    father.ip.orgno             = insinfo.curData.companyselect;// selectCompany.getValue().substr(0,4);//保险人// 保险公司编号前四位
	    father.ip.effectivedatebegin=DateConvert.StringToDateType(cinfo.curData.commercebegin);// 生效开始日期  商业险起保日期
	    father.ip.effectivedateend  = DateConvert.StringToDateType(cinfo.curData.constraintbegin);// 保单到期日期  交强险起保日期
	    father.ip.salemanid=father.uerinfo.userflag.split('*')[0];//身份证号//"1*1*440300003002*13670290716"
	    father.ip.agentserviceid=father.uerinfo.userflag.split('*')[1];//姓名
	    father.ip.delivertel=father.uerinfo.userflag.split('*')[3];
	    father.ip.zoneno=insinfo.curData.inszone;//投保地区
	   
    var k = cinfo.curData.traffic_violation;
	if (k == '' || k == '1' || k == '2' || k == '6') {
		if ( k == '' )
			father.ip.preyearaccidentnum = 0 ;
		if ( k == '1')
			father.ip.preyearaccidentnum = 1 ;
		if ( k == '2')
			father.ip.preyearaccidentnum = 2 ;
		if ( k == '6')
			father.ip.preyearaccidentnum = 3 ;
		father.ip.ppyearaccidentnum = 0;
		father.ip.preyeardienum = 0;
	}
	if (k == '3') {
		father.ip.preyearaccidentnum = 1;
		father.ip.ppyearaccidentnum = 1;
		father.ip.preyeardienum = 0;
	}
	if (k == '4') {
		father.ip.preyearaccidentnum = 1;
		father.ip.ppyearaccidentnum = 2;
		father.ip.preyeardienum = 0;
	}
	if (k == '5') {
		father.ip.preyearaccidentnum = 1;
		father.ip.ppyearaccidentnum = 0;
		father.ip.preyeardienum = 1;
	}
	    father.ip.carimage = perinfo.curData.carimage;//perinfo.curData.carimage;// GetPicUpload();//车辆图片
	    father.ip.remark = null;// insRemark ;//描述
		father.ip.insuredpersonid=perinfo.curData.Driving_Licence;
	    father.ip.insurantcarpersonid = perinfo.curData.other_name;
	   
}

var carIn=null;//选择厂牌信息一行记录值
var cinfo=null;//车辆信息记录
var insinfo=null;//保费计算信息
var perinfo=null;//投保信息
var canselectsc=null;//险种信息
var zone =null;
var comanyname=null;
var selectWeb=null;//选择网银支付
var text = new Object();
var iscount=null;//是否购买交强险
var inscontrol_=null;//保费计算信息
var indexthis =null;//主页面对象
function getpageinfoValue(fath) {// 保页面数据信息
	if (fath != null) {
		if (fath.menucontrol.currentindex == 1) {	
			fath.cinfo = new Object();
			fath.cinfo = fath.displaymodel.getPageData();
			cinfo=fath.cinfo;
			//获取下拉框显示的值
			text.cartype=LEAP.select.getSelectedText(getspSelectControl('cartype',"cartype",fath.displaymodel));
			text.usetypeselect=LEAP.select.getSelectedText(getspSelectControl('usetypeselect',"usetypeselect",fath.displaymodel));
			text.belongselect=LEAP.select.getSelectedText(getspSelectControl('belongselect',"belongselect",fath.displaymodel));
			if(fath.displaymodel.selectcar!=null){
			fath.selectcar=fath.displaymodel.selectcar;
			carIn=fath.displaymodel.selectcar;
			}else{
			carIn=fath.selectcar;
			}
		} else if (fath.menucontrol.currentindex == 2) {
			fath.insinfo = new Object();
			fath.insinfo = fath.displaymodel.getPageData();
			if(fath.insinfo !=null){
			insinfo=fath.displaymodel.getPageData();
			zone=fath.insinfo.curData.inszone;//保险公司区域
			comanyname=fath.insinfo.curData.companyselect;//保险公司名称
			}
			text.companyselect=LEAP.select.getSelectedText(getspSelectControl('companyselect',"companyselect",fath.displaymodel));
			text.isrenewalselect=LEAP.select.getSelectedText(getspSelectControl('isrenewalselect',"isrenewalselect",fath.displaymodel));
			text.item_C102=LEAP.select.getSelectedText(getspSelectControl('item_C102',"item_C102",fath.displaymodel));//商业三者险
			text.item_C104=LEAP.select.getSelectedText(getspSelectControl('item_C104',"item_C104",fath.displaymodel));//司机座位
			text.item_seat=LEAP.select.getSelectedText(getspSelectControl('item_seat',"item_seat",fath.displaymodel));//乘客座位
			text.item_C105=LEAP.select.getSelectedText(getspSelectControl('item_C105',"item_C105",fath.displaymodel));//乘客座位保额
			text.item_C201=LEAP.select.getSelectedText(getspSelectControl('item_C201',"item_C201",fath.displaymodel));//玻璃破碎险
			text.item_C202=LEAP.select.getSelectedText(getspSelectControl('item_C202',"item_C202",fath.displaymodel));//车身划痕险
			iscount=LEAP.radio.getValue(getspSelectControl('select_C901',"select_C901",fath.displaymodel));
			if(fath.displaymodel.canselectsc!=null){
			fath.canselectsc=fath.displaymodel.canselectsc;
			canselectsc=fath.displaymodel.canselectsc;
			}
			if(fath.displaymodel.inscontrol!=null){
			 inscontrol_= fath.displaymodel.inscontrol;
			}
		} else if (fath.menucontrol.currentindex == 3) {
			fath.perinfo = new Object();
			fath.perinfo = fath.displaymodel.getPageData();
			perinfo=fath.perinfo;
			text.cardtype_=LEAP.select.getSelectedText(getspSelectControl('cardtype_',"cardtype_",fath.displaymodel));
			text.sex=LEAP.select.getSelectedText(getspSelectControl('sex',"sex",fath.displaymodel));
			text.Driving_Licence=LEAP.select.getSelectedText(getspSelectControl('Driving_Licence',"Driving_Licence",fath.displaymodel));
		}else if (fath.menucontrol.currentindex== 4) {
			fath.payinfo = new Object();
			fath.payinfo = fath.displaymodel.getPageData();
			var value=fath.displaymodel.getPageData();
			var getreport=fath.displaymodel.getpost;
			if(getreport=='getpost'){
			LEAP.request('updataperson',{t1:value.curData.acquiringpersonname , t2:value.curData.acquiringpersontel , t3:value.curData.acquiringpersonaddress , t4:value.curData.postcode,t5:1, id:fath.pi.id, temp:1});
			}else{
			LEAP.request('updataperson',{t1:value.curData.acquiringpersonname , t2:value.curData.acquiringpersontel , t3:value.curData.acquiringpersonaddress , t4:value.curData.postcode,t5:0, id:fath.pi.id, temp:1});
			}
			
			selectWeb=fath.displaymodel.getpay_select;
			fath.select_Web=selectWeb;
			if(selectWeb=='company'){
				LEAP.request('updataperson',{t1:value.curData.input_name , t2:value.curData.input_account , t3:value.curData.input_bank , t4:'',t5:'', id:fath.pi.id, temp:0});
			}
		}else if (fath.menucontrol.currentindex == 5) {
			fath.over = new Object();
			fath.over = fath.displaymodel.getPageData();
//			var value=fath.displaymodel.getPageData();
//			var getreport=fath.displaymodel.getpost;
//			if(getreport=='getpost'){
//			LEAP.request('updataperson',{t1:value.curData.acquiringpersonname , t2:value.curData.acquiringpersontel , t3:value.curData.acquiringpersonaddress , t4:value.curData.postcode,t5:1, id:fath.pi.id, temp:1});
//			}else{
//			LEAP.request('updataperson',{t1:value.curData.acquiringpersonname , t2:value.curData.acquiringpersontel , t3:value.curData.acquiringpersonaddress , t4:value.curData.postcode,t5:0, id:fath.pi.id, temp:1});
//			}
		} 
	}
	fath=null;
}
function pay_webbank(){
	if(indexthis==null) return;
	indexthis.doWebbank(indexthis.ip.amountpaid,indexthis.pi.id,indexthis.ip.id,indexthis.ip.stateid,indexthis.pi.name,indexthis.selectcar.detailmodel);//支付宝支付
}
var isdis=null;//判断保费信息页面返回后是否赋值
function setpageinfoValue(far) {// 返回页面时赋值
	if(far!=null){
	if(far.getUT('other_button').style.display=='none'){
		far.getUT('other_button').style.display = '';
	}
		far.getUT('nextbtn').innerText = '下一步';
		var PutQuestions1 =getspSelectControl('PutQuestions1',"PutQuestions1",far);
		var PutQuestions2 =getspSelectControl('PutQuestions2',"PutQuestions2",far);
		var PutQuestions3 =getspSelectControl('PutQuestions3',"PutQuestions3",far);
		var PutQuestions4 =getspSelectControl('PutQuestions4',"PutQuestions4",far);
		var PutQuestions5 =getspSelectControl('PutQuestions5',"PutQuestions5",far);
		var PutQuestions6 =getspSelectControl('PutQuestions6',"PutQuestions6",far);
		var more =getspSelectControl('more',"more",far);
		if(more != null &&more.style.display != ''){
		more.style.display = '';
		}
		var dis=null;
	if (far.menucontrol.getmodelname() == 'carinfo') {
		if (far.cinfo != null) {
				var ut = far.displaymodel.getUT("carbelongzone_city");
				var deadweight = getspSelectControl('deadweight', "deadweight",
						far.displaymodel);
				if (far.cinfo != null) {
					if (far.cinfo.curData != null) {
						getbelongzone_city(ut,
								far.cinfo.curData.carbelongzone_city);// 车辆所属地区连动处理

						if (far.cinfo.curData.cartype == 'BE4820DE-058E-4F91-9F28-838F4FD680F2') {
							deadweight.readOnly = true;
						} else {
							deadweight.readOnly = false;
						}
					}
				}
				far.displaymodel.setPageData(far.cinfo.curData);
			}
		dis=PutQuestions1;
	} else if (far.menucontrol.getmodelname() == 'insinfo') {
			iscount=null;
		if (far.insinfo != null) {
			far.displaymodel.setValue(getspSelectControl_MD('inszone',"inszone",far.displaymodel),far.insinfo.curData.inszone) ;
			far.displaymodel.fnzonevalueChange(far.insinfo);
			far.displaymodel.setValue(getspSelectControl_MD('companyselect',"companyselect",far.displaymodel),far.insinfo.curData.companyselect) ;
			far.displaymodel.fncompanyvalueChange(far.insinfo);
			far.displaymodel.setValue(getspSelectControl_MD('isrenewalselect',"isrenewalselect",far.displaymodel),far.insinfo.curData.isrenewalselect) ;
//			far.displaymodel.setPageData(far.insinfo.curData);
			if(isdis){
			far.displaymodel.resetpagedata(canselectsc);//设置返回后的页面显示数据
			}
		}else{
			setModifyinsue(far);
		}
		dis=PutQuestions2;
	} else if (far.menucontrol.getmodelname() == 'personinfo') {
		var result=LEAP.request('getFirstNOfromZoneNo',{city:cinfo.curData.carbelongzone_city});
		if(result!=null){
			far.displaymodel.setValue(getspSelectControl_MD('number_plate_no',"number_plate_no",far.displaymodel),result.caridno) ;
		}
		if(far.canselectsc!=null){
		var uploadlist = getspSelectControl('carimage',"carimage",far.displaymodel);
		LEAP.table.clearRow(LEAP.getElement('[ct=table]',uploadlist)) ;
		if(far.canselectsc.requiredpic!=null){
			var showname_=null;
		for(var j=0;j<far.canselectsc.requiredpic.length;j++){
			if(far.canselectsc.requiredpic[j].resourcename!=null){
			showname_=far.canselectsc.requiredpic[j].resourcename;
			}else if(far.canselectsc.requiredpic[j].showName!=null){
			showname_=far.canselectsc.requiredpic[j].showName;
			}
		LEAP.table.addRow(LEAP.getElement('[ct=table]',uploadlist),{showName:showname_},showname_);//动态添加附件的行
		}
		}
		}
		if (far.perinfo != null) {
			far.displaymodel.setPageData(far.perinfo.curData);
		}else{
		setModifypers(far);
		if(far.Mperobj!=null){
		far.displaymodel.setPageData(far.Mperobj);
		}
		}
		dis=PutQuestions3;
	}else if(far.menucontrol.getmodelname() == 'payinfo'){
		    var seriesno=null;
	        var w1=getspSelectControl('w1',"w1",far.displaymodel);//this.getUT('w1');
			var w2=getspSelectControl('w2',"w2",far.displaymodel);//this.getUT('w2');
			var c1=getspSelectControl('c1',"c1",far.displaymodel);//this.getUT('c1');
			var c2=getspSelectControl('c2',"c2",far.displaymodel);//this.getUT('c2');
			var r1=getspSelectControl('r1',"r1",far.displaymodel);//this.getUT('r1');
			var r2=getspSelectControl('r2',"r2",far.displaymodel);//this.getUT('r2');
			var com1=getspSelectControl('com1',"com1",far.displaymodel);//this.getUT('com1');
			var com2=getspSelectControl('com2',"com2",far.displaymodel);//this.getUT('com2');
			var companyN=getspSelectControl('company',"company",far.displaymodel);//this.getUT('company');
			var account=getspSelectControl('account',"account",far.displaymodel);//this.getUT('account');
			var bank=getspSelectControl('bank',"bank",far.displaymodel);//this.getUT('bank');	
		if(zone!=null||comanyname!=null){
		var result=LEAP.request('getcompanydata',{zone:zone,comanyname:comanyname});
		if(result!=null){
		far.displaymodel.companyinfo=result;
		}
		}
		far.displaymodel.getUT('zhang').innerText =far.uerinfo.userflag.split('*')[1];//this.uerinfo.userflag.split('*')[1];
//		if(far.ip!=null){
//			if(far.ip.singleinsuranceseriesno!=null){
//			seriesno=far.ip.singleinsuranceseriesno;
//			}
//		}
//		    far.displaymodel.getUT('serialdata').innerText = seriesno;
			far.displaymodel.insurfee = far.insurfee;// 保单费
			far.displaymodel.payfee = far.payfee;// 应付费
			w1.innerText = far.insurfee + '元';
			w2.innerText = far.payfee + '元';
			c1.innerText = far.insurfee + '元';
			c2.innerText = far.payfee + '元';
			r1.innerText = far.insurfee + '元';
			r2.innerText = far.payfee + '元';
			com1.innerText = far.insurfee + '元';
			com2.innerText = far.insurfee + '元';
			if (result != null) {
				companyN.innerText = result.accountname;
				account.innerText = result.accountno;
				bank.innerText = result.accountbank;
			}	
		if (far.payinfo != null) {
			far.payinfo.curData.paymenoy='';
			far.displaymodel.setPageData(far.payinfo.curData);
			displayreportway(far, far.payinfo.curData.getBILL);//根据选择的取单方式 显示相对提示或填写信息
//			value_check(far,far.payinfo.curData.paymenoy);//返回支付页面时 同时也显示支付金额部分
		}
//		if(far.payinfo!=null){
//		value_check(far,far.payinfo.curData.paymenoy);//返回支付页面时 同时也显示支付金额部分
//		}
		indexthis =far;
		dis=PutQuestions4;
	}else if(far.menucontrol.getmodelname() == 'over'){
//		LEAP.request('paysuccess',{stateid:1,id:far.ip.id});//支付成功修改状态
		if(far.payinfo!=null){
		setDispaly(far,far.payinfo.curData.paymenoy);//支付成功页面显示内容
		}
		if (far.over != null) {
			far.displaymodel.setPageData(far.over.curData);
//			displayreportway(far, far.over.curData.getBILL);//根据选择的取单方式 显示相对提示或填写信息
		}
		far.getUT('nextbtn').innerText = '继续投保';
		dis=PutQuestions5;
	}else if((far.menucontrol.getmodelname() == 'VIInsList') || (far.menucontrol.getmodelname() == 'help_tit1')){//隐藏上，下步按钮
		if(far.getUT('other_button').style.display==''){
		far.getUT('other_button').style.display = 'none';
		}
		dis=null;
		if(far.menucontrol.getmodelname() == 'VIInsList'){
		far.displaymodel.salemanid=far.uerinfo.userflag.split('*')[0];//身份证
		}
		if(far.menucontrol.getmodelname() == 'help_tit1'){
		dis=PutQuestions6;
		}
		if(more != null &&more.style.display != 'none'){
		more.style.display = 'none';
		}
	}
	dispaly_with_helpinfo(PutQuestions1,PutQuestions2,PutQuestions3,PutQuestions4,PutQuestions5,PutQuestions6);
	dispaly_whick_info(dis);
  }
  seriesno=companyselect=far=ut=null;
  more= showName=dis=PutQuestions1 =PutQuestions2 =PutQuestions3 =PutQuestions4 =PutQuestions5 =PutQuestions6 = null;
  deadweight =bank=account=companyN=com2=com1=r2=r1=c1=c1=w2=w1=null;
}
function setModifyinsue(fart){//保费信息修改
	if(fart.modifydata==null) return;
			var _id=fart.modifydata.id;
			var msgcontrol = getspSelectControl('messagenotics',"messagenotics",fart.displaymodel) ;
			var result =LEAP.request('getssFromData',{_id:_id});
			var a = eval('('+result.imag+')');//照片信息封装为Json对象
			result.requiredpic=a;
			if(result!=null){
				fart.canselectsc=null;
				fart.displaymodel.canselectsc =null;
				if(result.insurcode==null) return;
			LEAP.select.setValue(fart.displaymodel.getUT('inszone'), result.insurcode[0].zoneno);
			fart.displaymodel.fnzonevalueChange();
			LEAP.select.setValue(fart.displaymodel.getUT('companyselect'), result.insurcode[0].companyno);
			fart.displaymodel.fncompanyvalueChange();
			}
			if ( result != null )
			{
				fart.canselectsc = result ;
				fart.displaymodel.canselectsc = result ;
				if ( result.insurcode != null )
				{
					for( var i = 0 ; i < result.insurcode.length ; i ++ )
					{     
						var _ins = result.insurcode[i];//险种类
						var gcode = _ins.generacode ;//险种编号
						if ( fart.displaymodel.inscontrol.contains(gcode) )
						{
							var _con = fart.displaymodel.inscontrol.getvalue(gcode);
							_con.setValue(_ins , fart.modifydata.carseating ,fart.displaymodel);//??
							
							_con = null;
						}
						_ins = null;
						gcode = null;
					}
				}
			fart.displaymodel.setCalculateAllInfo();//各项保费
		    if (result.messagenotic[0] != null && result.messagenotic[0] != ''
				&& result.messagenotic[0] != 'null') {
			msgcontrol.innerText = result.messagenotic[0];// 核保信息
			} else {
				msgcontrol.innerText = '';
			}
			}
			
			msgcontrol=result =_id=null;
}
function setModifypers(far){
if(far.modifydata==null) return;
if(far.pi==null||far.ip==null||far.ci==null) return;
	if(far.Mperobj==null){
	far.Mperobj=new Object();
	}
	far.Mperobj.byperson=far.pi.name;
	far.Mperobj.cardtype_=far.pi.cardtypeid;
	far.Mperobj.cardnumber=far.pi.cardno;
	far.Mperobj.sex=far.pi.sex;
	if(far.pi.birthday!=null){
	far.Mperobj.born_registertime=DateConvert.DateTypeToString(far.pi.birthday);
	}
	far.Mperobj.contacttel=far.pi.tel;
	far.Mperobj.contactaddress=far.pi.address;
	if(far.ip.insurantcarpersonid==''||far.ip.insurantcarpersonid==null){
	far.Mperobj.Driving_Licence=far.ip.insuredpersonid;
	far.Mperobj.other_name=far.ip.insurantcarpersonid;
	}else{
	far.Mperobj.Driving_Licence=far.ip.insuredpersonid;
	far.Mperobj.other_name=far.ip.insurantcarpersonid;
	var othername=far.displaymodel.getMD('other_name');
	othername.readOnly=false;
	}
	far.Mperobj.engine_num=far.ci.engineno;
	far.Mperobj.Chassis_Number=far.ci.carbodyno;
	far.Mperobj.number_plate_no=far.ci.caridno;
	far.Mperobj.carimage=far.ip.carimage;
	other_name=null;
}
function setDispaly(far,paycurData) {//根据选择支付方式，确定 支付成功页面的现实内容
	var select_other=far.displaymodel.getUT('select_other');
	var select_web=far.displaymodel.getUT('select_web');
	if (paycurData == 'webbank') {
		if (select_other.style.display == '') {
			select_other.style.display = 'none';
		}
		if (select_web.style.display == 'none') {
			select_web.style.display = '';
			far.displaymodel.getUT('zhangsan').innerText =far.uerinfo.userflag.split('*')[1];//登录人
			far.displaymodel.getUT('water').innerText =far.payid;//交易流水号payid
			far.displaymodel.getUT('qian').innerText =far.payfee;//交易金额
			far.displaymodel.getUT('menoytype').innerText ='人民币';//币种
			far.displaymodel.getUT('productsname').innerText =indexthis.selectcar.detailmodel;//商品名称
			far.displaymodel.getUT('commercialorder').innerText =far.ip.singleinsuranceseriesno;//客户订单号
		}
	} else {
		if (select_web.style.display == '') {
			select_web.style.display = 'none';
		}
		if (select_other.style.display == 'none') {
			select_other.style.display = '';
			far.displaymodel.getUT('laodperson').innerText =far.uerinfo.userflag.split('*')[1];
		}
	}
	paycurData=far=select_other=select_web=null;
}
function value_check(far,check) {//返回支付页面时 同时也显示支付金额部分
		if(check==null) return;
		try {
			var webbank =far.displaymodel.getUT('webbank_check');
			var cash =far.displaymodel.getUT('cash_check');
			var remit =far.displaymodel.getUT('remit_check');
			var company =far.displaymodel.getUT('company_check');
			var CK = null;
			switch (check) {
			case 'webbank':
				CK = webbank;
				break;
			case 'cash':
				CK = cash;
				break;
			case 'remit':
				CK = remit;
				break;
			case 'company':
				CK = company;
				break;
			default:
			}
			if (webbank.style.display == '') {
				webbank.style.display = 'none';
			}
			if (cash.style.display == '') {
				cash.style.display = 'none';
			}
			if (remit.style.display == '') {
				remit.style.display = 'none';
			}
			if (company.style.display == '') {
				company.style.display = 'none';
			}

			if (CK.style.display == 'none') {
				CK.style.display = '';
			} else {
				CK.style.display = 'none';
			}
		} finally {
			CK = company = remit = cash = webbank_check = null;
		}

	}
function displayreportway(far, checkvalue) {//根据选择的取单方式 显示相对提示或填写信息
	if(checkvalue==null) return;
	var company_address = far.displaymodel.getUT('company_address');
	var Receipt_info = far.displaymodel.getUT('Receipt_info');
	if (checkvalue == 'getmyself') {
		if (Receipt_info.style.display == '') {
			Receipt_info.style.display = 'none';
		}
		company_address.style.display = '';
	} else {
		if (company_address.style.display == '') {
			company_address.style.display = 'none';
		}
		Receipt_info.style.display = '';
	}
}

function getpersoninfo(father)  //个人信息json对象  
{
	if ( father.pi == null)
	{
		father.pi = new Object();
		father.pi.javaClass ="com.longrise.LEAP.FISP.BO.carinsdatacarperson";
	}
	if(father.perinfo!=null&&father.cinfo!=null){
	father.pi.name =father.perinfo.curData.byperson;
	father.pi.cardno =father.perinfo.curData.cardnumber;
	father.pi.cardtypeid =father.perinfo.curData.cardtype_;
	father.pi.driverno = "";
	father.pi.driverdate  = null;
	father.pi.sex = father.perinfo.curData.sex;
	if(father.perinfo.curData.born_registertime!=null){
	father.pi.birthday =DateConvert.StringToDateType(father.perinfo.curData.born_registertime);//出生日期不为空
	}
	father.pi.address = father.perinfo.curData.contactaddress;
	father.pi.postcode ="";
	father.pi.tel = father.perinfo.curData.contacttel ;
	father.pi.mobile = "" ;
	father.pi.email = "";
	father.pi.zoneno = "";
	father.pi.carholderid =father.cinfo.curData.belongselect;
	father.pi.updateBy =null; ;
	father.pi.updateDate =null ;
	father.pi.remark = "";
	}
}
	

function setinszonevalue(zoneselect)//初始化投保地數據
{
	if ( zoneselect == null ) return ;
	if ( zoneselect != null )
	{
		var result = LEAP.request('getinszoneinfo');
		if ( result != null )
		{
			for(var i = 0 ; i < result.length ; i ++ )
			{
				var tempzone = result[i] ;
				LEAP.select.addItem(zoneselect, tempzone.zoneno.toString().Trim(),tempzone.name);
				tempzone = null;
			}
		}
		result = null;
	}
	zoneselect = null;
}

function setcompanyvalue(companyselect,zoneno,htzonecompany)//根据地区得到保险公司
{
	if (companyselect != null) {
		var result = null;
		if ( htzonecompany.contains(zoneno))
		{
			result = htzonecompany.getvalue(zoneno);
		}
		else
		{
			result = LEAP.request('getinscompanyfromzoneno', {
				par : zoneno
			});
			htzonecompany.add(zoneno,result);
		}
		if (result != null) {
			for ( var i = 0; i < result.length; i++) {
				var _tempdata = result[i];
				LEAP.select.addItem(companyselect, _tempdata.companyno,
						_tempdata.name);
				_tempdata = null;
			}
		}
		result = null;
	}
	return htzonecompany;
}

function  changeNum(num,n)  
{
	var  dd=1;  
	var  tempnum;  
	for(i=0;i<n;i++)  
	{  
		dd*=10;  
	}  
	tempnum=num*dd;  
	tempnum=Math.round(tempnum);  
	return tempnum / dd;
}

function getbelongzone_city(carbelongzone_city,carbelongzonevalue){
	if(carbelongzone_city==null||carbelongzonevalue==null||carbelongzonevalue==''){return;}
	LEAP.select.clearItem(carbelongzone_city) ;
	switch (LEAP.parsenum(carbelongzonevalue.toString().substring(0,2))) {
		case 13:
			LEAP.select.addItem(carbelongzone_city,'130100','石家庄市');
			LEAP.select.addItem(carbelongzone_city,'130200','唐山市');
			LEAP.select.addItem(carbelongzone_city,'130300','秦皇岛市');
			LEAP.select.addItem(carbelongzone_city,'130400','邯郸市');
			LEAP.select.addItem(carbelongzone_city,'130500','邢台市');
			LEAP.select.addItem(carbelongzone_city,'130600','保定市');
			LEAP.select.addItem(carbelongzone_city,'130700','张家口市');
			LEAP.select.addItem(carbelongzone_city,'130800','承德市');
			LEAP.select.addItem(carbelongzone_city,'130900','沧州市');
			LEAP.select.addItem(carbelongzone_city,'131000','廊坊市');
			LEAP.select.addItem(carbelongzone_city,'131100','衡水市');
			break;
		case 14:
			LEAP.select.addItem(carbelongzone_city,'140100','太原市');
			LEAP.select.addItem(carbelongzone_city,'140200','大同市');
			LEAP.select.addItem(carbelongzone_city,'140300','阳泉市');
			LEAP.select.addItem(carbelongzone_city,'140400','长治市');
			LEAP.select.addItem(carbelongzone_city,'140500','晋城市');
			LEAP.select.addItem(carbelongzone_city,'140600','朔州市');
			LEAP.select.addItem(carbelongzone_city,'140700','晋中市');
			LEAP.select.addItem(carbelongzone_city,'140800','运城市');
			LEAP.select.addItem(carbelongzone_city,'140900','忻州市');
			LEAP.select.addItem(carbelongzone_city,'141000','临汾市');
			break;
		case 15:
			LEAP.select.addItem(carbelongzone_city,'150100','呼和浩特市');
			LEAP.select.addItem(carbelongzone_city,'150200','包头市');
			LEAP.select.addItem(carbelongzone_city,'150300','乌海市');
			LEAP.select.addItem(carbelongzone_city,'150400','赤峰市');
			LEAP.select.addItem(carbelongzone_city,'150500','通辽市');
			LEAP.select.addItem(carbelongzone_city,'150600','鄂尔多斯市');
			LEAP.select.addItem(carbelongzone_city,'150700','呼伦贝尔市');
			LEAP.select.addItem(carbelongzone_city,'152200','兴安盟');
			LEAP.select.addItem(carbelongzone_city,'152500','锡林郭勒盟');
			LEAP.select.addItem(carbelongzone_city,'152900','阿拉善盟');
			break;
			case 21:
			LEAP.select.addItem(carbelongzone_city,'210100','沈阳市');
			LEAP.select.addItem(carbelongzone_city,'210200','大连市');
			LEAP.select.addItem(carbelongzone_city,'210300','鞍山市');
			LEAP.select.addItem(carbelongzone_city,'210300','鞍山市');
			LEAP.select.addItem(carbelongzone_city,'210400','抚顺市');
			LEAP.select.addItem(carbelongzone_city,'210500','本溪市');
			LEAP.select.addItem(carbelongzone_city,'210600','丹东市');
			LEAP.select.addItem(carbelongzone_city,'210700','锦州市');
			LEAP.select.addItem(carbelongzone_city,'210800','营口市');
			LEAP.select.addItem(carbelongzone_city,'210900','阜新市');
			LEAP.select.addItem(carbelongzone_city,'211000','辽阳市');
			LEAP.select.addItem(carbelongzone_city,'211100','盘锦市');
			LEAP.select.addItem(carbelongzone_city,'211200','铁岭市');
			LEAP.select.addItem(carbelongzone_city,'211300','朝阳市');
			LEAP.select.addItem(carbelongzone_city,'211400','葫芦岛市');
			break;
			case 22:
			LEAP.select.addItem(carbelongzone_city,'220100','长春市');
			LEAP.select.addItem(carbelongzone_city,'220200','吉林市');
			LEAP.select.addItem(carbelongzone_city,'220300','四平市');
			LEAP.select.addItem(carbelongzone_city,'220400','辽源市');
			LEAP.select.addItem(carbelongzone_city,'220500','通化市');
			LEAP.select.addItem(carbelongzone_city,'220600','白山市');
			LEAP.select.addItem(carbelongzone_city,'220700','松原市');
			LEAP.select.addItem(carbelongzone_city,'220800','白城市');
			LEAP.select.addItem(carbelongzone_city,'222400','延边朝鲜族自治州');
			break;
			case 23:
			LEAP.select.addItem(carbelongzone_city,'230100','哈尔滨市');
			LEAP.select.addItem(carbelongzone_city,'230100','哈尔滨市');
			LEAP.select.addItem(carbelongzone_city,'230200','齐齐哈尔市');
			LEAP.select.addItem(carbelongzone_city,'230300','鸡西市');
			LEAP.select.addItem(carbelongzone_city,'230400','鹤岗市');
			LEAP.select.addItem(carbelongzone_city,'230500','双鸭山市');
			LEAP.select.addItem(carbelongzone_city,'230600','大庆市');
			LEAP.select.addItem(carbelongzone_city,'230700','伊春市');
			LEAP.select.addItem(carbelongzone_city,'230800','佳木斯市');
			LEAP.select.addItem(carbelongzone_city,'230900','七台河市');
			LEAP.select.addItem(carbelongzone_city,'231000','牡丹江市');
			LEAP.select.addItem(carbelongzone_city,'231100','黑河市');
			LEAP.select.addItem(carbelongzone_city,'231200','绥化市');
			LEAP.select.addItem(carbelongzone_city,'232700','大兴安岭地区');
			break;
			case 32:
			LEAP.select.addItem(carbelongzone_city,'320100','南京市');
			LEAP.select.addItem(carbelongzone_city,'320200','无锡市');
			LEAP.select.addItem(carbelongzone_city,'320300','徐州市');
			LEAP.select.addItem(carbelongzone_city,'320400','常州市');
			LEAP.select.addItem(carbelongzone_city,'320500','苏州市');
			LEAP.select.addItem(carbelongzone_city,'320600','南通市');
			LEAP.select.addItem(carbelongzone_city,'320700','连云港市');
			LEAP.select.addItem(carbelongzone_city,'320800','淮安市');
			LEAP.select.addItem(carbelongzone_city,'320900','盐城市');
			LEAP.select.addItem(carbelongzone_city,'321000','扬州市');
			LEAP.select.addItem(carbelongzone_city,'321100','镇江市');
			LEAP.select.addItem(carbelongzone_city,'321200','泰州市');
			LEAP.select.addItem(carbelongzone_city,'321300','宿迁市');
			break;
			case 33:
			LEAP.select.addItem(carbelongzone_city,'330100','杭州市');
			LEAP.select.addItem(carbelongzone_city,'330200','宁波市');
			LEAP.select.addItem(carbelongzone_city,'330300','温州市');
			LEAP.select.addItem(carbelongzone_city,'330400','嘉兴市');
			LEAP.select.addItem(carbelongzone_city,'330500','湖州市');
			LEAP.select.addItem(carbelongzone_city,'330600','绍兴市');
			LEAP.select.addItem(carbelongzone_city,'330700','金华市');
			LEAP.select.addItem(carbelongzone_city,'330800','衢州市');
			LEAP.select.addItem(carbelongzone_city,'330900','舟山市');
			LEAP.select.addItem(carbelongzone_city,'331000','台州市');
			LEAP.select.addItem(carbelongzone_city,'331100','丽水市');
			LEAP.select.addItem(carbelongzone_city,'','');
			break;
			case 34:
			LEAP.select.addItem(carbelongzone_city,'340100','合肥市');
			LEAP.select.addItem(carbelongzone_city,'340200','芜湖市');
			LEAP.select.addItem(carbelongzone_city,'340300','蚌埠市');
			LEAP.select.addItem(carbelongzone_city,'340400','淮南市');
			LEAP.select.addItem(carbelongzone_city,'340500','马鞍山市');
			LEAP.select.addItem(carbelongzone_city,'340600','淮北市');
			LEAP.select.addItem(carbelongzone_city,'340700','铜陵市');
			LEAP.select.addItem(carbelongzone_city,'340800','安庆市');
			LEAP.select.addItem(carbelongzone_city,'341000','黄山市');
			LEAP.select.addItem(carbelongzone_city,'341100','滁州市');
			LEAP.select.addItem(carbelongzone_city,'341200','阜阳市');
			LEAP.select.addItem(carbelongzone_city,'341300','宿州市');
			LEAP.select.addItem(carbelongzone_city,'341400','巢湖市');
			LEAP.select.addItem(carbelongzone_city,'341500','六安市');
			LEAP.select.addItem(carbelongzone_city,'341600','亳州市');
			LEAP.select.addItem(carbelongzone_city,'341700','池州市');
			LEAP.select.addItem(carbelongzone_city,'341800','宣城市');
			break;
			case 35:
			LEAP.select.addItem(carbelongzone_city,'350100','福州市');
			LEAP.select.addItem(carbelongzone_city,'350200','厦门市');
			LEAP.select.addItem(carbelongzone_city,'350300','莆田市');
			LEAP.select.addItem(carbelongzone_city,'350400','三明市');
			LEAP.select.addItem(carbelongzone_city,'350500','泉州市');
			LEAP.select.addItem(carbelongzone_city,'350600','漳州市');
			LEAP.select.addItem(carbelongzone_city,'350700','南平市');
			LEAP.select.addItem(carbelongzone_city,'350800','龙岩市');
			LEAP.select.addItem(carbelongzone_city,'350900','宁德市');
			break;
			case 36:
			LEAP.select.addItem(carbelongzone_city,'360100','南昌市');
			LEAP.select.addItem(carbelongzone_city,'360200','景德镇市');
			LEAP.select.addItem(carbelongzone_city,'360300','萍乡市');
			LEAP.select.addItem(carbelongzone_city,'360400','九江市');
			LEAP.select.addItem(carbelongzone_city,'360500','新余市');
			LEAP.select.addItem(carbelongzone_city,'360600','鹰潭市');
			LEAP.select.addItem(carbelongzone_city,'360700','赣州市');
			LEAP.select.addItem(carbelongzone_city,'360800','吉安市');
			LEAP.select.addItem(carbelongzone_city,'360900','宜春市');
			LEAP.select.addItem(carbelongzone_city,'361000','抚州市');
			LEAP.select.addItem(carbelongzone_city,'361100','上饶市');
			break;
			case 37:
			LEAP.select.addItem(carbelongzone_city,'370100','济南市');
			LEAP.select.addItem(carbelongzone_city,'370200','青岛市');
			LEAP.select.addItem(carbelongzone_city,'370300','淄博市');
			LEAP.select.addItem(carbelongzone_city,'370400','枣庄市');
			LEAP.select.addItem(carbelongzone_city,'370500','东营市');
			LEAP.select.addItem(carbelongzone_city,'370600','烟台市');
			LEAP.select.addItem(carbelongzone_city,'370700','潍坊市');
			LEAP.select.addItem(carbelongzone_city,'370800','济宁市');
			LEAP.select.addItem(carbelongzone_city,'370900','泰安市');
			LEAP.select.addItem(carbelongzone_city,'371000','威海市');
			LEAP.select.addItem(carbelongzone_city,'371100','日照市');
			LEAP.select.addItem(carbelongzone_city,'371200','莱芜市');
			LEAP.select.addItem(carbelongzone_city,'371300','临沂市');
			LEAP.select.addItem(carbelongzone_city,'371400','德州市');
			LEAP.select.addItem(carbelongzone_city,'371500','聊城市');
			LEAP.select.addItem(carbelongzone_city,'371600','滨州市');
			break;
			case 41:
			LEAP.select.addItem(carbelongzone_city,'410100','郑州市');
			LEAP.select.addItem(carbelongzone_city,'410200','开封市');
			LEAP.select.addItem(carbelongzone_city,'410300','洛阳市');
			LEAP.select.addItem(carbelongzone_city,'410400','平顶山市');
			LEAP.select.addItem(carbelongzone_city,'410500','安阳市');
			LEAP.select.addItem(carbelongzone_city,'410600','鹤壁市');
			LEAP.select.addItem(carbelongzone_city,'410700','新乡市');
			LEAP.select.addItem(carbelongzone_city,'410800','焦作市');
			LEAP.select.addItem(carbelongzone_city,'410900','濮阳市');
			LEAP.select.addItem(carbelongzone_city,'411000','许昌市');
			LEAP.select.addItem(carbelongzone_city,'411100','漯河市');
			LEAP.select.addItem(carbelongzone_city,'411200','三门峡市');
			LEAP.select.addItem(carbelongzone_city,'411300','南阳市');
			LEAP.select.addItem(carbelongzone_city,'411400','商丘市');
			LEAP.select.addItem(carbelongzone_city,'411500','信阳市');
			LEAP.select.addItem(carbelongzone_city,'411600','周口市');
			LEAP.select.addItem(carbelongzone_city,'411700','驻马店市');
			LEAP.select.addItem(carbelongzone_city,'411800','济源市');
			
			break;
			case 42:
			LEAP.select.addItem(carbelongzone_city,'420100','武汉市');
			LEAP.select.addItem(carbelongzone_city,'420200','黄石市');
			LEAP.select.addItem(carbelongzone_city,'420300','十堰市');
			LEAP.select.addItem(carbelongzone_city,'420500','宜昌市');
			LEAP.select.addItem(carbelongzone_city,'420600','襄樊市');
			LEAP.select.addItem(carbelongzone_city,'420700','鄂州市');
			LEAP.select.addItem(carbelongzone_city,'420800','荆门市');
			LEAP.select.addItem(carbelongzone_city,'420900','孝感市');
			LEAP.select.addItem(carbelongzone_city,'421000','荆州市');
			LEAP.select.addItem(carbelongzone_city,'421100','黄冈市');
			LEAP.select.addItem(carbelongzone_city,'421200','咸宁市');
			LEAP.select.addItem(carbelongzone_city,'421300','随州市');
			LEAP.select.addItem(carbelongzone_city,'422800','恩施土家族苗族自治州');
			break;
			case 43:
			LEAP.select.addItem(carbelongzone_city,'430100','长沙市');
			LEAP.select.addItem(carbelongzone_city,'430200','株洲市');
			LEAP.select.addItem(carbelongzone_city,'430300','湘潭市');
			LEAP.select.addItem(carbelongzone_city,'430400','衡阳市');
			LEAP.select.addItem(carbelongzone_city,'430500','邵阳市');
			LEAP.select.addItem(carbelongzone_city,'430600','岳阳市');
			LEAP.select.addItem(carbelongzone_city,'430700','常德市');
			LEAP.select.addItem(carbelongzone_city,'430800','张家界市');
			LEAP.select.addItem(carbelongzone_city,'430900','益阳市');
			LEAP.select.addItem(carbelongzone_city,'431000','郴州市');
			LEAP.select.addItem(carbelongzone_city,'431100','永州市');
			LEAP.select.addItem(carbelongzone_city,'431200','怀化市');
			LEAP.select.addItem(carbelongzone_city,'431300','娄底市');
			LEAP.select.addItem(carbelongzone_city,'433100','湘西土家族苗族自治州');
			break;
			case 44:
			LEAP.select.addItem(carbelongzone_city,'440100','广州市');
			LEAP.select.addItem(carbelongzone_city,'440200','韶关市');
			LEAP.select.addItem(carbelongzone_city,'440300','深圳市');
			LEAP.select.addItem(carbelongzone_city,'440400','珠海市');
			LEAP.select.addItem(carbelongzone_city,'440500','汕头市');
			LEAP.select.addItem(carbelongzone_city,'440600','佛山市');
			LEAP.select.addItem(carbelongzone_city,'440700','江门市');
			LEAP.select.addItem(carbelongzone_city,'440800','湛江市');
			LEAP.select.addItem(carbelongzone_city,'440900','茂名市');
			LEAP.select.addItem(carbelongzone_city,'441200','肇庆市');
			LEAP.select.addItem(carbelongzone_city,'441300','惠州市');
			LEAP.select.addItem(carbelongzone_city,'441400','梅州市');
			LEAP.select.addItem(carbelongzone_city,'441500','汕尾市');
			LEAP.select.addItem(carbelongzone_city,'441600','河源市');
			LEAP.select.addItem(carbelongzone_city,'441700','阳江市');
			LEAP.select.addItem(carbelongzone_city,'441800','清远市');
			LEAP.select.addItem(carbelongzone_city,'441900','东莞市');
			LEAP.select.addItem(carbelongzone_city,'442000','中山市');
			LEAP.select.addItem(carbelongzone_city,'445100','潮州市');
			LEAP.select.addItem(carbelongzone_city,'445200','揭阳市');
			LEAP.select.addItem(carbelongzone_city,'445300','云浮市');
			break;
			case 45:
			LEAP.select.addItem(carbelongzone_city,'450100','南宁市');
			LEAP.select.addItem(carbelongzone_city,'450200','柳州市');
			LEAP.select.addItem(carbelongzone_city,'450300','桂林市');
			LEAP.select.addItem(carbelongzone_city,'450300','桂林市');
			LEAP.select.addItem(carbelongzone_city,'450400','梧州市');
			LEAP.select.addItem(carbelongzone_city,'450500','北海市');
			LEAP.select.addItem(carbelongzone_city,'450600','防城港市');
			LEAP.select.addItem(carbelongzone_city,'450700','钦州市');
			LEAP.select.addItem(carbelongzone_city,'450800','贵港市');
			LEAP.select.addItem(carbelongzone_city,'450900','玉林市');
			LEAP.select.addItem(carbelongzone_city,'451000','百色市');
			LEAP.select.addItem(carbelongzone_city,'451100','贺州市');
			LEAP.select.addItem(carbelongzone_city,'451200','河池市');
			LEAP.select.addItem(carbelongzone_city,'451300','来宾市');
			LEAP.select.addItem(carbelongzone_city,'451400','崇左市');
			break;
			case 46:
			LEAP.select.addItem(carbelongzone_city,'460100','海口市');
			LEAP.select.addItem(carbelongzone_city,'460200','三亚市');
			break;
			case 51:
			LEAP.select.addItem(carbelongzone_city,'510100','成都市');
			LEAP.select.addItem(carbelongzone_city,'510300','自贡市');
			LEAP.select.addItem(carbelongzone_city,'510400','攀枝花市');
			LEAP.select.addItem(carbelongzone_city,'510500','泸州市');
			LEAP.select.addItem(carbelongzone_city,'510600','德阳市');
			LEAP.select.addItem(carbelongzone_city,'510700','绵阳市');
			LEAP.select.addItem(carbelongzone_city,'510800','广元市');
			LEAP.select.addItem(carbelongzone_city,'510900','遂宁市');
			LEAP.select.addItem(carbelongzone_city,'511000','内江市');
			LEAP.select.addItem(carbelongzone_city,'511100','乐山市');
			LEAP.select.addItem(carbelongzone_city,'511300','南充市');
			LEAP.select.addItem(carbelongzone_city,'511400','眉山市');
			LEAP.select.addItem(carbelongzone_city,'511500','宜宾市');
			LEAP.select.addItem(carbelongzone_city,'511600','广安市');
			LEAP.select.addItem(carbelongzone_city,'511700','达州市');
			LEAP.select.addItem(carbelongzone_city,'511800','雅安市');
			LEAP.select.addItem(carbelongzone_city,'511900','巴中市');
			LEAP.select.addItem(carbelongzone_city,'512000','资阳市');
			LEAP.select.addItem(carbelongzone_city,'513200','阿坝藏族羌族自治州');
			LEAP.select.addItem(carbelongzone_city,'513300','甘孜藏族自治州');
			LEAP.select.addItem(carbelongzone_city,'513400','凉山彝族自治州');
			break;
			case 52:
			LEAP.select.addItem(carbelongzone_city,'520100','贵阳市');
			LEAP.select.addItem(carbelongzone_city,'520200','六盘水市');
			LEAP.select.addItem(carbelongzone_city,'520300','遵义市');
			LEAP.select.addItem(carbelongzone_city,'520400','安顺市');
			LEAP.select.addItem(carbelongzone_city,'522200','铜仁地区');
			LEAP.select.addItem(carbelongzone_city,'522300','黔西南布依族苗族自治');
			LEAP.select.addItem(carbelongzone_city,'522400','毕节地区');
			LEAP.select.addItem(carbelongzone_city,'522600','黔东南苗族侗族自治州');
			LEAP.select.addItem(carbelongzone_city,'522700','黔南布依族苗族自治州');
			break;
			case 53:
			LEAP.select.addItem(carbelongzone_city,'530100','昆明市');
			LEAP.select.addItem(carbelongzone_city,'530300','曲靖市');
			LEAP.select.addItem(carbelongzone_city,'530400','玉溪市');
			LEAP.select.addItem(carbelongzone_city,'530500','保山市');
			LEAP.select.addItem(carbelongzone_city,'530600','昭通市');
			LEAP.select.addItem(carbelongzone_city,'530700','丽江市');
			LEAP.select.addItem(carbelongzone_city,'532300','楚雄彝族自治州');
			LEAP.select.addItem(carbelongzone_city,'532500','红河哈尼族彝族自治州');
			LEAP.select.addItem(carbelongzone_city,'532600','文山壮族苗族自治州');
			LEAP.select.addItem(carbelongzone_city,'532800','西双版纳傣族自治州');
			LEAP.select.addItem(carbelongzone_city,'532900','大理白族自治州');
			LEAP.select.addItem(carbelongzone_city,'533100','德宏傣族景颇族自治州');
			LEAP.select.addItem(carbelongzone_city,'533300','怒江傈僳族自治州');
			LEAP.select.addItem(carbelongzone_city,'533400','迪庆藏族自治州');
			break;
			case 54:
			LEAP.select.addItem(carbelongzone_city,'540100','拉萨市');
			LEAP.select.addItem(carbelongzone_city,'542100','昌都地区');
			LEAP.select.addItem(carbelongzone_city,'542200','山南地区');
			LEAP.select.addItem(carbelongzone_city,'542300','日喀则地区');
			LEAP.select.addItem(carbelongzone_city,'542400','那曲地区');
			LEAP.select.addItem(carbelongzone_city,'542500','阿里地区');
			LEAP.select.addItem(carbelongzone_city,'542600','林芝地区');
			break;
			case 61:
			LEAP.select.addItem(carbelongzone_city,'610100','西安市');
			LEAP.select.addItem(carbelongzone_city,'610200','铜川市');
			LEAP.select.addItem(carbelongzone_city,'610300','宝鸡市');
			LEAP.select.addItem(carbelongzone_city,'610400','咸阳市');
			LEAP.select.addItem(carbelongzone_city,'610500','渭南市');
			LEAP.select.addItem(carbelongzone_city,'610600','延安市');
			LEAP.select.addItem(carbelongzone_city,'610700','汉中市');
			LEAP.select.addItem(carbelongzone_city,'610800','榆林市');
			LEAP.select.addItem(carbelongzone_city,'610900','安康市');
			LEAP.select.addItem(carbelongzone_city,'611000','商洛市');
			break;
			case 62:
			LEAP.select.addItem(carbelongzone_city,'620100','兰州市');
			LEAP.select.addItem(carbelongzone_city,'620200','嘉峪关市');
			LEAP.select.addItem(carbelongzone_city,'620300','金昌市');
			LEAP.select.addItem(carbelongzone_city,'620400','白银市');
			LEAP.select.addItem(carbelongzone_city,'620500','天水市');
			LEAP.select.addItem(carbelongzone_city,'620600','武威市');
			LEAP.select.addItem(carbelongzone_city,'620700','张掖市');
			LEAP.select.addItem(carbelongzone_city,'620800','平凉市');
			LEAP.select.addItem(carbelongzone_city,'620900','酒泉市');
			LEAP.select.addItem(carbelongzone_city,'621000','庆阳市');
			LEAP.select.addItem(carbelongzone_city,'622900','临夏回族自治州');
			LEAP.select.addItem(carbelongzone_city,'623000','甘南藏族自治州');
			break;
			case 63:
			LEAP.select.addItem(carbelongzone_city,'630000','青海省');
			LEAP.select.addItem(carbelongzone_city,'630100','西宁市');
			LEAP.select.addItem(carbelongzone_city,'632100','海东地区');
			LEAP.select.addItem(carbelongzone_city,'632200','海北藏族自治州');
			LEAP.select.addItem(carbelongzone_city,'632300','黄南藏族自治州');
			LEAP.select.addItem(carbelongzone_city,'632500','海南藏族自治州');
			LEAP.select.addItem(carbelongzone_city,'632600','果洛藏族自治州');
			LEAP.select.addItem(carbelongzone_city,'632700','玉树藏族自治州');
			LEAP.select.addItem(carbelongzone_city,'632800','海西蒙古族藏族自治州');
			break;
			case 64:
			LEAP.select.addItem(carbelongzone_city,'640100','银川市');
			LEAP.select.addItem(carbelongzone_city,'640200','石嘴山市');
			LEAP.select.addItem(carbelongzone_city,'640300','吴忠市');
			LEAP.select.addItem(carbelongzone_city,'640400','固原市');
			LEAP.select.addItem(carbelongzone_city,'640500','中卫市');
			break;
			case 65:
			LEAP.select.addItem(carbelongzone_city,'650100','乌鲁木齐市');
			LEAP.select.addItem(carbelongzone_city,'650200','克拉玛依市');
			LEAP.select.addItem(carbelongzone_city,'652100','吐鲁番地区');
			LEAP.select.addItem(carbelongzone_city,'652200','哈密地区');
			LEAP.select.addItem(carbelongzone_city,'652300','昌吉回族自治州');
			LEAP.select.addItem(carbelongzone_city,'652700','博尔塔拉蒙古自治州');
			LEAP.select.addItem(carbelongzone_city,'652800','巴音郭楞蒙古自治州');
			LEAP.select.addItem(carbelongzone_city,'652900','阿克苏地区');
			LEAP.select.addItem(carbelongzone_city,'653000','克孜勒苏柯尔克孜自治');
			LEAP.select.addItem(carbelongzone_city,'653100','喀什地区');
			LEAP.select.addItem(carbelongzone_city,'653200','和田地区');
			LEAP.select.addItem(carbelongzone_city,'654000','伊犁哈萨克自治州');
			LEAP.select.addItem(carbelongzone_city,'654200','塔城地区');
			LEAP.select.addItem(carbelongzone_city,'654300','阿勒泰地区');
			break;
			
		default:
		}
		   carbelongzone_city=carbelongzonevalue=null
}
function carDataCheck(th)
{
	if (getspSelectControl_MD('brandtype', "brandtype", th) != null) {
	if (th.getValue(getspSelectControl_MD('brandtype', "brandtype", th)).toString().Trim()== '')
	{
		alert('厂牌型号必须选择！');
		return false;
	}
	}
	if (getspSelectControl_MD('newcarprice', "newcarprice", th) != null) {
	if (th.getValue(getspSelectControl_MD('newcarprice', "newcarprice", th)).toString().Trim()== '')
	{
		alert('新车购置价必须填写！');
		return false;
	}
	else{
		if(	LEAP.parsenum(th.getValue(getspSelectControl_MD('newcarprice', "newcarprice", th)).toString().Trim())==null ){
			alert('新车购置价必须为数字！');
			return false;
		}
	}
	}
	if (getspSelectControl_MD('regisdate', "regisdate", th) != null) {
	if (th.getValue(getspSelectControl_MD('regisdate', "regisdate", th))== null||th.getValue(getspSelectControl_MD('regisdate', "regisdate", th))=='')
	{
		alert('车辆登记日期必须填写！');
		return false;
	}
	}
	if (getspSelectControl_MD('cartype', "cartype", th) != null) {
	if (th.getValue(getspSelectControl_MD('cartype', "cartype", th))==null||th.getValue(getspSelectControl_MD('cartype', "cartype", th))=='')
	{
		alert('车辆类型必须选择！');
		return false;
	}
	}
	if (getspSelectControl_MD('usetypeselect', "usetypeselect", th) != null) {
	if (th.getValue(getspSelectControl_MD('usetypeselect', "usetypeselect", th))==null||th.getValue(getspSelectControl_MD('usetypeselect', "usetypeselect", th))=='')
	{
		alert('使用用途必须选择！');
		return false;
	}
	}
	if (getspSelectControl_MD('seatpewtonnage', "seatpewtonnage", th) != null) {
	if (th.getValue(getspSelectControl_MD('seatpewtonnage', "seatpewtonnage", th)).toString().Trim()== '')
	{
		alert('座位/吨位必须填写！');
		return false;
	}
	}
	if (getspSelectControl_MD('belongselect', "belongselect", th) != null) {
	if (th.getValue(getspSelectControl_MD('belongselect', "belongselect", th))==null||th.getValue(getspSelectControl_MD('belongselect', "belongselect", th))=='')
	{
		alert('车辆所属必须选择！');
		return false;
	} 
	}
	if (getspSelectControl_MD('cartype', "cartype", th) != null) {
	if (LEAP.select.getValue(getspSelectControl_MD('cartype', "cartype", th)) == '35021B88-27CC-4E21-AE78-4EA34FF801B2')//货车
	{
		if (getspSelectControl_MD('deadweight', "deadweight", th) != null) {
		if (th.getValue(getspSelectControl_MD('deadweight', "deadweight", th)).toString().Trim()== '')
		{
			alert('货车自重必须填写！');
			return false;
		}
		}
	}
	if (th.getValue(getspSelectControl_MD('deadweight', "deadweight", th)).toString().Trim()!= ''){
		if(	LEAP.parsenum(th.getValue(getspSelectControl_MD('deadweight', "deadweight", th)).toString().Trim())==null ){
			alert('货车自重必须为数字！');
			return false;
			}
	}
	}
	if (getspSelectControl_MD('carbelongzone', "carbelongzone", th) != null) {
	if (th.getValue(getspSelectControl_MD('carbelongzone', "carbelongzone", th))==null||th.getValue(getspSelectControl_MD('carbelongzone', "carbelongzone", th))=='')
	{
		alert('车辆所属地区必须选择！');
		return false;
	}
	else{
		if (getspSelectControl_MD('carbelongzone_city', "carbelongzone_city", th) != null) {
		if (th.getValue(getspSelectControl_MD('carbelongzone', "carbelongzone", th)).toString().Trim().substring(0, 2) != '11'
				&& th.getValue(getspSelectControl_MD('carbelongzone', "carbelongzone", th)).toString().Trim().substring(0, 2) != '12'
				&& th.getValue(getspSelectControl_MD('carbelongzone', "carbelongzone", th)).toString().Trim().substring(0, 2) != '31'
				&& th.getValue(getspSelectControl_MD('carbelongzone', "carbelongzone", th)).toString().Trim().substring(0, 2) != '50'
				&&(th.getValue(getspSelectControl_MD('carbelongzone_city', "carbelongzone_city", th))==null
				||th.getValue(getspSelectControl_MD('carbelongzone_city', "carbelongzone_city", th))=='')) {
				alert('车辆所属地区城市必须选择！');
					return false;
		}
		}
	}
	}
	if (getspSelectControl_MD('traffic_violation', "traffic_violation", th) != null) {
	if (th.getValue(getspSelectControl_MD('traffic_violation', "traffic_violation", th))==null||th.getValue(getspSelectControl_MD('traffic_violation', "traffic_violation", th))=='')
	{
		alert('交强险交通违章记录必须选择！');
		return false;
	}
	}
	if (getspSelectControl_MD('commercebegin', "commercebegin", th) != null) {
	if (th.getValue(getspSelectControl_MD('commercebegin', "commercebegin", th))== null||th.getValue(getspSelectControl_MD('commercebegin', "commercebegin", th))=='')
	{
		alert('商业险起保日期必须填写！');
		return false;
	}
	}
	if (getspSelectControl_MD('constraintbegin', "constraintbegin", th) != null) {
	if (th.getValue(getspSelectControl_MD('constraintbegin', "constraintbegin", th))== null||th.getValue(getspSelectControl_MD('constraintbegin', "constraintbegin", th))=='')
	{
		alert('交强险起保日期必须填写！');
		return false;
	}
	}
	return true;
}
function PremiumaccountDataCheck(th)
{
	if (getspSelectControl('companyselect', "companyselect", th) != null) {
if (th.getValue(getspSelectControl('companyselect', "companyselect", th))==null||th.getValue(getspSelectControl('companyselect', "companyselect", th))=='')
	{
		alert('投保公司必须选择！');
		return false;
	}
	}
	return true;
}
function InsureinfoDataCheck(th)
{
	if (getspSelectControl_MD('byperson', "byperson", th) != null) {
	if (th.getValue(getspSelectControl_MD('byperson', "byperson", th)).toString().Trim()== '')
	{
		alert('被保险人姓名必须填写！');
		return false;
	}
	}
//	if (getspSelectControl_MD('cardtype_', "cardtype_", th) != null) {
//	if (th.getValue(getspSelectControl_MD('cardtype_', "cardtype_", th))==null||th.getValue(getspSelectControl_MD('cardtype_', "cardtype_", th))=='')
//	{
//		alert('证件类型录必须选择！');
//		return false;
//	}
//	}
	if (getspSelectControl_MD('cardnumber', "cardnumber", th) != null) {
	if (th.getValue(getspSelectControl_MD('cardnumber', "cardnumber", th)).toString().Trim()== '')
	{
		alert('证件号码必须填写！');
		return false;
	}
	else
	{
		if (getspSelectControl_MD('cardtype_', "cardtype_", th) != null) {
		if(th.getValue(getspSelectControl_MD('cardtype_', "cardtype_", th))==0){
		if (th.getValue(getspSelectControl_MD('cardnumber', "cardnumber", th)).length != 15&&th.getValue(getspSelectControl_MD('cardnumber', "cardnumber", th)).length != 18  )
		{
			alert('证件号码填写错误！');
			return false;
		}
	  }
		}
	}
	}
//	if (getspSelectControl_MD('born_registertime', "born_registertime", th) != null) {
//	if (th.getValue(getspSelectControl_MD('born_registertime', "born_registertime", th))== null||th.getValue(getspSelectControl_MD('born_registertime', "born_registertime", th))=='')
//	{
//		alert('出生日期必须填写！');
//		return false;
//	}
//	}
//	if (getspSelectControl_MD('contacttel', "contacttel", th) != null) {
//	if (th.getValue(getspSelectControl_MD('contacttel', "contacttel", th)).toString().Trim()== '')
//	{
//		alert('联系电话必须填写！');
//		return false;
//	}
//	}
//	if (getspSelectControl_MD('contactaddress', "contactaddress", th) != null) {
//	if (th.getValue(getspSelectControl_MD('contactaddress', "contactaddress", th)).toString().Trim()== '')
//	{
//		alert('通讯地址须填写！');
//		return false;
//	}
//	}
	if (getspSelectControl_MD('engine_num', "engine_num", th) != null) {
	if (th.getValue(getspSelectControl_MD('engine_num', "engine_num", th)).toString().Trim()== '')
	{
		alert('发动机号必须填写！');
		return false;
	}
	}
	if (getspSelectControl_MD('Chassis_Number', "Chassis_Number", th) != null) {
	if (th.getValue(getspSelectControl_MD('Chassis_Number', "Chassis_Number", th)).toString().Trim()== '')
	{
		alert('车架号必须填写！');
		return false;
	}
//	else{
//		if (cinfo.curData!= null) {
//	if (cinfo.curData.regisdate != ''&&cinfo.curData.regisdate!= null)
//		{
//			if ( cinfo.curData.regisdate .substring(0,4) >= '2000' && th.getValue(getspSelectControl_MD('Chassis_Number', "Chassis_Number", th)).length != 17 )
//			{
//				alert('2000年以后的车架号必须是17位的');
//				return false;
//			}
//		}
//		}
//	}
	}
	if (getspSelectControl_MD('number_plate_no', "number_plate_no", th) != null) {
	if (th.getValue(getspSelectControl_MD('number_plate_no', "number_plate_no", th)).toString().Trim()== '')
	{
		alert('车牌号码必须填写！');
		return false;
	}
	else if(th.getValue(getspSelectControl_MD('number_plate_no', "number_plate_no", th)).toString().Trim().length==2){
	    alert('车牌号请填写完整！');
		return false;
	}
	}
//	if (getspSelectControl_MD('carimage', "carimage", th) != null) {
//	if (th.getValue(getspSelectControl_MD('carimage', "carimage", th))== null)
//	{
//		alert('请上传车辆照片！');
//		return false;
//	}
//	}
	return true;
}
function mailingInfo(th){
	if (getspSelectControl_MD('acquiringpersonname', "acquiringpersonname", th) != null) {
	if (th.getValue(getspSelectControl_MD('acquiringpersonname', "acquiringpersonname", th)).toString().Trim()== '')
	{
		alert('请填写收单人姓名！');
		return false;
	}
	}
	if (getspSelectControl_MD('acquiringpersontel', "acquiringpersontel", th) != null) {
	if (th.getValue(getspSelectControl_MD('acquiringpersontel', "acquiringpersontel", th)).toString().Trim()== '')
	{
		alert('请填写收单人联系电话！');
		return false;
	}
	}
	if (getspSelectControl_MD('acquiringpersonaddress', "acquiringpersonaddress", th) != null) {
	if (th.getValue(getspSelectControl_MD('acquiringpersonaddress', "acquiringpersonaddress", th)).toString().Trim()== '')
	{
		alert('请填写收单人地址！');
		return false;
	}
	}
//	if (getspSelectControl_MD('postcode', "postcode", th) != null) {
//	if (th.getValue(getspSelectControl_MD('postcode', "postcode", th)).toString().Trim()== '')
//	{
//		alert('邮编必须填写！');
//		return false;
//	}
//	}
	return true;
}
function backmenoy(th){
	if (getspSelectControl_MD('input_name', "input_name", th) != null) {
	if (th.getValue(getspSelectControl_MD('input_name', "input_name", th)).toString().Trim()== '')
	{
		alert('请填写退款户名！');
		return false;
	}
	}
	if (getspSelectControl_MD('input_account', "input_account", th) != null) {
	if (th.getValue(getspSelectControl_MD('input_account', "input_account", th)).toString().Trim()== '')
	{
		alert('请填写退款帐户！');
		return false;
	}
	}
	if (getspSelectControl_MD('input_bank', "input_bank", th) != null) {
	if (th.getValue(getspSelectControl_MD('input_bank', "input_bank", th)).toString().Trim()== '')
	{
		alert('请填写退款银行！');
		return false;
	}
	}
	return true;
}
function all_display(display1,display2,display3,display4,display5){
	 		if (display1 != null && display1.style.display == '') {
				display1.style.display = 'none';
			}
			if (display2 != null && display2.style.display == '') {
				display2.style.display = 'none';
			}
			if (display3 != null && display3.style.display == '') {
				display3.style.display = 'none';
			}
			if (display4 != null && display4.style.display == '') {
				display4.style.display = 'none';
			}
			if (display5 != null && display5.style.display == '') {
				display5.style.display = 'none';
			}
}
function need_display(display1,display2,display3,display4,display5){
		display1.style.display = 'none';
		display2.style.display = 'none';
		display3.style.display = 'none';
		display4.style.display = 'none';
		display5.style.display = 'none';
}
function help_register(carprice_awoke,rating_date,deadweight_empty,is_isrenewalofinsurance,engine_no,frame_no){//小提示
            LEAP.check.setTip(carprice_awoke, '系统的新车购置价是当前的新车市价，旧车投保时可以在此基础上最多下调15%，都视为足额投保，可以顺利通过系统的核保。新车投保时的购置价以系统为准或按购车发票价（含税价）为准。');
			LEAP.check.setTip(rating_date, '填写投保车辆在车辆管理部门进行初次登记的日期，可参照《机动车行驶证》上的“登记日期”填写。如果行驶证上的“登记日期”与初次登记日期不相符时，此栏要追溯到真正的初次登记日期填写，如果确实无法提供初次登记日期，填写投保车辆的生产日期。');
			LEAP.check.setTip(deadweight_empty, '货车购买车船税的计税单位，指机动车的的整备质量。对于机动车行驶证上未注明整备质量参数的，按总质量减去核定载质量的差额作为计税吨位，或由纳税人提供能确认车辆整备质量的相关资料。根据实施细则第二十九条规定：“车辆自重尾数在0.5吨以下（含0.5吨）的，按照0.5吨计算；超过0.5吨的，按1吨计算。”');
			LEAP.check.setTip(is_isrenewalofinsurance,'首次投保交强险选择“新保”，其他均为“续保”。投保车辆若为“续保”的，应正确填写“交强险续保年限、上年浮动比率、上年承保公司及保险单号码”及浮动比率。保险公司对续保和转保在费率优惠、承保条件上有所不同，请正确填写。') ;
			LEAP.check.setTip(engine_no,'机动车的身份证明之一，是生产厂在汽车发动机缸体上打印的号码。此栏可根据投保车辆的《机动车行驶证》上的号码填写。');
			LEAP.check.setTip(frame_no,'车架号是机动车的身份证明之一，是生产厂在车架（或车身）上打印的号码。此栏可根据投保车辆的《机动车行驶证》上的号码填写。');
}
function dispaly_with_helpinfo(PutQuestions1,PutQuestions2,PutQuestions3,PutQuestions4,PutQuestions5,PutQuestions6){//常见问题
			if (PutQuestions1 != null && PutQuestions1.style.display == '') {
				PutQuestions1.style.display = 'none';
			}
			if (PutQuestions2 != null && PutQuestions2.style.display == '') {
				PutQuestions2.style.display = 'none';
			}
			if (PutQuestions3 != null && PutQuestions3.style.display == '') {
				PutQuestions3.style.display = 'none';
			}
			if (PutQuestions4 != null && PutQuestions4.style.display == '') {
				PutQuestions4.style.display = 'none';
			}
			if (PutQuestions5 != null && PutQuestions5.style.display == '') {
				PutQuestions5.style.display = 'none';
			}
			if (PutQuestions6 != null && PutQuestions6.style.display == '') {
				PutQuestions6.style.display = 'none';
			}
		PutQuestions1 =PutQuestions2 =PutQuestions3 =PutQuestions4 =PutQuestions5 =PutQuestions6 = null;
}
function dispaly_whick_info(element){//常见问题
	if(element!=null){
	 element.style.display = '';
	}
	element=null;
}

function initDateValue()
{
	LEAP.date.setValue('[ut=regisdate]',LEAP.formatdate(new Date(), 1)); 
	LEAP.date.setValue('[ut=commercebegin]',LEAP.formatdate(new Date(), 1)); 
	LEAP.date.setValue('[ut=constraintbegin]',LEAP.formatdate(new Date(), 1));
	var beginDate = DateConvert.DateCompare_year(LEAP.date.getValue('[ut=regisdate]'),LEAP.formatdate(new Date(), 1));
	if(beginDate==0){
	LEAP.select.setValue('[ut=traffic_violation]', '1'); 
	}
	        LEAP.select.addItem('[ut=carbelongzone_city]','440100','广州市');
			LEAP.select.addItem('[ut=carbelongzone_city]','440200','韶关市');
			LEAP.select.addItem('[ut=carbelongzone_city]','440300','深圳市');
			LEAP.select.addItem('[ut=carbelongzone_city]','440400','珠海市');
			LEAP.select.addItem('[ut=carbelongzone_city]','440500','汕头市');
			LEAP.select.addItem('[ut=carbelongzone_city]','440600','佛山市');
			LEAP.select.addItem('[ut=carbelongzone_city]','440700','江门市');
			LEAP.select.addItem('[ut=carbelongzone_city]','440800','湛江市');
			LEAP.select.addItem('[ut=carbelongzone_city]','440900','茂名市');
			LEAP.select.addItem('[ut=carbelongzone_city]','441200','肇庆市');
			LEAP.select.addItem('[ut=carbelongzone_city]','441300','惠州市');
			LEAP.select.addItem('[ut=carbelongzone_city]','441400','梅州市');
			LEAP.select.addItem('[ut=carbelongzone_city]','441500','汕尾市');
			LEAP.select.addItem('[ut=carbelongzone_city]','441600','河源市');
			LEAP.select.addItem('[ut=carbelongzone_city]','441700','阳江市');
			LEAP.select.addItem('[ut=carbelongzone_city]','441800','清远市');
			LEAP.select.addItem('[ut=carbelongzone_city]','441900','东莞市');
			LEAP.select.addItem('[ut=carbelongzone_city]','442000','中山市');
			LEAP.select.addItem('[ut=carbelongzone_city]','445100','潮州市');
			LEAP.select.addItem('[ut=carbelongzone_city]','445200','揭阳市');
			LEAP.select.addItem('[ut=carbelongzone_city]','445300','云浮市');
			
	LEAP.select.setValue('[ut=carbelongzone]', 440000);
	LEAP.select.setValue('[ut=carbelongzone_city]', 440300);
	LEAP.select.setValue('[ut=Driving_Licence]', 0);
	LEAP.select.setValue('[ut=cardtype_]', 0);
			
}
function initzonedata(carbelongzone_city){
	LEAP.select.setValue('[ut=carbelongzone]', '440000');
	getbelongzone_city(carbelongzone_city,LEAP.select.getValue('[ut=carbelongzone]'));
	LEAP.select.setValue('[ut=carbelongzone_city]', 440300);
}
function getpolicymember(father,strID,strPrminum,strTime,strUno,strInsurancePolicyID,strFlag,strPremiumName)
{	
	if(father==null)
	{
		father=new Object();
		father.javaClass ="com.longrise.LEAP.FISP.BO.carinsbaseinsurancepolicymember";	
	}
		father.id=strID;
		father.premium=strPrminum;
		father.premiumyime=strTime;
		father.userid=strUno;
		father.insurancepolicyid=strInsurancePolicyID;
		father.flag=strFlag;
		father.premiumname=strPremiumName;
		return father;
}

function setprintViewModel(obj,far)
{
	 getpageinfoValue(far);
	if(obj==null)
	{
		obj=new Object();
	}
	//设置Obj属性
	if(text!=null){
	obj.cardtype_=text.cardtype_;
	obj.sex=text.sex;
	obj.Driving_Licence=text.Driving_Licence;
	obj.cartype=text.cartype;//far.cinfo.curData.cartype;
	obj.carbelong=text.belongselect;
	obj.usepurpose=text.usetypeselect;
	obj.companyselect=text.companyselect;
	obj.isrenewalselect=text.isrenewalselect;
	}
	obj.byperson=far.perinfo.curData.byperson;
	obj.cardnumber=far.perinfo.curData.cardnumber;
	obj.born_registertime=far.perinfo.curData.born_registertime;
	obj.contacttel=far.perinfo.curData.contacttel;
	obj.contactaddress=far.perinfo.curData.contactaddress;
	obj.other_name=far.perinfo.curData.other_name;
	obj.brandtype=far.cinfo.curData.brandtype;
	obj.number_plate_no=far.perinfo.curData.number_plate_no;
	obj.engine_num=far.perinfo.curData.engine_num;
	obj.Chassis_Number=far.perinfo.curData.Chassis_Number;
	obj.seatpewtonnage=far.cinfo.curData.seatpewtonnage;
	obj.rating_date=far.cinfo.curData.regisdate;
	if(obj.cartype=='货车'){
	obj.deadweight=far.cinfo.curData.deadweight;
	}
	obj.newcarprice=far.cinfo.curData.newcarprice;
	obj.commercebegin=far.cinfo.curData.commercebegin;
	obj.constraintbegin=far.cinfo.curData.constraintbegin;
	obj.carimage=far.perinfo.curData.carimage;
	if(inscontrol_!=null){
		if(inscontrol_.keys!=null){
			if(inscontrol_.keys.C101.InsInfo!=null){
				if(inscontrol_.keys.C101.InsInfo.creator!=''){
	//机动车损失险
	obj.labR1c1=inscontrol_.keys.C101.InsInfo.suminsured;
	obj.labR1c2=changeNum(inscontrol_.keys.C101.InsInfo.premium,2) ;
	obj.labR1c3=inscontrol_.keys.C101.InsInfo.discountrate;
	obj.labR1c4=changeNum(obj.labR1c2*obj.labR1c3,2);
				}
	}
	if(inscontrol_.keys.C102.InsInfo!=null){
		if(inscontrol_.keys.C102.InsInfo.creator!=''){
	//机动车第三者责任险
	obj.labR2c1=inscontrol_.keys.C102.InsInfo.suminsured;
	obj.labR2c2=changeNum(inscontrol_.keys.C102.InsInfo.premium,2) ;
	obj.labR2c3=inscontrol_.keys.C102.InsInfo.discountrate;
	obj.labR2c4=changeNum(obj.labR2c2*obj.labR2c3,2);
		}
	}
	if(inscontrol_.keys.C104.InsInfo!=null){
		if(inscontrol_.keys.C104.InsInfo.creator!=''){
	//车上人员责任险司机座位
	obj.labR3c1=inscontrol_.keys.C104.InsInfo.suminsured;
	obj.labR3c2=changeNum(inscontrol_.keys.C104.InsInfo.premium,2) ;
	obj.labR3c3=inscontrol_.keys.C104.InsInfo.discountrate;
	obj.labR3c4=changeNum(obj.labR3c2*obj.labR3c3,2);
		}
	}
	if(inscontrol_.keys.C105.InsInfo!=null){
		if(inscontrol_.keys.C105.InsInfo.creator!=''){
	//车上人员责任险乘客座位
	obj.labR4c1=inscontrol_.keys.C105.InsInfo.suminsured;
	obj.labR4c2=changeNum(inscontrol_.keys.C105.InsInfo.premium,2) ;
	obj.labR4c3=inscontrol_.keys.C105.InsInfo.discountrate;
	obj.labR4c4=changeNum(obj.labR4c2*obj.labR4c3,2);
		}
	}
	if(inscontrol_.keys.C103.InsInfo!=null){
		if(inscontrol_.keys.C103.InsInfo.creator!=''){
	//全车盗抢损失险
	obj.labR5c1=inscontrol_.keys.C103.InsInfo.suminsured;
	obj.labR5c2=changeNum(inscontrol_.keys.C103.InsInfo.premium,2) ;
	obj.labR5c3=inscontrol_.keys.C103.InsInfo.discountrate;
	obj.labR5c4=changeNum(obj.labR5c2*obj.labR5c3,2);
		}
	}
	if(inscontrol_.keys.C201.InsInfo!=null){
		if(inscontrol_.keys.C201.InsInfo.creator!=''){
	//5
	//玻璃单独破碎险
	obj.labR6c1=inscontrol_.keys.C201.InsInfo.suminsured;
	obj.labR6c2=changeNum(inscontrol_.keys.C201.InsInfo.premium ,2);
	obj.labR6c3=inscontrol_.keys.C201.InsInfo.discountrate;
	obj.labR6c4=changeNum(obj.labR6c2*obj.labR6c3,2);
		}
	}
	if(inscontrol_.keys.C202.InsInfo!=null){
		if(inscontrol_.keys.C202.InsInfo.creator!=''){
	//车身划痕损失险
	obj.labR7c1=inscontrol_.keys.C202.InsInfo.suminsured;
	obj.labR7c2=changeNum(inscontrol_.keys.C202.InsInfo.premium,2) ;
	obj.labR7c3=inscontrol_.keys.C202.InsInfo.discountrate;
	obj.labR7c4=changeNum(obj.labR7c2*obj.labR7c3,2);
		}
	}
	if(inscontrol_.keys.C203.InsInfo!=null){
		if(inscontrol_.keys.C203.InsInfo.creator!=''){
	//自燃损失险
	obj.labR8c1=inscontrol_.keys.C203.InsInfo.suminsured;
	obj.labR8c2=changeNum(inscontrol_.keys.C203.InsInfo.premium,2) ;
	obj.labR8c3=inscontrol_.keys.C203.InsInfo.discountrate;
	obj.labR8c4=changeNum(obj.labR8c2*obj.labR8c3,2);
		}
	}
	if(inscontrol_.keys.C204.InsInfo!=null){
		if(inscontrol_.keys.C204.InsInfo.creator!=''){
	//车身不计免陪
	obj.labR9c1=inscontrol_.keys.C204.InsInfo.suminsured;
	obj.labR9c2=changeNum(inscontrol_.keys.C204.InsInfo.premium,2) ;
	obj.labR9c3=inscontrol_.keys.C204.InsInfo.discountrate;
	obj.labR9c4=changeNum(obj.labR9c2*obj.labR9c3,2);
		}
	}
	if(inscontrol_.keys.C205.InsInfo!=null){
		if(inscontrol_.keys.C205.InsInfo.creator!=''){
	//三者责任不计免陪
	obj.labR10c1=inscontrol_.keys.C205.InsInfo.suminsured;
	obj.labR10c2=changeNum(inscontrol_.keys.C205.InsInfo.premium ,2);
	obj.labR10c3=inscontrol_.keys.C205.InsInfo.discountrate;
	obj.labR10c4=changeNum(obj.labR10c2*obj.labR10c3,2);
		}
	}
	if(inscontrol_.keys.C207.InsInfo!=null){
		if(inscontrol_.keys.C207.InsInfo.creator!=''){
	//10
	//车上责任不计免陪
	obj.labR11c1=inscontrol_.keys.C207.InsInfo.suminsured;
	obj.labR11c2=changeNum(inscontrol_.keys.C207.InsInfo.premium,2) ;
	obj.labR11c3=inscontrol_.keys.C207.InsInfo.discountrate;
	obj.labR11c4=changeNum(obj.labR11c2*obj.labR11c3,2);
		}
	}
	if(inscontrol_.keys.C211.InsInfo!=null){
		if(inscontrol_.keys.C211.InsInfo.creator!=''){
	//盗抢险不计免陪
	obj.labR12c1=inscontrol_.keys.C211.InsInfo.suminsured;
	obj.labR12c2=changeNum(inscontrol_.keys.C211.InsInfo.premium,2) ;
	obj.labR12c3=inscontrol_.keys.C211.InsInfo.discountrate;
	obj.labR12c4=changeNum(obj.labR12c2*obj.labR12c3,2);
		}
	}
//	if(inscontrol_.keys.C102.InsInfo!=null){
	//附加险不计免费
//	obj.labR13c1=inscontrol_.keys.C208.InsInfo.suminsured;
//	obj.labR13c2=inscontrol_.keys.C208.InsInfo.premium ;
//	obj.labR13c3=inscontrol_.keys.C208.InsInfo.discountrate;
//	obj.labR13c4=obj.labR13c2*obj.labR13c3;
//		}
    obj.payconstraint="无";
	if(inscontrol_.keys.C901.InsInfo!=null){
		if(inscontrol_.keys.C901.InsInfo.creator!=''){
	//交强险
	if(inscontrol_.keys.C901.InsInfo.premium!=0){
	obj.payconstraint="有";
	}
	obj.labR14c1=inscontrol_.keys.C901.InsInfo.suminsured;
	obj.labR14c2=inscontrol_.keys.C901.InsInfo.premium ;
	obj.labR14c3=inscontrol_.keys.C901.InsInfo.discountrate;
	obj.labR14c4=obj.labR14c2*obj.labR14c3;
	}
	}
	if(inscontrol_.keys.C902.InsInfo!=null){
		if(inscontrol_.keys.C902.InsInfo.creator!=''){
	//车船税
	obj.labR15c1=inscontrol_.keys.C902.InsInfo.suminsured;
	obj.labR15c2=inscontrol_.keys.C902.InsInfo.premium ;
	obj.labR15c3=inscontrol_.keys.C902.InsInfo.discountrate;
	obj.labR15c4=obj.labR15c2*obj.labR15c3;
	
	//15
		}
	}
	if(canselectsc!=null){
	//客户应交保费
	obj.labR16c1=changeNum(canselectsc.discountcommercepreiumrate,2);
	obj.labR16c2=canselectsc.discountconstraintpreiumrate;
	obj.labR16c3=canselectsc.cartax;
	obj.labR16c4=changeNum(canselectsc.disall,2);
	}
	}
	}
//	inscontrol_=text=null;
	return obj;
}