function checkit(e,f) { if (e.which) Key = e.which; else Key = e.keyCode; if(Key==13) { if(f=="advconf") sub_form(); } } function sub_form() { error_msg = ""; destination = document.getElementById("co_newd").value; conference_name = document.getElementById("co_name").value; checkin = document.getElementById("csd").value+"/"+document.getElementById("csm").value+"/"+document.getElementById("csy").value; checkout = document.getElementById("ced").value+"/"+document.getElementById("cem").value+"/"+document.getElementById("cey").value; if(document.getElementById("csm").value<10) hcm = "0"+document.getElementById("csm").value; else hcm = document.getElementById("csm").value; if(document.getElementById("csd").value<10) hcd = "0"+document.getElementById("csd").value; else hcd = document.getElementById("csd").value; hcy = document.getElementById("csy").value; if(document.getElementById("cem").value<10) hom = "0"+document.getElementById("cem").value; else hom = document.getElementById("cem").value; if(document.getElementById("ced").value<10) hod = "0"+document.getElementById("ced").value; else hod = document.getElementById("ced").value; hoy = document.getElementById("cey").value; chi = hcy+hcm+hcd; cho = hoy+hom+hod; cy = eval("year_"+hcy+"["+hcm+"][1]"); if(hcd>cy) {error_msg += "