//<!-- Hide script from old browsers
var LoginXX = false

function OpN()
{


    window.open("http://www.getoffutt.com/pdfs/help/cookies.html",'','toolbar=no,directories=no,scrollbars=yes,status=no,width=600,height=430,menubar=no,location=no,resizable=yes');
}


function ckLogin()
{
   var strAcctID
   LoginXX = false
   var tstr = getCookieData("INVDAT")
   var strArray;
   //alert("INVDAT:" +tstr);

   if (tstr.length == 0)
   {
   alert("Either:\n Your browser will not accept cookies or\n you did not log in to the system properly. \n When prompted, please shutdown your browser \n and make sure your browsers cookies are enabled before restarting.");

      setTimeout("OpN()",500);


      setTimeout("window.close()",1000);
   }
        else
        {
                //if creating displays for multiple property types use: "topidx.html"
                //otherwise use "blank.html"
                topframe.document.location = "topidx.php";
        }
}

function getCookieData(label)
{
   var labelLen = label.length
   var cLen = document.cookie.length
   var i = 0

   while (i < cLen)
   {
      var j = i + labelLen
      if (document.cookie.substring(i,j) == label)
      {
         j++
         var cEnd = document.cookie.indexOf(";",j)
         if (cEnd == -1)
            cEnd = document.cookie.length
         return unescape(document.cookie.substring(j,cEnd))
      }
      i++
   }
   return ""
}

function liteckLogin()
{
   var strAcctID
   LoginXX = false
   var tstr = getCookieData("INVDAT")
   var strArray;
   //alert("INVDAT:" +tstr);

   if (tstr.length == 0)
   {
   alert("Either:\n Your browser will not accept cookies or\n you did not log in to the system properly. \n When prompted, please shutdown your browser \n and make sure your browsers cookies are enabled before restarting.");

      setTimeout("OpN()",500);


      setTimeout("window.close()",1000);
   }
          else
        {
                topframe.document.location = "topidxlite.php";
        }
}
//-->

