1validateNeedMore = function(){ 2var name = document.getElementById("name").value; 3var email = document.getElementById("email").value; 4var mobile = document.getElementById("mobile").value; 5name = name.replace(/^[\s]+/,'').replace(/[\s]+$/,'').replace(/[\s]{2,}/,' '); 6email = email.replace(/^[\s]+/,'').replace(/[\s]+$/,'').replace(/[\s]{2,}/,' '); 7mobile = mobile.replace(/^[\s]+/,'').replace(/[\s]+$/,'').replace(/[\s]{2,}/,' '); 8var additionalQry = document.getElementById("additionalQry").value; 9document.getElementById("nameError").style.display="none"; 10document.getElementById("emailError").style.display="none"; 11document.getElementById("mobileError").style.display="none"; 12//document.getElementById("travelDateError").style.display="none"; 13if(name==null || name=="" || name=="null" ){ 14document.getElementById("nameError").style.display="inline"; 15document.getElementById('nameError').innerHTML = 'Please enter your name'; 16return false; 17} 18if (echeck(email) == false ){ 19document.getElementById("emailError").style.display="inline"; 20document.getElementById('emailError').innerHTML = 'Please enter your valid email id'; 21return false; 22 23} 24if( mobile== null || mobile == "" || mobile == "null"){ 25document.getElementById("mobileError").style.display="inline"; 26document.getElementById('mobileError').innerHTML = 'Please enter your phone number'; 27return false; 28} 29 30 31sendNeedMoreInfo(name,email,mobile,additionalQry); 32 33 34 35} 36var xmlHttp; 37function sendNeedMoreInfo(name,email,mobile,additionalQry) 38{ 39 40document.getElementById("sendLink").innerHTML = ""+ 41 "<div id='search_flights' class='search_flights' >"+ 42 "<div id='green_outside_inner' class='green_button_outside' >"+ 43 "<div id='green_inside_inner' class='green_button_inside' style='margin-right:2px;'>"+ 44 "<span class='white_text_bold'>SENDING</span>"+ 45 "</div>"+ 46 "</div>"+ 47 "</div>"+ 48 ""; 49 50xmlHttp=GetXmlHttpObject(); 51document.getElementById("sendInfoStatusBar2").style.display = "inline"; 52 document.getElementById("sendInfoStatusBar2").innerHTML='<img src="/images/travelmargProgress.gif" style="vertical-align:middle;height:25px;"> Sending information to TravelMarg...<br/> '; 53 xmlHttp.open("POST","/CustomerNeedMore",true); // the servlet name 54 xmlHttp.onreadystatechange = getPage_toLoad_afterSend; 55 xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); 56 xmlHttp.send("name="+name+"&email="+email+"&mobile="+mobile+"&additionalQry="+additionalQry); //Posting parameters to Servlet 57 58} 59function getPage_toLoad_afterSend() 60{ 61if (xmlHttp.readyState == 4) { 62 if(xmlHttp.status == 200) { 63 //alert("entered ServerResponse4"); 64 document.getElementById("cruiseRedTab").style.display = "none"; 65 document.getElementById("sendInfoStatusBar2").style.display = "none"; 66 document.getElementById("message").style.display = "inline"; 67 document.getElementById('message').innerHTML=xmlHttp.responseText; //Update the HTML Form element 68 69 document.getElementById("sendLink").innerHTML = "<a name='send' id='send' onMouseOver = 'rollover('green_outside_inner', 'dark_green_button_outside', 'green_inside_inner', 'dark_green_button_inside');' onMouseOut = 'rollover('green_outside_inner', 'green_button_outside', 'green_inside_inner', 'green_button_inside');' onClick='return ValidateForm();'>"+ 70 "<div id='search_flights' class='search_flights' >"+ 71 "<div id='green_outside_inner' class='green_button_outside' >"+ 72 73 "<div id='green_inside_inner' class='green_button_inside' style='margin-right:2px;' >"+ 74 "<span class='white_text_bold'>SEND</span>"+ 75 "</div>"+ 76 "</div>"+ 77 "</div>"+ 78 "</a>"; 79 } 80 else { 81 //alert("Error during AJAX call. Please try again"); 82 83 } 84 } 85 86} 87 88 89function closepoppedDiv(toCloseDiv,backGrndDiv){ 90 window.parent.document.getElementById(toCloseDiv).style.display="none"; 91 window.parent.document.getElementById(backGrndDiv).style.display="none"; 92}
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.