function CheckOut() { with (document.FormCheckout){ if (fullnamez.value==""){ alert(""); fullnamez.focus(); return false; } if (emailz.value==""){ alert(""); emailz.focus(); return false; } else{ if(emailz.value.indexOf("@")<0||emailz.value.indexOf(".")<0){ alert(""); emailz.focus(); return false; } } if (dienthoaiz.value==""){ alert(""); dienthoaiz.focus(); return false; } if (thanhphoz.value==""){ alert(""); thanhphoz.focus(); return false; } if (diachiz.value==""){ alert(""); diachiz.focus(); return false; } if (codez.value==""){ alert(""); codez.focus(); return false; } if (quocgiaz.value==""){ alert(""); quocgiaz.focus(); return false; } if(matinh.value=="") { alert(""); matinh.focus(); return false; } if(delivery_date.value=="") { alert(""); bdelivery_date.focus(); return false; } if (fullnamezz.value==""){ alert("!"); fullnamezz.focus(); return false; } if (emailzz.value==""){ alert(""); emailzz.focus(); return false; } else{ if(emailzz.value.indexOf("@")<0||emailzz.value.indexOf(".")<0){ alert(""); emailzz.focus(); return false; } } if (dienthoaizz.value==""){ alert(""); dienthoaizz.focus(); return false; } if (diachizz.value==""){ alert(""); diachiz.focus(); return false; } } return true; } function CheckRegister() { with (document.FormRegister){ if (usern.value==""){ alert("Tài khoản không chính xác"); usern.focus(); return false; } if (matkhau.value==""){ alert("Mật khẩu không chính xác"); matkhau.focus(); return false; } if (matkhau.value!=matkhau2.value){ alert("Mật khẩu nhập lại không chính xác"); matkhau2.focus(); return false; } if (fullnamez.value==""){ alert(""); fullnamez.focus(); return false; } if (emailz.value==""){ alert(""); emailz.focus(); return false; }else{ if(emailz.value.indexOf("@")<0||emailz.value.indexOf(".")<0){ alert(""); emailz.focus(); return false; } } if (dienthoaiz.value==""){ alert(""); dienthoaiz.focus(); return false; } if (thanhphoz.value==""){ alert(""); thanhphoz.focus(); return false; } if (diachiz.value==""){ alert(""); diachiz.focus(); return false; } if (codez.value==""){ alert(""); codez.focus(); return false; } if (quocgiaz.value==""){ alert(""); quocgiaz.focus(); return false; } } return true; } function CheckUpdate() { with (document.FormUpdate){ if (usern.value==""){ alert("Tài khoản không chính xác"); usern.focus(); return false; } if (fullnamez.value==""){ alert(""); fullnamez.focus(); return false; } if (emailz.value==""){ alert(""); emailz.focus(); return false; }else{ if(emailz.value.indexOf("@")<0||emailz.value.indexOf(".")<0){ alert(""); emailz.focus(); return false; } } if (dienthoaiz.value==""){ alert(""); dienthoaiz.focus(); return false; } if (thanhphoz.value==""){ alert(""); thanhphoz.focus(); return false; } if (diachiz.value==""){ alert(""); diachiz.focus(); return false; } if (codez.value==""){ alert(""); codez.focus(); return false; } if (quocgiaz.value==""){ alert(""); quocgiaz.focus(); return false; } } return true; } function HDDB() { with (document.FormCheckout){ if (fullnamez.value==""){ alert(" !"); fullnamez.focus(); return false; } if (emailz.value==""){ alert(""); emailz.focus(); return false; }else{ if(emailz.value.indexOf("@")<0||emailz.value.indexOf(".")<0){ alert(""); emailz.focus(); return false; } } if (dienthoaiz.value==""){ alert(""); dienthoaiz.focus(); return false; } if (diachiz.value==""){ alert(""); diachiz.focus(); return false; } if (motasp.value==""){ alert(" !"); motasp.focus(); return false; } if (noiguiden.value==""){ alert(""); noiguiden.focus(); return false; } } return true; } function CheckNhanQC() { with (document.FormQC) { if (emailnhanqc.value=="") { alert("Địa chỉ email"); emailnhanqc.focus(); return false; } else { if(emailnhanqc.value.indexOf("@")<0||emailnhanqc.value.indexOf(".")<0) { alert("Địa chỉ email"); emailnhanqc.focus(); return false; } } } return true; } function ChangePassword(){ with (document.FormName1) { if (oldp.value==""){ alert("Bạn phải nhập mật khẩu cũ"); oldp.focus(); return false; } if (newp.value==""){ alert("Bạn phải nhập mật khẩu mới"); newp.focus(); return false; } if (newp.value!=newpp.value){ alert("Nhập lại mật khẩu mới"); newpp.focus(); return false; } } return true; } function CheckSubBS(){ with (document.SubBS) { if (subbs_value.value==""){ alert("Bạn phải nhập giá trị cần tìm vào"); subbs_value.focus(); return false; } } return true; } function CheckSubBSX(){ with (document.SubBSX) { if (subbs_value.value==""){ alert("Bạn phải nhập giá trị cần tìm vào"); subbs_value.focus(); return false; } } return true; } function doimautd(var_ts){ if (var_ts=='table1'){ document.BSmainForm.bstheloai.value='id'; //document.all.hreftthu1.style.color="#000000"; document.all.hreftthu2.style.color="#0168B3"; document.all.hreftthu3.style.color="#0168B3"; document.all.hreftthu4.style.color="#0168B3"; //document.all.tdthu11.background="images/s_1.gif"; //document.all.tdthu12.background="images/s_2.gif"; //document.all.tdthu13.background="images/s_3.gif"; document.all.tdthu21.background="images/s_4.gif"; document.all.tdthu22.background="images/s_5.gif"; document.all.tdthu23.background="images/s_6.gif"; document.all.tdthu31.background="images/s_4.gif"; document.all.tdthu32.background="images/s_5.gif"; document.all.tdthu33.background="images/s_6.gif"; document.all.tdthu41.background="images/s_4.gif"; document.all.tdthu42.background="images/s_5.gif"; document.all.tdthu43.background="images/s_6.gif"; document.all.hreftthu5.style.color="#0168B3"; document.all.tdthu51.background="images/s_4.gif"; document.all.tdthu52.background="images/s_5.gif"; document.all.tdthu53.background="images/s_6.gif"; } if (var_ts=='table2'){ document.BSmainForm.bstheloai.value='dmsp'; //document.all.hreftthu1.style.color="#0168B3"; document.all.hreftthu2.style.color="#000000"; document.all.hreftthu3.style.color="#0168B3"; document.all.hreftthu4.style.color="#0168B3"; //document.all.tdthu11.background="images/s_4.gif"; //document.all.tdthu12.background="images/s_5.gif"; //document.all.tdthu13.background="images/s_6.gif"; document.all.tdthu21.background="images/s_1.gif"; document.all.tdthu22.background="images/s_2.gif"; document.all.tdthu23.background="images/s_3.gif"; document.all.tdthu31.background="images/s_4.gif"; document.all.tdthu32.background="images/s_5.gif"; document.all.tdthu33.background="images/s_6.gif"; document.all.tdthu41.background="images/s_4.gif"; document.all.tdthu42.background="images/s_5.gif"; document.all.tdthu43.background="images/s_6.gif"; document.all.hreftthu5.style.color="#0168B3"; document.all.tdthu51.background="images/s_4.gif"; document.all.tdthu52.background="images/s_5.gif"; document.all.tdthu53.background="images/s_6.gif"; } if (var_ts=='table3'){ document.BSmainForm.bstheloai.value='npp'; //document.all.hreftthu1.style.color="#0168B3"; document.all.hreftthu2.style.color="#0168B3"; document.all.hreftthu3.style.color="#000000"; document.all.hreftthu4.style.color="#0168B3"; //document.all.tdthu11.background="images/s_4.gif"; //document.all.tdthu12.background="images/s_5.gif"; //document.all.tdthu13.background="images/s_6.gif"; document.all.tdthu21.background="images/s_4.gif"; document.all.tdthu22.background="images/s_5.gif"; document.all.tdthu23.background="images/s_6.gif"; document.all.tdthu31.background="images/s_1.gif"; document.all.tdthu32.background="images/s_2.gif"; document.all.tdthu33.background="images/s_3.gif"; document.all.tdthu41.background="images/s_4.gif"; document.all.tdthu42.background="images/s_5.gif"; document.all.tdthu43.background="images/s_6.gif"; document.all.hreftthu5.style.color="#0168B3"; document.all.tdthu51.background="images/s_4.gif"; document.all.tdthu52.background="images/s_5.gif"; document.all.tdthu53.background="images/s_6.gif"; } if (var_ts=='table4'){ document.BSmainForm.bstheloai.value='nsx'; //document.all.hreftthu1.style.color="#0168B3"; document.all.hreftthu2.style.color="#0168B3"; document.all.hreftthu3.style.color="#0168B3"; document.all.hreftthu4.style.color="#000000"; //document.all.tdthu11.background="images/s_4.gif"; //document.all.tdthu12.background="images/s_5.gif"; //document.all.tdthu13.background="images/s_6.gif"; document.all.tdthu21.background="images/s_4.gif"; document.all.tdthu22.background="images/s_5.gif"; document.all.tdthu23.background="images/s_6.gif"; document.all.tdthu31.background="images/s_4.gif"; document.all.tdthu32.background="images/s_5.gif"; document.all.tdthu33.background="images/s_6.gif"; document.all.tdthu41.background="images/s_1.gif"; document.all.tdthu42.background="images/s_2.gif"; document.all.tdthu43.background="images/s_3.gif"; document.all.hreftthu5.style.color="#0168B3"; document.all.tdthu51.background="images/s_4.gif"; document.all.tdthu52.background="images/s_5.gif"; document.all.tdthu53.background="images/s_6.gif"; } if (var_ts=='table5'){ document.BSmainForm.bstheloai.value='t_nmh'; //document.all.hreftthu1.style.color="#0168B3"; document.all.hreftthu2.style.color="#0168B3"; document.all.hreftthu3.style.color="#0168B3"; document.all.hreftthu4.style.color="#0168B3"; //document.all.tdthu11.background="images/s_4.gif"; //document.all.tdthu12.background="images/s_5.gif"; //document.all.tdthu13.background="images/s_6.gif"; document.all.tdthu21.background="images/s_4.gif"; document.all.tdthu22.background="images/s_5.gif"; document.all.tdthu23.background="images/s_6.gif"; document.all.tdthu31.background="images/s_4.gif"; document.all.tdthu32.background="images/s_5.gif"; document.all.tdthu33.background="images/s_6.gif"; document.all.tdthu41.background="images/s_4.gif"; document.all.tdthu42.background="images/s_5.gif"; document.all.tdthu43.background="images/s_6.gif"; document.all.hreftthu5.style.color="#000000"; document.all.tdthu51.background="images/s_1.gif"; document.all.tdthu52.background="images/s_2.gif"; document.all.tdthu53.background="images/s_3.gif"; } return false; }