function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&icy) {error_msg += "Please Check your dates. "+calendar_months_array[document.getElementById("hcm").value-1]+" "+hcy+" have "+cy+" days \n";} co = eval("year_"+hoy+"["+hom+"][1]"); if(hod>co) {error_msg += "Please Check your dates. "+calendar_months_array[document.getElementById("hcom").value-1]+" "+hoy+" have "+co+" days \n";} if(chi>=cho && (hod!=0 || hcd!=0)) {error_msg +="Please Check your dates. Checkin must be prior to checkout\n";} if(hcd==0 || hcd=="") checkin=""; if(hod==0 || hod=="") checkout=""; if(destination=="" && hn=="") { error_msg += "Please Specify a Destination or a Hotel name\n";} if(destination.length < 3 && hn=="") { error_msg += "The Destination must have at least 3 characters\n";} if(error_msg!="") { alert(error_msg); return false;} else return true; } function sub_form1() { error_msg = ""; destination = document.getElementById("cod").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 += "Please Check your dates. "+calendar_months_array[document.getElementById("csm").value-1]+" "+hcy+" have "+cy+" days \n";} co = eval("year_"+hoy+"["+hom+"][1]");; if(hod>co) {error_msg += "Please Check your dates. "+calendar_months_array[document.getElementById("cem").value-1]+" "+hoy+" have "+co+" days \n";} if(chi>=cho && (hod!=0 || hcd!=0)) {error_msg +="Please Check your dates. Checkin must be prior to checkout\n";} if(hcd==0 || hcd=="") checkin=""; if(hod==0 || hod=="") checkout=""; persatt = document.getElementById("cnupers").value; if(destination=="") { error_msg += "Please Specify a Destination\n";} if(destination.length < 3) { error_msg += "The Destination must have at least 3 characters\n";} if(error_msg!="") { alert(error_msg); return false;} else return true; } //function check_form1() { // destination = document.getElementById("conference_destination").value; // if(destination == "") { alert("Please Specify a Destination"); } // else document.csearch.submit(); //}