<!--
// siteURL = "demo.managemybiz.com";

function checkUncheckAll(theElement) {
  var theForm = theElement.form, z = 0;
  for(z=0; z<theForm.length;z++) {
    if(theForm[z].type == 'checkbox' && theForm[z].name != 'dothemall' && (!theForm[z].disabled) ) {
      theForm[z].checked = theElement.checked;
    }
  }
}

function checkUncheckAllDEP(theElement) {
  var theForm = theElement.form, z = 0;
  for(z=0; z<theForm.length;z++) {
    if(theForm[z].type == 'checkbox' && theForm[z].name != 'dothemall' && (!theForm[z].disabled) ) {
      if (theForm[z].name == 'stop') { break; }
      theForm[z].checked = theElement.checked;
    }
  }
}

function checkUncheckAllEXP(theElement) {
  var theForm = theElement.form, z = 0;
  var stopped = 1;
  for(z=0; z<theForm.length;z++) {
    if (theForm[z].name == 'stop') { stopped = 0; }
    if(stopped == 0 && theForm[z].type == 'checkbox' && theForm[z].name != 'dothemall' && (!theForm[z].disabled) ) {
      theForm[z].checked = theElement.checked;
    }
  }
}

function Remind(new_location) {
  var aok   = window.confirm("Are you sure you want to send an email reminder to this client for this invoice?  \n\nTo email them press OK, or else press CANCEL.   ")
  if (!aok) { return; }
    document.location = new_location;
    return;
  }

function Complete_This(new_location) {
  var aok   = window.confirm("Click OK to move this entry to your completed activity list.      \nPress CANCEL to keep this activity on your day planner.")
  if (!aok) { return; }
    document.location = new_location;
    return;
  }

function Delete_This(new_location) {
  var aok   = window.confirm("Are you sure you want to do this?\n\nTo delete press OK, or else press CANCEL.   ")
  if (!aok) { return; }
    document.location = new_location;
    return;
  }

function doTotal(theElement) {
  var theForm = theElement.form, z = 0, thetotal = 0, saveindex = 0;

  for(z=0; z<theForm.length;z++) {
    if(theForm[z].type == 'checkbox' && theForm[z].name != 'dothemall' && (!theForm[z].disabled) && theForm[z].checked == true) {
      if (theForm[z].name.substring(0,5) == "check") {
        // alert("n: " + theForm[z].name + "\nz: " + z + "\nv: " + theForm[z].value + "\n");
        myStr    = theForm[z].value
        mySplit  = myStr.split("|")
        thetotal = thetotal + (mySplit[0] * 1);
      }
    }
  }

  // alert ("END: " + thetotal);

  document.totalit.paymenttotal.value = "total checked: $" + thetotal.toFixed(2);
}

function Edit (nType, nId) {
  var cToolBar = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=300,height=200"
  var popupwin = window.open("q_edit.asp?i=" + nId + "&t=" + nType, "editing", cToolBar);
  }

function go_link(doc) {
  switch (doc) {
    case 'access':
      var url = "http://" + siteURL + "/access.asp"
      break
    case 'legal':
      var url = "http://" + siteURL + "/legal.asp"
      break
    case 'privacy':
      var url = "http://" + siteURL + "/privacy.asp"
      break
    case 'agreement':
      var url = "http://" + siteURL + "/affiliates/agreement.asp"
      break
    }
  window.location.href = url
  }

function InfoWindow (url, nWidth, nHeight) {
  var cToolBar = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top=10,left=10,width=" + nWidth + ",height=" + nHeight
  var popupwin = window.open("info.asp?i=" + url, "info", cToolBar);
  }

function JumpSelect(fn) {
  var whi = eval("form" + fn +"." + fn +".value");
  document.location = "https://" + siteURL + "/" + whi;
  return;
  }

function JumpSelect2(fn) {
  var whi = eval("form" + fn +"." + fn +".value");
  var cToolBar = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top=10,left=10,width=320,height=350"
  var popupwin = window.open("info.asp?i=" + whi, "info", cToolBar);
  return;
  }

function JumpSub(fn) {
  if (fn == "j1") { document.formj1.submit(); }
  if (fn == "j2") { document.formj2.submit(); }
  if (fn == "j3") { document.formj3.submit(); }
  if (fn == "j4") { document.formj4.submit(); }
  return;
  }

function PopUpWindow (url, nWidth, nHeight) {
  var cToolBar = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=" + nWidth + ",height=" + nHeight
  var popupwin = window.open("a_help.asp?i=" + url, "help", cToolBar);
  }

  //<![CDATA[
  function hiveware_accounts(){ document.write("<A HREF=\"contact.asp?i=1\">BizManager Account Management</A>"); }

  function hiveware_support(){ document.write("<A HREF=\"contact.asp?i=2\">BizManager Support</A>"); }

  function hiveware_enkoder(){ document.write("<A HREF=\"contact.asp?i=3\">BizManager's Affiliate Support Email</A>"); }

  function hiveware_scanning(){ document.write("<A HREF=\"contact.asp?i=4\">BizManager Scanning Support</A>"); }

  function hiveware_demo(){ document.write("<A HREF=\"contact.asp?i=5\">BizManager Demos</A>"); }
  //]]>

//-->