// header.js var global_domain_name = ""; document.domain = global_domain_name; /// adds 'trim' as a function for MSIE if(typeof String.prototype.trim !== 'function') { String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ''); } } function accountConfirmationForm() { document.forms["accountConfirmation"].submit(); } function EXAMPLE(url) { var W = (screen.width - 750)/2; var H = (screen.height - 600)/2; window.open(url,"transaction_details","width=750,height=450,left="+W+",top="+H+",status=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,directories=no,menubar=no"); } function transactionDetailsToo(url) { var W = (screen.width - 750)/2; var H = 25; window.open(url,"transaction_details","width=750,height=550,left="+W+",top="+H+",status=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,directories=no,menubar=no"); } function openLightboxWindow(filename) { var url = "/link_authorizations/" + filename; Lightview.show({ href: url, rel: 'iframe', title : '' , options: { width: 800, height: 600, overlayClose: false, closeButton: false}}); } function openSUPPORT(q) { var url = "/link_support/index.support?q=" + q + "&popup=NO"; Lightview.show({ href: url, rel: 'iframe', title : '' , options: { width: 800, height: 550, overlayClose: false, closeButton: false}}); } function openBONUS(hash) { ////alert(hash); var url = "/details_bonus.b!?hash=" + hash; Lightview.show({ href: url, rel: 'iframe', title : '' , options: { width: 800, height: 550, overlayClose: false, closeButton: false}}); } function openSupportTopic(t) { var url = "/link_support/index.support?t=" + t + "&popupIFRAME=NO"; Lightview.show({ href: url, rel: 'iframe', title : '' , options: { width: 800, height: 550, overlayClose: false, closeButton: false}}); } function transactionDetails(url) { var url = "/" + url; Lightview.show({ href: url, rel: 'iframe', title : '' , options: { width: 800, height: 550, overlayClose: false, closeButton: false}}); } function bonusDetails(hash) { var url = "/details_bonus.b!?id=" + hash; Lightview.show({ href: url, rel: 'iframe', title : '' , options: { width: 800, height: 550, overlayClose: false, closeButton: false}}); } function launchAVT() { var url = "https:///e-terminal/e-terminal.b!"; //alert('url: '+url); Lightview.show({ href: url, rel: 'iframe', title : '' , options: { width: 850, height: 800, overlayClose: false, closeButton: false}}); } function popupIFRAME(set_url,set_height,set_width) { alert('set_height: '+set_height); alert('set_width: '+set_width); alert('set_url: '+set_url); if(set_height.value == 'undefined') set_height = 100; if(set_width.value == 'undefined') set_width = 200; //alert('set_height: '+set_height); Lightview.show({ href: set_url, rel: 'iframe', title : '' , options: { width: set_width, height: set_height, overlayClose: false, closeButton: false}}); } function openACCOUNT(url) { var W = (screen.width - 750)/2; var H = (screen.height - 600)/2; window.open(url,"account_details","width=750,height=450,left="+W+",top="+H+",status=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,directories=no,menubar=no"); } function transactionSUMMARY(url) { var W = (screen.width - 400)/2; var H = (screen.height - 400)/2; window.open(url,"transaction_details","width=400,height=250,left="+W+",top=0,status=no,location=no,resizable=no,scrollbars=no,toolbar=no,directories=no,menubar=no"); } function openAUTHORIZATION(file) { var W = (screen.width - 575)/2; var H = (screen.height - 500)/2; window.open("/?file="+file,"authorization_details","width=550,height=370,left="+W+",top="+H+",status=no,location=no,resizable=yes,scrollbars=no,toolbar=no,directories=no,menubar=no"); } function openMP3(file) { var W = (screen.width - 400)/2; var H = (screen.height - 400)/2; window.open("/"+file,"authorization_details","width=350,height=75,left=0,top=0,status=no,location=no,resizable=no,scrollbars=no,toolbar=no,directories=no,menubar=no"); } function closeLightview() { parent.Lightview.hide(); } function closeIFRAME() { parent.Lightview.hide(); } function refreshParent() { opener.location.reload(true); } function redirectParent(url) { opener.location.replace(url); window.close(); } function pendingReminder(url) { var W = (screen.width - 750)/2; var H = (screen.height - 700)/2; window.open(url,"pending_reminder","width=750,height=600,left="+W+",top="+H+",status=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,directories=no,menubar=no"); } function redirectTo(url) { window.top.location.href=url; } function jump(uri) { location.replace(uri); } function closejump(uri) { top.window.location.replace(uri); } function viewPaymeReceiptButtonHTML(account_emailaddress) { top.window.location.replace("/" + account_emailaddress); } function submitpage() { document.forms["thispage"].submit(); } function clickclear(thisfield, defaulttext) { if(thisfield.value == defaulttext) { thisfield.value = ""; } } function clickrecall(thisfield, defaulttext) { if(thisfield.value == "") { thisfield.value = defaulttext; } } function displayAjaxLoader(id_to_update) { var ajaxLoadingImage = "'; ?>"; document.getElementById(id_to_update).innerHTML = ajaxLoadingImage; } //ajaxLoader('HIDE',id_ajax_loader,null); function ajaxLoader(ajaxAction,id_ajax_loader_to_update,loader_style) { ////alert(ajaxAction); // //alert("ajaxAction: " + ajaxAction); // //alert("loader_style: " + loader_style); //alert("ajaxLOADER(): id_ajax_loader_to_update: " + id_ajax_loader_to_update); //callingCountryPulldownAjaxLoader if(id_ajax_loader_to_update.length > 0) { if(ajaxAction == 'HIDE') { ////alert("id_ajax_loader_to_update: " + id_ajax_loader_to_update); if(typeof(id_ajax_loader_to_update) != 'undefined'){ if(document.getElementById(id_ajax_loader_to_update)!= null){ document.getElementById(id_ajax_loader_to_update).innerHTML = ""; } } } else if(ajaxAction == 'BIG') { var ajaxLoadingImage = "'; ?>"; if(typeof(id_ajax_loader_to_update) != 'undefined'){ if(document.getElementById(id_ajax_loader_to_update)!= null){ document.getElementById(id_ajax_loader_to_update).innerHTML = ajaxLoadingImage; } } } else if( (ajaxAction == 'GREEN') && (loader_style == "status_icon") ) { document.images[id_ajax_loader_to_update].src = ""; } else if( (ajaxAction == 'ERROR') && (loader_style == "status_icon") ) { document.images[id_ajax_loader_to_update].src = "" } else if( (ajaxAction == 'SHOW') || (!ajaxAction) ) { if( (!loader_style) || (loader_style == 'innerHTML') ) { //alert("id_ajax_loader_to_update"+id_ajax_loader_to_update); //alert("innerHTML: "+ document.getElementById(id_ajax_loader_to_update).innerHTML); document.getElementById(id_ajax_loader_to_update).innerHTML = "'; ?>"; if(typeof(id_ajax_loader_to_update) != 'undefined'){ if(document.getElementById(id_ajax_loader_to_update)!= null){ document.getElementById(id_ajax_loader_to_update).innerHTML = ""; } } } else if( (loader_style == "status_icon") || (loader_style == "imagesSRC") ) { document.images[id_ajax_loader_to_update].src = ""; } } } } //goAJAX('setCallingCountry',country_iso3.value,'displayCallingCountryDetails','callingCountryPulldownAjaxLoader'); //goAJAX('displayTimezoneDetails','1','displayTimezoneDetails','displayAjaxLoaderTimezone'); //goAJAX('setTimezone',timezoneid.value,'displayTimezoneDetails','displayAjaxLoaderTimezonePulldown'); //goAJAX('setCallingCode','1','callingCode','displayAjaxLoaderCallingCountry'); function goAJAX(submit_variable,submit_value,id_to_update,id_ajax_loader,loader_style) { //alert("ajax: submit_variable: " + submit_variable); //alert("ajax: submit_value: " + submit_value); //alert(1); if (submit_value.length == 0) { document.getElementById(id_to_update).innerHTML = ""; return; } ////alert(2); if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } ////alert(3); if(id_ajax_loader) { /// submit_variable == 'autoSetCallingCountry' if(submit_variable == 'autoSetCallingCountry') { ajaxLoader('SHOW','displayAjaxLoadAutoSetCallingCountry',null); } else if(submit_variable == 'autoSetCallingCode') { /// do not display any loading icons. } else { // STANDARD/DEFAULT //alert(99); ajaxLoader('SHOW',id_ajax_loader,loader_style); } } ////alert(5); ////alert('ajax is being trigered'); //alert('submit_variable: ' + submit_variable); xmlhttp.onreadystatechange = function() { //alert('xmlhttp.readyState: ' + xmlhttp.readyState); //alert('xmlhttp.status: ' + xmlhttp.status); //alert('xmlhttp.responseText.length: ' + xmlhttp.responseText.length); if ( (xmlhttp.readyState == 4) && (xmlhttp.status == 200) && (xmlhttp.responseText.length > 0) ) { /// submit_variable == "displayTimezoneDetails" if( (submit_variable == "displayTimezoneDetails") && (id_to_update == "displayTimezoneDetails") ) { document.getElementById('displayTimezoneDetails').innerHTML = xmlhttp.responseText; ajaxLoader('HIDE',id_ajax_loader,null); return; } /// submit_variable == 'setTimezone' if(submit_variable == 'setTimezone') { document.getElementById('displayTimezoneDetails').innerHTML = xmlhttp.responseText; ajaxLoader('HIDE',id_ajax_loader,null); goAJAX('autoSetCallingCountry','1','displayCallingCountryDetails','displayAjaxLoaderCallingCountry'); return; } //### IT's SOMEWHERE IN HERE : /// submit_variable == 'autoSetCallingCountry' if(submit_variable == 'autoSetCallingCountry') { document.getElementById('displayCallingCountryDetails').innerHTML = xmlhttp.responseText; goAJAX('setCallingCode','1','callingCode','displayAjaxLoaderCallingCountry'); return; } /// submit_variable == 'displayCallingCountryDetails' if(submit_variable == 'displayCallingCountryDetails') { document.getElementById('displayCallingCountryDetails').innerHTML = xmlhttp.responseText; ajaxLoader('HIDE',id_ajax_loader,null); return; } /// submit_variable == 'setCallingCountry' if(submit_variable == 'setCallingCountry') { //alert(1); document.getElementById('displayCallingCountryDetails').innerHTML = xmlhttp.responseText; //ajaxLoader('HIDE',id_ajax_loader,null); //alert('xmlhttp.responseText: ' + xmlhttp.responseText); goAJAX('setCallingCode','1','callingCode','displayAjaxLoaderCallingCountry'); //alert(3); ////alert('id_ajax_loader: ' + id_ajax_loader); return; } /// submit_variable == 'setCallingCode' if(submit_variable == 'setCallingCode') { //alert(2); ////alert('xmlhttp.responseText: ' + xmlhttp.responseText); if( (typeof document.getElementById('callingCode') != 'undefined') && (document.getElementById('callingCode') != null) ) { document.getElementById('callingCode').innerHTML = xmlhttp.responseText; } if( (typeof document.getElementById('callingCodeExample') != 'undefined') && (document.getElementById('callingCodeExample') != null) ) { document.getElementById('callingCodeExample').innerHTML = xmlhttp.responseText; } //ajaxLoader('HIDE',id_ajax_loader,null); return; } //alert('submit_variable: '+submit_variable); //alert('avt_action: '+avt_action); if( (submit_variable == 'avt_action') ) { document.getElementById(id_to_update).innerHTML = xmlhttp.responseText; ajaxLoader('HIDE',id_ajax_loader,null); return; } } } xmlhttp.open("GET","/goAJAX.b!?" + submit_variable + "=" + submit_value,true); xmlhttp.send(); } function commonAJAX(properties_string) { //alert(2); if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } //alert('submit_variable: ' + submit_variable); xmlhttp.onreadystatechange = function() { //alert('xmlhttp.readyState: ' + xmlhttp.readyState); //alert('xmlhttp.status: ' + xmlhttp.status); //alert('xmlhttp.responseText.length: ' + xmlhttp.responseText.length); if ( (xmlhttp.readyState == 4) && (xmlhttp.status == 200) && (xmlhttp.responseText.length > 0) ) { //alert("xmlhttp.responseText: "+xmlhttp.responseText); //return xmlhttp.responseText; //alert("xmlhttp.responseText: "+xmlhttp.responseText); //window.script_update = xmlhttp.responseText; //alert("0. window.script_update: "+window.script_update); } } xmlhttp.open("GET","/goAJAX.b!?" + properties_string,true); xmlhttp.send(); } function goAJAX2(submit_variable,submit_value,id_to_update,id_ajax_loader,loader_style) { ////alert("ajax: submit_variable: " + submit_variable); ////alert("ajax: submit_value: " + submit_value); ////alert(1); if (submit_value.length == 0) { document.getElementById(id_to_update).innerHTML = ""; return; } ////alert(2); if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } ////alert(3); if(id_ajax_loader) { /// submit_variable == 'autoSetCallingCountry' if(submit_variable == 'autoSetCallingCountry') { ajaxLoader('SHOW','displayAjaxLoadAutoSetCallingCountry',null); } else if(submit_variable == 'autoSetCallingCode') { /// do not display any loading icons. } else { // STANDARD/DEFAULT ajaxLoader('SHOW',id_ajax_loader,loader_style); } } ////alert(5); ////alert('ajax is being trigered'); xmlhttp.onreadystatechange = function() { ////alert('xmlhttp.readyState: ' + xmlhttp.readyState); if ( (xmlhttp.readyState == 4) && (xmlhttp.status == 200) && (xmlhttp.responseText.length > 0) ) { //alert(1); /// submit_variable == "displayTimezoneDetails" if( (submit_variable == "displayTimezoneDetails") && (id_to_update == "displayTimezoneDetails") ) { document.getElementById('displayTimezoneDetails').innerHTML = xmlhttp.responseText; ajaxLoader('HIDE',id_ajax_loader,null); return; } /// submit_variable == 'setTimezone' if(submit_variable == 'setTimezone') { document.getElementById('displayTimezoneDetails').innerHTML = xmlhttp.responseText; goAJAX2('autoSetCallingCountry','1','displayCallingCountryDetails','displayAjaxLoaderCallingCountry'); ajaxLoader('HIDE',id_ajax_loader,null); return; } /// submit_variable == 'autoSetCallingCountry' if(submit_variable == 'autoSetCallingCountry') { document.getElementById('displayCallingCountryDetails').innerHTML = xmlhttp.responseText; goAJAX2('setCallingCode','1','callingCode','displayAjaxLoaderCallingCountry'); return; } /// submit_variable == 'displayCallingCountryDetails' if(submit_variable == 'displayCallingCountryDetails') { document.getElementById('displayCallingCountryDetails').innerHTML = xmlhttp.responseText; ajaxLoader('HIDE',id_ajax_loader,null); return; } /// submit_variable == 'setCallingCountry' if(submit_variable == 'setCallingCountry') { document.getElementById('displayCallingCountryDetails').innerHTML = xmlhttp.responseText; goAJAX2('setCallingCode','1','callingCode','displayAjaxLoaderCallingCountry'); ajaxLoader('HIDE',id_ajax_loader,null); return; } /// submit_variable == 'setCallingCode' if(submit_variable == 'setCallingCode') { document.getElementById('callingCode').innerHTML = xmlhttp.responseText; document.getElementById('callingCodeExample').innerHTML = xmlhttp.responseText; ajaxLoader('HIDE',id_ajax_loader,null); return; } } } xmlhttp.open("GET","/goAJAX2.b!?" + submit_variable + "=" + submit_value,true); xmlhttp.send(); } function avtScriptAJAX(avt_action,avt_id_to_update) { //alert('avtScriptAJAX()'); //alert('avt_action: '+avt_action); //alert('avt_id_to_update: '+avt_id_to_update); ajaxLoader('SHOW','loading',null); if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } //alert('submit_variable: ' + submit_variable); xmlhttp.onreadystatechange = function() { //alert('xmlhttp.readyState: ' + xmlhttp.readyState); //alert('xmlhttp.status: ' + xmlhttp.status); //alert('xmlhttp.responseText.length: ' + xmlhttp.responseText.length); if ( (xmlhttp.readyState == 4) && (xmlhttp.status == 200) && (xmlhttp.responseText.length > 0) ) { //alert("xmlhttp.responseText: "+xmlhttp.responseText); //return xmlhttp.responseText; //window.script_update = xmlhttp.responseText; //alert("0. window.script_update: "+window.script_update); //alert("xmlhttp.responseText: "+xmlhttp.responseText); //if(xmlhttp.responseText != "") { document.getElementById(avt_id_to_update).innerHTML = xmlhttp.responseText; //} ajaxLoader('HIDE','loading',null); } } //xmlhttp.open("GET","https:///avt_ajax.gate?avt_action=" + avt_action + "&avt_id_to_update="+avt_id_to_update,true); xmlhttp.open("GET","/e-terminal/avt_ajax.php?avt_action=" + avt_action + "&avt_id_to_update="+avt_id_to_update,true); xmlhttp.send(); } function avtOperatorScriptAJAX(avt_action) { var avt_id_to_update = 'OPERATOR_SAYS'; ajaxLoader('SHOW','loading',null); if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttpOperator = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttpOperator = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttpOperator.onreadystatechange = function() { //alert('xmlhttp.readyState: ' + xmlhttp.readyState); //alert('xmlhttp.status: ' + xmlhttp.status); //alert('xmlhttp.responseText.length: ' + xmlhttp.responseText.length); if ( (xmlhttpOperator.readyState == 4) && (xmlhttpOperator.status == 200) && (xmlhttpOperator.responseText.length > 0) ) { //alert("xmlhttp.responseText: "+xmlhttp.responseText); //alert("xmlhttp.responseText: "+xmlhttp.responseText); document.getElementById(avt_id_to_update).innerHTML = xmlhttpOperator.responseText; ajaxLoader('HIDE','loading',null); } } xmlhttpOperator.open("GET","/e-terminal/avt_ajax.php?avt_action=" + avt_action + "&avt_id_to_update="+avt_id_to_update,true); xmlhttpOperator.send(); } function avtCustomerScriptAJAX(avt_action) { var avt_id_to_update = 'CUSTOMER_SAYS'; ajaxLoader('SHOW','loading',null); if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttpCustomer = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttpCustomer = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttpCustomer.onreadystatechange = function() { //alert('xmlhttp.readyState: ' + xmlhttp.readyState); //alert('xmlhttp.status: ' + xmlhttp.status); //alert('xmlhttp.responseText.length: ' + xmlhttp.responseText.length); if ( (xmlhttpCustomer.readyState == 4) && (xmlhttpCustomer.status == 200) && (xmlhttpCustomer.responseText.length > 0) ) { //alert("xmlhttp.responseText: "+xmlhttp.responseText); //alert("xmlhttp.responseText: "+xmlhttp.responseText); document.getElementById(avt_id_to_update).innerHTML = xmlhttpCustomer.responseText; ajaxLoader('HIDE','loading',null); } } xmlhttpCustomer.open("GET","/e-terminal/avt_ajax.php?avt_action=" + avt_action + "&avt_id_to_update="+avt_id_to_update,true); xmlhttpCustomer.send(); } function avtScriptSlideNumberResetAJAX() { var avt_id_to_update = ''; var avt_action = ''; if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttpCustomer = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttpCustomer = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttpCustomer.onreadystatechange = function() { //alert('xmlhttp.readyState: ' + xmlhttp.readyState); //alert('xmlhttp.status: ' + xmlhttp.status); //alert('xmlhttp.responseText.length: ' + xmlhttp.responseText.length); if ( (xmlhttpCustomer.readyState == 4) && (xmlhttpCustomer.status == 200) && (xmlhttpCustomer.responseText.length > 0) ) { } } xmlhttpCustomer.open("GET","/e-terminal/avt_ajax.php?avt_action=" + avt_action + "&avt_id_to_update="+avt_id_to_update,true); xmlhttpCustomer.send(); } function stepForward() { //avtScriptAJAX(avt_action='update',avt_id_to_update='CUSTOMER_SAYS'); //window.setTimeout(avtScriptAJAX(avt_action='continue',avt_id_to_update='OPERATOR_SAYS'),2000); //avtScriptAJAX(avt_action='update',avt_id_to_update='CUSTOMER_SAYS'); //avtScriptAJAX(avt_action='continue',avt_id_to_update='OPERATOR_SAYS'); avtOperatorScriptAJAX(avt_action='continue'); avtCustomerScriptAJAX(avt_action='update'); } function stepNOTOK() { // avtScriptAJAX(avt_action='NOTOK',avt_id_to_update='CUSTOMER_SAYS'); // window.setTimeout(avtScriptAJAX(avt_action='NOTOK',avt_id_to_update='OPERATOR_SAYS'),2000); // avtScriptAJAX(avt_action='NOTOK',avt_id_to_update='CUSTOMER_SAYS'); // avtScriptAJAX(avt_action='NOTOK',avt_id_to_update='OPERATOR_SAYS'); avtOperatorScriptAJAX(avt_action='NOTOK'); avtCustomerScriptAJAX(avt_action='NOTOK'); } function stepBack() { //avtScriptAJAX(avt_action='update',avt_id_to_update='CUSTOMER_SAYS'); //window.setTimeout(avtScriptAJAX(avt_action='back',avt_id_to_update='OPERATOR_SAYS'),2000); //avtScriptAJAX(avt_action='update',avt_id_to_update='CUSTOMER_SAYS'); //avtScriptAJAX(avt_action='back',avt_id_to_update='OPERATOR_SAYS'); avtOperatorScriptAJAX(avt_action='back'); avtCustomerScriptAJAX(avt_action='update'); } function doNothing() { /// do nothing } function avtSetSessionValues(field,action) { //alert('action: '+action); //alert('field.value: '+field.value); // axaj update to _SESSION['avt']['customer_emailaddress'] commonAJAX(action+'='+field.value); } function avtOperatorGotoSlide(slide_number) { //alert('slide_number: '+slide_number); //if(slide_number == undefined) var slide_number = 0; //alert('slide_number: '+slide_number); var avt_id_to_update = 'OPERATOR_SAYS'; ajaxLoader('SHOW','loading',null); if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttpOperator = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttpOperator = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttpOperator.onreadystatechange = function() { //alert('xmlhttp.readyState: ' + xmlhttp.readyState); //alert('xmlhttp.status: ' + xmlhttp.status); //alert('xmlhttp.responseText.length: ' + xmlhttp.responseText.length); if ( (xmlhttpOperator.readyState == 4) && (xmlhttpOperator.status == 200) && (xmlhttpOperator.responseText.length > 0) ) { //alert("xmlhttp.responseText: "+xmlhttp.responseText); //alert("xmlhttp.responseText: "+xmlhttp.responseText); document.getElementById(avt_id_to_update).innerHTML = xmlhttpOperator.responseText; ajaxLoader('HIDE','loading',null); } } xmlhttpOperator.open("GET","/e-terminal/avt_ajax.php?avt_action=goto_slide_number&avt_id_to_update="+avt_id_to_update + "&slide_number="+slide_number,true); xmlhttpOperator.send(); } function avtCustomerGotoSlide(slide_number) { //if(slide_number == undefined) var slide_number = 0; var avt_id_to_update = 'CUSTOMER_SAYS'; ajaxLoader('SHOW','loading',null); if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttpCustomer = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttpCustomer = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttpCustomer.onreadystatechange = function() { //alert('xmlhttp.readyState: ' + xmlhttp.readyState); //alert('xmlhttp.status: ' + xmlhttp.status); //alert('xmlhttp.responseText.length: ' + xmlhttp.responseText.length); if ( (xmlhttpCustomer.readyState == 4) && (xmlhttpCustomer.status == 200) && (xmlhttpCustomer.responseText.length > 0) ) { //alert("xmlhttp.responseText: "+xmlhttp.responseText); //alert("xmlhttp.responseText: "+xmlhttp.responseText); document.getElementById(avt_id_to_update).innerHTML = xmlhttpCustomer.responseText; ajaxLoader('HIDE','loading',null); } } xmlhttpOperator.open("GET","/e-terminal/avt_ajax.php?avt_action=goto_slide_number&avt_id_to_update="+avt_id_to_update + "&slide_number="+slide_number,true); xmlhttpCustomer.send(); }