1function waitMsg(){ 2 var wait_message ='<table cellpadding="5" cellspacing="1" border="0" width="100%" height="400" style=""><tr><td align="center" valign="bottom" width="100%" height="200"><img src="images/loadingAnimation.gif" alt="Please wait while loading hotel rooms" title="Please wait while loading hotel rooms" /> </td></tr><tr> <td align="center" valign="top" height="200">Please wait....</td></tr></table >'; 3 $('#fullHeader').hide(); 4 $('#halfHeader').show(); 5 $('#right_column_inner').html(wait_message); 6 //document.getElementById('table_ajax_loader').style.left = screen.width/2-65 + 'px'; 7 //document.getElementById('table_ajax_loader').style.top = (screen.height/2)-100 + 'px'; 8} 9function otwaitMsg(){ 10 var wait_message ='<table cellpadding="5" cellspacing="1" border="0" width="100%" height="400" style=""><tr><td align="center" valign="bottom" width="100%" height="200"><img src="images/loadingAnimation.gif" alt="Please wait while loading hotel rooms" title="Please wait while loading hotel rooms" /> </td></tr><tr> <td align="center" valign="top" height="200">Please wait....</td></tr></table >'; 11 12 $('#gift_div').html(wait_message); 13 //document.getElementById('table_ajax_loader').style.left = screen.width/2-65 + 'px'; 14 //document.getElementById('table_ajax_loader').style.top = (screen.height/2)-100 + 'px'; 15} 16function ajaxFormSubmit(paramlist_form){ 17 if(paramlist_form=="bookform") 18 { 19 if($('#nights').val()==0){ 20 alert("Please Select Nights!!!"); 21 return false; 22 } 23 if($('#rooms').val()==0){ 24 alert("Please Select Rooms!!!"); 25 return false; 26 } 27 for(var i=1;i<=$('#rooms').val();i++){ 28 if($('#adults'+i).val()==0){ 29 alert("Please Select Adults For Room "+i+" !!!"); 30 return false; 31 } 32 } 33 34 } 35 var params = $('#'+paramlist_form).serialize(); 36 37 $("#heading").html("<h1>Book Online</h1>"); 38 //$("#right_column").show(); 39 40 openPagePost(params); 41 openPagePost(params); 42} 43 44function openPagePost(params){ 45 waitMsg(); 46 $.ajax({ 47 url: 'hotel.php', 48 type: 'POST', 49 data: params, 50 dataType: 'html', 51 //timeout: 1000, 52 error: function(){ 53 alert('Error Loading Page.'); 54 }, 55 success: function(data){ 56 $('#right_column_inner').html(data); 57 // 58 } 59 }); 60 /*$.post("hotel.php", { sendToValue: params }, 61 function(data){ 62 $('#right_column').html(data); 63 }, "html"); 64 new Ajax.Request('index_ajax.php', { 65 method: 'post', 66 parameters:params, 67 onSuccess: function(html) { 68 $('mainContents').innerHTML = html.responseText; 69 $('popupContents').style.display = 'none'; 70 $('popupContents').innerHTML = ''; 71 init_calendars(); 72 }, 73 onFailure: function() { alert('something go wrong !'); } 74 }); 75 */ 76} 77 78 79function ajaxRooms(params){ 80 waitMsg(); 81 var arr = params.split('&'); 82 var narr = arr[1].split('='); 83 84 $.ajax({ 85 url: 'hotel.php', 86 type: 'GET', 87 data: params, 88 dataType: 'html', 89 //timeout: 1000, 90 error: function(){ 91 alert('Error Loading Page.'); 92 }, 93 success: function(data){ 94 $('#right_column_inner').html(data); 95 96 } 97 }); 98 99 /* 100 $.get("hotel.php?"+params, { }, 101 function(data){ 102 $('#right_column').html(data); 103 }, "html"); 104 */ 105} 106function ajaxOrderPage(params){ 107 108 waitMsg(); 109 $.ajax({ 110 url: 'order.php', 111 type: 'GET', 112 data: params, 113 dataType: 'html', 114 //timeout: 1000, 115 error: function(){ 116 alert('Error Loading Page.'); 117 }, 118 success: function(data){ 119 $('#right_column_inner').html(data); 120 121 } 122 }); 123} 124function ajaxSupplimentPage(paramlist_form,url){ 125 if(paramlist_form != ""){ 126 var params = $('#'+paramlist_form).serialize(); 127 }else{ 128 var params = ""; 129 } 130 //alert(params); 131 waitMsg(); 132 $.ajax({ 133 url: "hotel.php", 134 type: 'POST', 135 data: params, 136 dataType: 'html', 137 //timeout: 1000, 138 error: function(){ 139 alert('Error Loading Page.'); 140 }, 141 success: function(data){ 142 143 $('#right_column_inner').html(data); 144 145 } 146 }); 147} 148function ajaxCarOrderPage(paramlist_form){ 149 if(paramlist_form != ""){ 150 var params = $('#'+paramlist_form).serialize(); 151 }else{ 152 var params = ""; 153 } 154 //alert(params); 155 waitMsg(); 156 $.ajax({ 157 url: 'order.php', 158 type: 'POST', 159 data: params, 160 dataType: 'html', 161 //timeout: 1000, 162 error: function(){ 163 alert('Error Loading Page.'); 164 }, 165 success: function(data){ 166 167 $('#right_column_inner').html(data); 168 169 } 170 }); 171} 172function ajaxTransferPage(paramlist_form){ 173 if(paramlist_form != ""){ 174 var params = $('#'+paramlist_form).serialize(); 175 }else{ 176 var params = ""; 177 } 178 //alert(params); 179 waitMsg(); 180 $.ajax({ 181 url: 'transfer.php', 182 type: 'POST', 183 data: params, 184 dataType: 'html', 185 //timeout: 1000, 186 error: function(){ 187 alert('Error Loading Page.'); 188 }, 189 success: function(data){ 190 191 $('#right_column_inner').html(data); 192 193 } 194 }); 195} 196 197function ajaxPayPage(params){ 198 //alert(params); 199 waitMsg(); 200 $.ajax({ 201 url: 'pay.php', 202 type: 'get', 203 data: params, 204 dataType: 'html', 205 //timeout: 1000, 206 error: function(){ 207 alert('Error Loading Page.'); 208 }, 209 success: function(data){ 210 $('#right_column_inner').html(data); 211 212 } 213 }); 214} 215function ajaxBookPageFrm(paramlist_form){ 216 if(paramlist_form != ""){ 217 var params = $('#'+paramlist_form).serialize(); 218 }else{ 219 var params = ""; 220 } 221 waitMsg(); 222 $.ajax({ 223 url: 'book.php', 224 type: 'get', 225 data: params, 226 dataType: 'html', 227 //timeout: 1000, 228 error: function(){ 229 alert('Error Loading Page.'); 230 }, 231 success: function(data){ 232 $('#right_column_inner').html(data); 233 234 } 235 }); 236} 237function ajaxBookPage(params){ 238 //alert(params); 239 waitMsg(); 240 $.ajax({ 241 url: 'book.php', 242 type: 'get', 243 data: params, 244 dataType: 'html', 245 //timeout: 1000, 246 error: function(){ 247 alert('Error Loading Page.'); 248 }, 249 success: function(data){ 250 $('#right_column_inner').html(data); 251 252 } 253 }); 254} 255function ajaxNewsletter(){ 256 257 var wait_message ='<table cellpadding="5" cellspacing="1" border="0" style=""><tr><td align="center" valign="bottom" ><img src="images/loadingAnimation.gif" alt="Please wait while loading hotel rooms" title="Please wait while loading hotel rooms" width="150px"/> </td></tr></table >'; 258 var params = $('#erform').serialize(); 259 //$("#error_email").hide(); 260 261 if(document.newsLetter.ns_email.value=='' || document.newsLetter.ns_email.value=='Your Email'){ 262 // $("#error_email").show(); 263 document.newsLetter.ns_email.focus(); 264 return false;
265 } 266 /*if(document.newsLetter.fullname.value=='' || document.newsLetter.fullname.value=='Your Name'){ 267 $("#error_fullname").show(); 268 document.newsLetter.fullname.focus(); 269 return false; 270 }*/ 271 $('#ns2').html(wait_message); 272 $.ajax({ 273 url: 'newsletter.php', 274 type: 'POST', 275 data: params, 276 dataType: 'html', 277 //timeout: 1000, 278 error: function(){ 279 alert('Error Loading Page.'); 280 }, 281 success: function(data){ 282 $('#ns2').html(data); 283 } 284 }); 285 286 /* 287 $.get("hotel.php?"+params, { }, 288 function(data){ 289 $('#mainBody').html(data); 290 }, "html"); 291 */ 292} 293function ajaxcarFormSubmit(paramlist_form){ 294 295 var params = $('#'+paramlist_form).serialize(); 296 297 298 299 opencarPagePost(params); 300 //opencarPagePost(params); 301} 302 303function opencarPagePost(params){ 304 305 waitMsg(); 306 $.ajax({ 307 url: 'cars.php', 308 type: 'POST', 309 data: params, 310 dataType: 'html', 311 //timeout: 1000, 312 error: function(){ 313 alert('Error Loading Page.'); 314 }, 315 success: function(data){ 316 $('#right_column_inner').html(data); 317 } 318 }); 319} 320 321 322function tr_showdep() 323{ 324 if($("#tr_depok:checked").val()=='Y'){ 325 $("#tr_departure").show(); 326 }else{ 327 $("#tr_departure").hide(); 328 } 329} 330function orderVoucher(paramlist_form){ 331 if(paramlist_form != ""){ 332 var params = $('#'+paramlist_form).serialize(); 333 }else{ 334 var params = ""; 335 } 336 otwaitMsg(); 337 $.ajax({ 338 url: 'submitGiftVoucher.php', 339 type: 'POST', 340 data: params, 341 dataType: 'html', 342 //timeout: 1000, 343 error: function(){ 344 alert('Error Loading Page.'); 345 }, 346 success: function(data){ 347 $('#gift_div').html(data); 348 } 349 }); 350} 351function enableForm(){ 352 //alert("Hiiiiii"); 353 document.getElementById('formTransfer').submitForm.value="Yes"; 354 ajaxTransferPage('formTransfer'); 355 return false; 356} 357 358$( document ).ready(function() { 359$( "#long-button" ).click(function() { 360var frm = document.getElementById("payfrm"); 361/*$('td').each(function() { 362 if(!$(this).hasClass("list1_error") ){ 363 $( "#long-button").unbind(); 364 } 365});*/ 366$( "#long-button").unbind(); 367frm.submit(); 368}); 369});
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.