function CheckForm99() { if(document.form22.a.value=="") { alert("璇峰~鍐欐柦宸ユ棩鏈燂紒"); document.form22.a.focus(); return false; } if(document.form22.b.value=="") { alert("璇峰~鍐欏~鍐欐柦宸ヨ€咃紒"); document.form22.b.focus(); return false; } if(document.form22.f.value=="") { alert("璇峰~鍐欏~鍐欒溅涓诲鍚嶏紒"); document.form22.f.focus(); return false; } if(document.form22.g.value=="") { alert("璇峰~鍐欏~鍐欒仈绯荤數璇濓紒"); document.form22.g.focus(); return false; } if(document.form22.h.value=="") { alert("璇峰~鍐欏~鍐欒溅鐗屽彿锛?); document.form22.h.focus(); return false; } if(document.form22.l.value=="") { alert("璇峰~鍐欏~鍐欒溅鑶滃瀷鍙凤紒"); document.form22.l.focus(); return false; } if(document.form22.r.value=="") { alert("璇峰~鍐欏~鍐欐柦宸ュ簵鍚嶇О锛?); document.form22.r.focus(); return false; } if(document.form22.t.value=="") { alert("璇峰~鍐欏~鍐欏崟浣嶏紒"); document.form22.t.focus(); return false; } if(document.form22.u.value == "") { alert("璇峰~鍐欏~鍐欎汉锛?); document.form22.u.focus(); return false; } if(document.form22.v.value == "") { alert("璇峰~鍐欒仈绯荤數璇濓紒"); document.form22.v.focus(); return false; } if(document.form22.cp.value=="") { alert("璇峰~鍐欏~鍐欒川淇濈紪鍙凤紒"); document.form22.cp.focus(); return false; } } function checkformss(){ if(document.searchstore.keywords.value=="璇疯緭鍏ュ姞鐩熷簵鐐瑰嚮鏌ヨ"){ alert("璇疯緭鍏ュ姞鐩熷簵鐐瑰嚮鏌ヨ"); document.searchstore.keywords.focus(); return false; } return true; } function searchwarrantyss(){ if(document.searchwarranty.keywords.value=="璇疯緭鍏ワ細璐ㄤ繚缂栧彿/杞︾墝鍙?杞︽灦鍙?){ alert("璇疯緭鍏ワ細璐ㄤ繚缂栧彿/杞︾墝鍙?杞︽灦鍙?); document.searchwarranty.keywords.focus(); return false; } return true; } function checkform() { if (document.myform.xname.value==""){ alert("璇峰~鍐欒仈绯讳汉锛?); document.myform.xname.focus(); return false; } if (document.myform.tel.value==""){ alert("璇峰~鍐欒仈绯荤數璇濓紒"); document.myform.tel.focus(); return false; } if (document.myform.content.value==""){ alert("璇峰~鍐欑暀瑷€鐨勫唴瀹癸紒"); document.myform.content.focus(); return false; } return true; } function myformmu(){ if (document.myformm.guig.value==0){ alert("璇烽€夋嫨鍖呰瑙勬牸锛?); document.myformm.guig.focus(); return false; }} function checksearch122(){ if (document.myform.title.value==""){ alert("璇峰~鍐欑暀瑷€涓婚锛?); document.myform.title.focus(); return false; } if (document.myform.xname.value==""){ alert("璇峰~鍐欒仈绯讳汉锛?); document.myform.xname.focus(); return false; } if (document.myform.tel.value==""){ alert("璇峰~鍐欒仈绯荤數璇濓紒"); document.myform.tel.focus(); return false; } if (document.myform.email.value!=""){ if ((document.myform.email.value.indexOf("@") == -1) || (document.myform.email.value.indexOf(".") == -1)){ alert("閭锛圗-mail锛夛紒" ); document.myform.email.value=""; document.myform.email.focus(); return false; } } return true; } function checksearch1(){ if (document.myform.xname.value==""){ alert("璇峰~鍐欏鍚嶏紒"); document.myform.xname.focus(); return false; } if (document.myform.tel.value==""){ alert("璇峰~鍐欐墜鏈哄彿鐮侊紒"); document.myform.tel.focus(); return false; } if (document.myform.email.value!=""){ if (document.myform.email.value.indexOf("@") != -1){ alert("鎮ㄨ緭鍏ョ殑閭鍙兘鏈夎锛? ); document.myform.email.value=""; document.myform.email.focus(); return false; } } /** if (document.myform.je.value==""){ alert("璇峰~鍐欒捶娆鹃噾棰濓紒"); document.myform.je.focus(); return false; } if (document.myform.qx.value==""){ alert("璇峰~鍐欒捶娆炬湡闄愶紒"); document.myform.qx.focus(); return false; } if (document.myform.zxname.value==""){ alert("璇峰~鍐欏鍚嶏紒"); document.myform.zxname.focus(); return false; } */ return true; } function checksearch3(){ if (document.myform.xname.value==""){ alert("璇疯緭鍏ュ鍚嶏紒"); document.myform.xname.focus(); return false; } if (document.myform.tel.value==""){ alert("璇峰~鍐欐墜鏈猴紒"); document.myform.tel.focus(); return false; } if (document.myform.email.value==""){ alert("璇峰~鍐欓偖绠憋紒"); document.myform.email.focus(); return false; } return true; } function checksearch4(){ if (document.myform.kj_name.value==""){ alert("璇疯緭鍏ヨ仈绯讳汉濮撳悕锛?); document.myform.kj_name.focus(); return false; } if (document.myform.kj_bumen.value==""){ alert("璇疯緭鍏ユ墍鍦ㄩ儴闂紒"); document.myform.kj_bumen.focus(); return false; } if (document.myform.kj_tel.value==""){ alert("璇峰~鍐欏浐瀹氱數璇濓紒"); document.myform.kj_tel.focus(); return false; } if (document.myform.kj_mob.value==""){ alert("璇峰~鍐欐墜鏈猴紒"); document.myform.kj_mob.focus(); return false; } if (document.myform.kj_mail.value==""){ alert("璇峰~鍐欓偖绠憋紒"); document.myform.kj_mail.focus(); return false; } return true; } function checkuserinfo(){ if (document.myform.xname.value==""){ alert("璇疯緭鍏ュ鍚嶏紒"); document.myform.xname.focus(); return false; } if (document.myform.tel.value==""){ alert("璇疯緭鍏ヨ仈绯荤數璇濓紒"); document.myform.tel.focus(); return false; } if (document.myform.email.value==""){ alert("璇锋纭~鍐欑數瀛愰偖浠舵垨QQ锛?); document.myform.email.focus(); return false; } if (document.myform.address.value==""){ alert("璇疯緭鍏ヨ仈绯诲湴鍧€锛?); document.myform.address.focus(); return false; } return true; } function checksearch6(){ if(document.myform.useremail.value.length!=0) { if (document.myform.useremail.value.charAt(0)=="." || document.myform.useremail.value.charAt(0)=="@"|| document.myform.useremail.value.indexOf('@', 0) == -1 || document.myform.useremail.value.indexOf('.', 0) == -1 || document.myform.useremail.value.lastIndexOf("@")==document.myform.useremail.value.length-1 || document.myform.useremail.value.lastIndexOf(".")==document.myform.useremail.value.length-1) { alert("Email鍦板潃鏍煎紡涓嶆纭紒"); document.myform.useremail.focus(); return false; } } else { alert("Email涓嶈兘涓虹┖锛?); document.myform.useremail.focus(); return false; } if (document.myform.reuseremail.value==""){ alert("璇疯緭鍏ュ啀娆¤緭鍏ラ偖绠憋紒"); document.myform.reuseremail.focus(); return false; } if (document.myform.useremail.value!=document.myform.reuseremail.value){ alert("涓ゆ閭杈撳叆涓嶄竴鏍凤紒"); document.myform.reuseremail.focus(); return false; } return true; } function checksearch7(){ if (document.myform.keywords.value==""){ alert("璇疯緭鍏ユ煡璇㈠叧閿瘝锛?); document.myform.keywords.focus(); return false; } return true; } function All(e, itemName) { var aa = document.getElementsByName(itemName); for (var i=0; i0 && image.height>0){ flag=true; if(image.width/image.height>= iwidth/iheight){ if(image.width>iwidth){ ImgD.width=iwidth; ImgD.height=(image.height*iwidth)/image.width; }else{ ImgD.width=image.width; ImgD.height=image.height; } // ImgD.alt=image.width+"脳"+image.height; } else{ if(image.height>iheight){ ImgD.height=iheight; ImgD.width=(image.width*iheight)/image.height; }else{ ImgD.width=image.width; ImgD.height=image.height; } //ImgD.alt=image.width+"脳"+image.height; } } } //--> function fAddFavorite(sTitle,sURL){ if(document.all) window.external.AddFavorite(sURL,sTitle); else window.sidebar.addPanel(sTitle,sURL,""); } function SetHome(obj,vrl){ try{ obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl); } catch(e){ if(window.netscape) { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); } catch (e) { alert("姝ゆ搷浣滆娴忚鍣ㄦ嫆缁濓紒\n璇峰湪娴忚鍣ㄥ湴鍧€鏍忚緭鍏モ€渁bout:config鈥濆苟鍥炶溅\n鐒跺悗灏 [signed.applets.codebase_principal_support]鐨勫€艰缃负'true',鍙屽嚮鍗冲彲銆?); } var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch); prefs.setCharPref('browser.startup.homepage',vrl); } } } function test(n){ var obj=window.document.getElementById("menu_" + n); if(obj.style.display=="none"){ obj.style.display=""; }else{ obj.style.display="none"; } } function test2(n){ if(n==1){ var obj=window.document.getElementById("city_" + n); if(obj.style.display=="none"){ window.document.getElementById("city_2").style.display="none"; window.document.getElementById("city_3").style.display="none"; window.document.getElementById("city_4").style.display="none"; obj.style.display=""; }else{ obj.style.display="none"; } } else if(n==2){ var obj=window.document.getElementById("city_" + n); if(obj.style.display=="none"){ window.document.getElementById("city_1").style.display="none"; window.document.getElementById("city_3").style.display="none"; window.document.getElementById("city_4").style.display="none"; obj.style.display=""; }else{ obj.style.display="none"; } } else if(n==3){ var obj=window.document.getElementById("city_" + n); if(obj.style.display=="none"){ window.document.getElementById("city_1").style.display="none"; window.document.getElementById("city_2").style.display="none"; window.document.getElementById("city_4").style.display="none"; obj.style.display=""; }else{ obj.style.display="none"; } } else if(n==4){ var obj=window.document.getElementById("city_" + n); if(obj.style.display=="none"){ window.document.getElementById("city_1").style.display="none"; window.document.getElementById("city_2").style.display="none"; window.document.getElementById("city_3").style.display="none"; obj.style.display=""; }else{ obj.style.display="none"; } } } function tabit78(tabName,btnId,tabNumber) { for(i=0;i