//***********************************************************//
var root = window.location.href;
var faqsa = new Array();
var mess = new Array();
var compname = "BackUPMAX";
var about = '';
mess[0] = 'Registration is fast and easy. Just log onto our website <a href="/index.htm">here</a>  click on the "Sign Up!" link in the top menu bar, click the "Sign Up Now" link in the middle of the page,  and follow the simple instructions. This one time registration process takes just a few minutes to complete.';
mess[1] = 'Once you have installed and registered the BackUPMAX software, our system will automatically backup your files every day. Just leave your computer on and connected to the Internet and BackUPMAX will take care of the rest.';
mess[2] = '1) Right mouse click the BackUPMAX icon found in the bottom right corner of the screen, select Open Client<BR>2) Select Help from the top menu bar<BR>3) Click Print Disaster Recovery Information';
mess[3] = 'Your files can be located anywhere on your computer, a "mapped" drive, or an external usb drive attached to your computer.';
mess[4] = 'Our software will back up any files approved by our administration (site admin should modify this area for any non approved file types)';
mess[5] = 'Your files are protected via Blowfish encryption, the highest level of encryption security available today. Only YOU will possess the encryption code needed to unlock your files. Even BackUPMAX will not have the ability to unlock or access your files.';
mess[6] = 'In the event of a disaster, simply contact us for further instructions. ';
mess[7] = 'BackUPMAX will work on any Microsoft Windows workstation or laptop.';
mess[8] = 'Feel free to contact your salesperson if you have any questions, or contact us at <a href="mailto:sales@backupmax.com">sales@backupmax.com</a>';
mess[9] = 'Go to the Control Panel, Add/Remove Programs, select RemoteBackup.exe and click remove.';
mess[10] = 'No, BackUPMAX software will not affect performance. BackUPMAX software runs in the background and does not prevent you from using your computer or any application.';
mess[11] = 'BackUPMAX software will attempt to reconnect and continue the backup for a set amount of hours, otherwise BackUPMAX cancels the backup and performs the next scheduled backup.';
mess[12] = 'No, you can not get a virus from the server. Your files are stored exactly as they are sent to BackUPMAX and do not interact with any other files on BackUPMAX\'s server.';
mess[13] = 'The data is immediately stored off-site using an automated backup system. Only an internet connection is needed, eliminating the need for expensive backup equipment and media. Because the system is automated, no user interaction is required.';
/******************* DO NOT EDIT BEYOND THIS LINE*************************/

function Make_Container(id,cont){


   if(document.getElementById(id)){
      //cont = cont.replace("%kaymenu%",kaymenu);

      document.getElementById(id).innerHTML = cont;
   }
      if(id == "footer"){
      //var script = document.createElement('script');

//document.getElementsByTagName('head')[0].addChild(script);

            //

            window.setTimeout("wait()",500);
      }
      id= '';
      cont = '';
}

function wait(){
        var HDK = document.getElementById("hidkay");

        //alert(document.getElementById("kaymenu").innerHTML);
        if(document.getElementById("kaymenu") && HDK){
            document.getElementById("kaymenu").innerHTML = HDK.innerHTML;
            //document.getElementById("kaymenu").style.visibility = "visible";
            HDK.style.visibility = "hidden";
            HDK.style.display = "none";
            var TO = window.setTimeout("Add_This()",500);
            }
}

function Add_This(){
var AT;
  if(AT = document.getElementById("addthis_now")){
    AT.innerHTML = ("<a href=\"http://www.addthis.com/bookmark.php\" onmouseover=\"return addthis_open(this, '', '[URL]', '[TITLE]')\" onmouseout=\"addthis_close()\" onclick=\"return addthis_sendto()\"><img src=\"https://secure.addthis.com/button1-bm.gif\" width=\"125\" height=\"16\" border=\"0\" alt=\"\" />");
    AT.style.display = "block";
  }
}

function add_faqs(){
    if(typeof(window['root']) != "undefined"){


//about = (compname+" <br /><br />Founded  "+year_founded+"<br />"+st_address+"<br />"+city_st_zip+"<br />  Phone: "+phone+"<br /> Sales <a href='mailto:"+email+"'>"+email+"</a>");
}
}

function CleanHTML(cont,rep,rwi){
var pback = false;
    while(cont.indexOf(rep) > 0){
       cont = (cont.slice(0,cont.indexOf(rep)) + rwi + cont.slice((cont.indexOf(rep) + 6),cont.length));
    }
    pback = cont;
    add_faqs();
return pback;
}

function Synch_Plans(){
var ps;
   if( Plan_Array.length > 0){
      if(ps = document.getElementsByName("pln")){
        if( typeof(window['Plan_Desc']) == "undefined"){
            for(r=0;r<ps.length;r++){
                if(ps[r])
                    ps[r].innerHTML = Plan_Array[r][1];
            }
        }
        else{
        var out = '';
            for(r=0;r<Plan_Array.length;r++){
            var feats = '';
                //if(ps[r]){
                //alert(r);
                  if(Plan_Desc[r][2]){
                    for(p=0;p<Plan_Desc[r][2].length;p++){
                        feats += Plan_Desc[r][2][p]+'<br />';
                    }
                    }
                     out += '<div style="border: solid 1px #858585;"><p class="MsoNormal" style="margin-left: 15px; margin-top: 5px"><font style="font-size:14px;font-weight:bold;">'+Plan_Desc[r][0]+'</font>&nbsp;&nbsp;<font style="font-size:14px;">'+Plan_Desc[r][1]+'</font></p><p style="margin-left: 15px; margin-top: 5px"><font style="font-size: 9pt">'+feats+'</font></p><p style="margin-left: 15px; margin-top: 5px"></p><p style="margin-left: 15px; margin-top: 0px;">'+Plan_Array[r][1]+'</p></div>';

                //}
            }
            ps[0].innerHTML = out;
            out = '';
            feats = '';
        }
      }
   }
}

function Make_Plans(){
var ps;
var ot = '<select name="ddlPlan" id="ddlPlan">';
  if( Plan_Array.length > 0){
     if(ps = document.getElementsByName("pbox")){
        for(i in Plan_Array){
        var sel = (i === 0)? "selected":"" ;
            ot += '<option value="'+Plan_Array[i][1]+'" '+sel+'>'+Plan_Array[i][1]+'</option>';
        }
        ps[0].innerHTML = ot+'</select>';
     }
  }
}

function Make_CC(){
var ps;
var ot = '<select name="ddlCardType">';
  if( CCVs.length > 0){
     if(ps = document.getElementsByName("cbox")){
        for(i in CCVs){
        var sel = (i === 0)? "selected":"" ;
            ot += '<option value="'+CCVs[i]+'" '+sel+'>'+CCVs[i]+'</option>';
        }
        ps[0].innerHTML = ot+'</select>';
     }
  }
}



function Swap_Links(){
var ps;
    if(ps = document.getElementsByName("blink")){
        for(i=0;i<ps.length;i++){
            ps[i].href = signup_f;
        }
    }
}

function Swap_Images(img,loc){
   document.getElementById(loc).src = img;
}

function CreDiv(container,id,idd){
        if((!faqsa[id]) || faqsa[id] < 1){
        faqsa[id] = 1;
            var DV = document.createElement("div");
            container.appendChild(DV);
            DV.innerHTML = mess[id]+"<br /><br /><input type='button' onclick='this.parentNode.parentNode.removeChild(this.parentNode);faqsa["+id+"] = 0;' value='Close' style='background-color:#99CCCC;height:19px;font-size:12px;' />";
            DV.style.border = "solid 2px #33CC99";
            DV.style.outline = "solid 2px #FFFFFF";
            DV.style.backgroundColor = "#DFDFFF";
            DV.style.padding = "7px";
            DV.style.width = "750px"; //
            DV.style.height = "100%";
            DV.style.fontFamily="verdana";
            DV.style.fontSize="13px";
        }
  }

 function Pop_Up(t,e,m){
     if(e.type == "mouseover"){
        var cont = t.parentNode;
        var pu = document.createElement("div");
        cont.appendChild(pu);
        pu.style.position ="absolute";
        pu.style.width = "150px";
        pu.style.height = "100px";
        pu.style.top = e.clientY+"px";
        pu.style.left = e.clientX+"px";
        pu.style.border = "1px solid #000";
        pu.style.backroundColor = "#FFFFFF";
        pu.style.backgroundImage = "url(images/popupbg.jpg)";
        pu.style.backgroundRepeat = "no-repeat";
        pu.style.backgroundPosition = "center";
        pu.name="puno";
        pu.innerHTML = m;
     }
     if(e.type == "mouseout"){
         var cont = t.parentNode;
         var puo = cont.childNodes;
        for(cv=0;cv<puo.length;cv++){
            if(puo[cv].name == "puno")
                cont.removeChild(puo[cv]);
         }
     }

  }

  function Bread_crumb_link(){

  }


    function Validate(TF){
       if(TF.newgname.value != ""){
         if(TF.user_name.value != ""){
             if(TF.password.value != ""){
               if(TF.password.value == TF.cpassword.value){
                  TF.submit();
                  return true;
               }
               else
                alert("Your passwords did not match, please retype them and try again.");
            }
            else
               alert("Please enter a Password.");
           }
           else{
              alert("Please enter a Username.");
           }
        }
        else{
           alert("Please enter a Groupname.");
        }
        return false;
    }

     function Validate2(TF){
         if(TF.user_name.value != ""){
             if(TF.password.value != ""){
               if(TF.password.value == TF.cpassword.value){
                  TF.submit();
                  return true;
               }
               else
                alert("Your passwords did not match, please retype them and try again.");
            }
            else
               alert("Please enter a Password.");
           }
           else{
              alert("Please enter a Username.");
           }

        return false;
    }

var pos = 0;
  var SI = null;
      function loading_page(){
         var LB = document.getElementById("load");
         if(pos < 152){
            pos = pos + 5;
         }
         else{
            pos = 0
         }
         LB.style.left = pos +"px";
      }

      function Kill_Load(id){
      var loadbox;
        if(loadbox = document.getElementById(id)){
          loadbox.style.display = "none";//innerHTML = LI;
            if(SI && SI != null)
              window.clearInterval(SI);
         }
      }

      function slide_loop(id){

var loadbox = document.getElementById(id);
    if(loadbox){
      loadbox.style.display = "inline";//innerHTML = LI;
          SI = window.setInterval("loading_page()",25);
     }

      }



