// nav menu var timeout = 500; var closetimer = 0; var ddmenuitem = 0; // open hidden layer function mopen(id) { // cancel close timer mcancelclosetime(); // close old layer if (ddmenuitem) ddmenuitem.style.visibility = 'hidden'; // get new layer and show it ddmenuitem = document.getelementbyid(id); ddmenuitem.style.visibility = 'visible'; } // close showed layer function mclose() { if (ddmenuitem) ddmenuitem.style.visibility = 'hidden'; } // go close timer function mclosetime() { closetimer = window.settimeout(mclose, timeout); } // cancel close timer function mcancelclosetime() { if (closetimer) { window.cleartimeout(closetimer); closetimer = null; } } // close layer when click-out document.onclick = mclose; //��ʒ���ർ�� var menuids = ["suckertree1"] //enter id(s) of suckertree ul menus, separated by commas function buildsubmenus() { try { for (var i = 0; i < menuids.length; i++) { var ultags = document.getelementbyid(menuids[i]).getelementsbytagname("ul") for (var t = 0; t < ultags.length; t++) { ultags[t].parentnode.getelementsbytagname("a")[0].classname = "subfolderstyle" ultags[t].parentnode.onmouseover = function () { this.getelementsbytagname("ul")[0].style.display = "block" } ultags[t].parentnode.onmouseout = function () { this.getelementsbytagname("ul")[0].style.display = "none" } } } } catch (exxx) { } } if (window.addeventlistener) window.addeventlistener("load", buildsubmenus, false) else if (window.attachevent) window.attachevent("onload", buildsubmenus) function comment_check() { if (document.form1.name.value == '') { window.alert('����������^_^'); document.form1.name.focus(); return false; } if (document.form1.email.value.length > 0 && !document.form1.email.value.indexof('@') == -1 | document.form1.email.value.indexof('.') == -1) { window.alert('��������ȷ��email��ַ����:webmaster@hitux.com'); document.form1.email.focus(); return false; } if (document.form1.qq.value.search(/^([0-9]*)([.]?)([0-9]*)$/) == -1) { window.alert("qqֻ��������^_^"); document.form1.qq.focus(); return false; } if (document.form1.content.value == '') { window.alert('����������^_^'); document.form1.content.focus(); return false; } if (document.form1.verycode.value == '') { window.alert('��������֤��^_^'); document.form1.verycode.focus(); return false; } return true; } function order_check() { if (document.form1.ordercount.value == '') { window.alert('�����붩������^_^'); document.form1.ordercount.focus(); return false; } if (document.form1.ordercount.value.search(/^([0-9]*)([.]?)([0-9]*)$/) == -1) { window.alert("��������ֻ��������^_^"); document.form1.ordercount.focus(); return false; } if (document.form1.name.value == '') { window.alert('��������ϵ��^_^'); document.form1.name.focus(); return false; } if (document.form1.address.value == '') { window.alert('��������ϵ��ַ^_^'); document.form1.address.focus(); return false; } if (document.form1.tel.value == '') { window.alert('��������ϵ�绰^_^'); document.form1.tel.focus(); return false; } if (document.form1.email.value.length > 0 && !document.form1.email.value.indexof('@') == -1 | document.form1.email.value.indexof('.') == -1) { window.alert('��������ȷ��email��ַ����:webmaster@hitux.com'); document.form1.email.focus(); return false; } if (document.form1.qq.value.search(/^([0-9]*)([.]?)([0-9]*)$/) == -1) { window.alert("qqֻ��������^_^"); document.form1.qq.focus(); return false; } if (document.form1.verycode.value == '') { window.alert('��������֤��^_^'); document.form1.verycode.focus(); return false; } return true; }