 // Need to include scripts/ajax before including this JS file
  
 //var pageToReturnToAfterRequestingMoreInfo = "xelathanks.htm"; // Note: using a relative URL
 
 function getPageToReturnToAfterRequestingMoreInfo() {
    return "xelathanks.htm";
 }
 
 function shake_ram(shakes, vibration) {
    for(i = shakes; i > 0; i--) {
       parent.moveBy(i, vibration);
       parent.moveBy(-i, -vibration);       
    }
 }
 
 function navPage(url) {
    document.location = url;
 }

 function getEmailAddr(toUser) {
    // Prevent spiders from scraping addresses...
    var at = "@";         // var = ".@..@..@com
    var dm = "xelasound"; // var = ".@..@...@com
    var dt = ".";         // var = ".@..@....@a.com
    var cm = "com"        // var = ".@..@.....@b.com
    return toUser + at + dm + dt + cm;
 }

 // Utility function to mask the checkbox name sent to server
 // It seems as though the server doesn't read the check box param value,
 // So we simply rename it when it is not checked...
 function checkBoxHack(checkBox) {
    if(checkBox.checked) {
       if(checkBox.name.substr(0,1) == "_"); {
          checkBox.name = checkBox.name.substr(1,checkBox.name.length);
       }
    }
    else {
       if(checkBox.name.substr(0,1) != "_"); {
          checkBox.name = "_" + checkBox.name;
       }
    }
    return true;
 }

 function doAjaxFormRequest(theForm, callbackFunction) {
    var formLoader = new AjaxNet.FormLoader(theForm,callbackFunction);
 }