function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&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&&i 12) { // check month range alert("Month value must be between 1 and 12!"); eval("document.all." + e + ".value = ''"); eval("document.all." + e + ".focus()"); return false; } if (day < 1 || day > 31) { alert("Day value must be between 1 and 31!"); eval("document.all." + e + ".value = ''"); eval("document.all." + e + ".focus()"); return false; } if ((month==4 || month==6 || month==9 || month==11) && day==31) { alert("Month "+month+" doesn't have 31 days!") eval("document.all." + e + ".value = ''"); eval("document.all." + e + ".focus()"); return false } if (month == 2) { // check for february 29th var isleap = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)); if (day>29 || (day==29 && !isleap)) { alert("February " + year + " doesn't have " + day + " days!"); eval("document.all." + e + ".value = ''"); eval("document.all." + e + ".focus()"); return false; } } return true; // date is valid } function isValidTime(strTime, e) { alert("BBB"); // Checks if time is in HH:MM:SS format. // The seconds are optional. var timePat = /^(\d{1,2}):(\d{2})(:(\d{2}))?$/; var matchArray = strTime.match(timePat); if (matchArray == null) { alert("Invalid time format!"); eval("document.all." + e + ".value = ''"); eval("document.all." + e + ".focus()"); return false; } hour = matchArray[1]; minute = matchArray[2]; second = matchArray[4]; if (second=="") { second = null; } if (hour < 0 || hour > 23) { alert("Hour value must be between 0 and 23!"); eval("document.all." + e + ".value = ''"); eval("document.all." + e + ".focus()"); return false; } if (minute <0 || minute > 59) { alert("Minute value must be between 0 and 59!"); eval("document.all." + e + ".value = ''"); eval("document.all." + e + ".focus()"); return false; } if (second != null && (second < 0 || second > 59)) { return false; } return true; } var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday") var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December") function getthedate(){ var mydate=new Date() var year=mydate.getYear() if (year < 1000) year+=1900 var day=mydate.getDay() var month=mydate.getMonth() var daym=mydate.getDate() if (daym<10) daym="0"+daym var hours=mydate.getHours() var minutes=mydate.getMinutes() var seconds=mydate.getSeconds() var dn="AM" if (hours>=12) dn="PM" if (hours>12){ hours=hours-12 } if (hours==0) hours=12 if (minutes<=9) minutes="0"+minutes if (seconds<=9) seconds="0"+seconds //change font size here var cdate=""+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+" "+hours+":"+minutes+":"+seconds+" "+dn+" " + "  " if (document.all) document.all.clock.innerHTML=cdate else if (document.getElementById) document.getElementById("clock").innerHTML=cdate else document.write(cdate) } if (!document.all&&!document.getElementById) getthedate() function timeDisplay(){ if (document.all||document.getElementById) setInterval("getthedate()",1000) } function newWindow(href) { window.open(href,"","toolbar=no,status=no,menubar=no,resizable=no,scrollbars=yes,width=700,height=600"); } function newWindow2(href) { window.open(href,"","toolbar=no,status=no,menubar=no,resizable=no,scrollbars=no,width=500,height=200"); } function newWindow3(href) { window.open(href,"","toolbar=no,status=no,menubar=no,resizable=no,scrollbars=no,width=10,height=10"); } function newWindow4(href) { window.open(href,"","toolbar=no,status=no,menubar=no,resizable=yes,scrollbars=yes,width=800,height=600"); } function newWindow5(href) { window.open(href,"","toolbar=no,status=no,menubar=no,resizable=yes,scrollbars=yes,width=750,height=600"); } function newWindow6(href) { window.open(href,"","toolbar=no,status=no,menubar=no,resizable=no,scrollbars=no,width=250,height=300"); } function newWindow7(href) { window.open(href,"","toolbar=no,status=no,menubar=no,resizable=no,scrollbars=no,width=600,height=450"); } function myVoid() { ; } // do nothing function deletePhoto(ID, Photo, location) { if (confirm('Are you sure that you want to delete this object?')) { document.location.href = location; } } function deleteRecord(location) { if (confirm('Are you sure that you want to delete this record?')) { document.location.href = location; } }