1function blockError(){return true;} 2window.onerror = blockError; 3 4function checkform() { 5 var theForm = document.hxparkform; 6 var arrival = theForm.ArrivalHourMin.value; 7 var depart = theForm.DepartureHourMin.value; 8 9 arrivalyear = theForm.my.options[theForm.my.selectedIndex].value.substr(3,4); 10 arrivalmonth = theForm.my.options[theForm.my.selectedIndex].value.substr(0,3); 11 12 if(arrivalmonth == "JAN") { 13 arrivalmonth = 1; 14 } 15 16 if(arrivalmonth == "FEB") { 17 arrivalmonth = 2; 18 } 19 20 if(arrivalmonth == "MAR") { 21 arrivalmonth = 3; 22 } 23 24 if(arrivalmonth == "APR") { 25 arrivalmonth = 4; 26 } 27 28 if(arrivalmonth == "MAY") { 29 arrivalmonth = 5; 30 } 31 32 if(arrivalmonth == "JUN") { 33 arrivalmonth = 6; 34 } 35 36 if(arrivalmonth == "JUL") { 37 arrivalmonth = 7; 38 } 39 40 if(arrivalmonth == "AUG") { 41 arrivalmonth = 8; 42 } 43 44 if(arrivalmonth == "SEP") { 45 arrivalmonth = 9; 46 } 47 48 if(arrivalmonth == "OCT") { 49 arrivalmonth = 10; 50 } 51 52 if(arrivalmonth == "NOV") { 53 arrivalmonth = 11; 54 } 55 56 if(arrivalmonth == "DEC") { 57 arrivalmonth = 12; 58 } 59 60 61 arrivalday = theForm.day.options[theForm.day.selectedIndex].value; 62 arrivalhour = theForm.ArrivalHourMin.options[theForm.ArrivalHourMin.selectedIndex].value.substr(0,2); 63 arrivalmin = theForm.ArrivalHourMin.options[theForm.ArrivalHourMin.selectedIndex].value.substr(3,2); 64 65 departyear = theForm.r_my.options[theForm.r_my.selectedIndex].value.substr(3,4); 66 departmonth = theForm.r_my.options[theForm.r_my.selectedIndex].value.substr(0,3); 67 68 69 if(departmonth == "JAN") { 70 departmonth = 1; 71 } 72 73 if(departmonth == "FEB") { 74 departmonth = 2; 75 } 76 77 if(departmonth == "MAR") { 78 departmonth = 3; 79 } 80 81 if(departmonth == "APR") { 82 departmonth = 4; 83 } 84 85 if(departmonth == "MAY") { 86 departmonth = 5; 87 } 88 89 if(departmonth == "JUN") { 90 departmonth = 6; 91 } 92 93 if(departmonth == "JUL") { 94 departmonth = 7; 95 } 96 97 if(departmonth == "AUG") { 98 departmonth = 8; 99 } 100 101 if(departmonth == "SEP") { 102 departmonth = 9; 103 } 104 105 if(departmonth == "OCT") { 106 departmonth = 10; 107 } 108 109 if(departmonth == "NOV") { 110 departmonth = 11; 111 } 112 113 if(departmonth == "DEC") { 114 departmonth = 12; 115 } 116 117 118 departday = theForm.r_day.options[theForm.r_day.selectedIndex].value; 119 120 departhour = theForm.DepartureHourMin.options[theForm.DepartureHourMin.selectedIndex].value.substr(0,2); 121 departmin = theForm.DepartureHourMin.options[theForm.DepartureHourMin.selectedIndex].value.substr(3,2); 122 123 arrivaldate = new Date(arrivalyear,arrivalmonth-1,arrivalday,arrivalhour,arrivalmin); 124 departdate = new Date(departyear,departmonth-1,departday, departhour, departmin); 125 theday = new Date(); 126 127 if ((arrival == 'select' || depart == 'select')){ 128 alert('Please enter your approximate arrival and departure time'); 129 theForm.ArrivalHourMin.focus(); 130 return false; 131 } 132 if (departdate < arrivaldate){ 133 alert('Your return date is before your arrival date'); 134 theForm.my.focus(); 135 return false; 136 } 137 if (arrivaldate < theday){ 138 alert('The time/date you have chosen has now passed - please re-select'); 139 theForm.r_my.focus(); 140 return false; 141 } 142 143 return true; 144} 145 146 147 148
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.