<!-- begin script
var Firsttimetoday="NEW"
var today = new Date() 
var test=today.getHours()
document.cookie="test=" + test;
//if (Debug2=="YES"){alert("START test="+ test);}
   function getCookieVal (offset) {
     var endstr = document.cookie.indexOf (";", offset);
     if (endstr == -1)
       endstr = document.cookie.length;
     return unescape(document.cookie.substring(offset, endstr));
   }
   
   function GetCookie (name) {
     var arg = name + "=";
     var alen = arg.length;
     var clen = document.cookie.length;
     var i = 0;
     while (i < clen) {
       var j = i + alen;
       if (document.cookie.substring(i, j) == arg)
         return getCookieVal (j);
       i = document.cookie.indexOf(" ", i) + 1;
       if (i == 0) break; 
     }
     return "null";
   }
   
   function SetCookie (name, value) {
     var argv = SetCookie.arguments;
     var argc = SetCookie.arguments.length;
     var expires = (argc > 2) ? argv[2] : null;
     var path = (argc > 3) ? argv[3] : null;
     var domain = (argc > 4) ? argv[4] : null;
     var secure = (argc > 5) ? argv[5] : false;
     document.cookie = name + "=" + escape (value) +
       ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
       ((path == null) ? "" : ("; path=" + path)) +
       ((domain == null) ? "" : ("; domain=" + domain)) +
       ((secure == true) ? "; secure" : "");
   }
   
   function DeleteCookie (name) {
     var exp = new Date();
     exp.setTime (exp.getTime() - 1);  // This cookie is history
     var cval = GetCookie (name);
     document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
   }

function CheckDefaults(){
  if  ((Firsttimetoday=="")||(Firsttimetoday=="null")||(Firsttimetoday==null)){
  Firsttimetoday="YES";
  }
}

function Showpopup(){
var today = new Date() 
var test2=today.getHours()
var test=GetCookie("test");
if (test==test2){
  location="disclaimer.htm";
  }else{
    var atext="Cookies are not Enabled on your browser! \nThis site relies on the use of Cookies for proper browsing. Please check the settings of your options and enable your browsers Cookie Function. \n\nDISCLAIMER: The information presented in the write ups and the Photographic representations of the equipment are believed to be accurate at the time the pages are created. \nThe information presented on the Website should not be used for formal quotation. Price and Information presented in the write-ups on the website are subject to change without notice. \nAction Machinery Claims no responsibility for inaccuracies of the information presented on the pages of this web site.\nPlease contact one of our sales representatives if you require more information or a current formal quotation. \n\nThis PopUp will be displayed each time you revisit this page. \nTo Disable this PopUp, Please turn on your browsers cookie function.\n\nClick on OK to view the Disclaimer Page.\nIf you have already viewed the Disclaimer Page, then click on Cancel.";
    var answer=confirm(atext);
    if (answer){
      location="disclaimer.htm";
    }
  }
}

function ShowDisclaimer() {
Firsttimetoday = GetCookie("Firsttimetoday");
CheckDefaults();
var expdate = new Date ();
   expdate.setTime (expdate.getTime() + (1 * 1 * 12 * 60 * 60 * 1000)); // 12 hours from now (years*daysperyear*hoursperday*minsperhour*secspermin*1000)
SetCookie("Firsttimetoday","NO",expdate,"/");
if (Firsttimetoday=="YES") {
	Showpopup();
 }
}
// end script -->

