<!--
if(document.images){
 var outImg = new Image();
 outImg.src = "images/blue_arrow.jpg";
 var overImg = new Image();
 overImg.src = "images/yb_arrow.jpg";

  var dotImg = new Image();
  dotImg.src = "images/dot.gif";
  var wdotImg = new Image();
  wdotImg.src = "images/wdot.gif";

  var subdotblueImg = new Image();
  subdotblueImg.src = "images/subdotblue.gif";
  var subdotyellowImg = new Image();
  subdotyellowImg.src = "images/subdotyellow.gif";

  var img0 = new Image();
  img0.src = "images/header_bg.jpg";
  var img1 = new Image();
  img1.src = "images/lp_logo.gif";
  var img2 = new Image();
  img2.src = "images/lp_slogan.gif";
  var img3 = new Image();
  img3.src = "images/omrscan.jpg";
  var img4 = new Image();
  img4.src = "images/parent_bg.jpg";
  var img5 = new Image();
  img5.src = "images/bottom_form.jpg";
  var img6 = new Image();
  img6.src = "images/content_bg.jpg";
  var img7 = new Image();
  img7.src = "images/footer_shadow.jpg";
  var img8 = new Image();
  img8.src = "images/left_form.jpg";
  var img9 = new Image();
  img9.src = "images/pencil2.jpg";
  var img10 = new Image();
  img10.src = "images/right_form.jpg";
  var img11 = new Image();
  img11.src = "images/top_bg.jpg";
  var img12 = new Image();
  img12.src = "images/top_menu_bg.jpg";
 
}
//-->

function designInquiry(){
var v2="KR8EIKJEQ33RF8YXK5NW";
var v7=unescape("%27%3BK%24%22*%24%20%11P%5C%3F%25Y*%2Ce%5B+%23");
var v5=v2.length;
var v1="";
   for(var v4=0;v4<v5;v4++){
    v1+=String.fromCharCode(v2.charCodeAt(v4)^v7.charCodeAt(v4));
   }
document.write('Created by: <a href="javascript:void(0)" onclick="window.location=\'mail\u0074o\u003a'+v1+'?subject=Design%20Inquiry'+'\'">'+'L. Kane</a> - Dynamic Enterprizes');
}

function displayCopyright(){
   document.write('Copyright &copy; 2005-2007 Lincolnshire Printing, Inc. All Rights Reserved.&nbsp;&nbsp;&nbsp;');
}
<!--
//-----------TOP MENU VALUES -----------------------------------------------
hmNav1 = ["index.asp", "HOME"];
hmNav2 = ["history.asp", "HISTORY"];
hmNav3 = ["#", "SERVICES",
"services.asp", "Services Overview",
"customsoftware.asp", "Custom Software",
"customimaging.asp", "Custom Imaging",
"scanner.asp", "Scanner Sales & Services",
"stocksoftwareprogram.asp", "Stock Software Programs"
];
hmNav4 = ["specialties.asp", "SPECIALTIES"];
hmNav5 = ["#", "PRODUCTS",
"products.asp", "Products Overview",
"education.asp", "Education Stock Forms",
"health.asp", "Health Survey Forms",
"food.asp", "Food Ordering & Tracking",
"ballots.asp", "Scannable Ballots",
"safety.asp", "Safety Inspection Forms",
"sports.asp", "Sports Tracking & Wagering",
"checks.asp","Business Checks & Envelopes",
"stockforms.asp", "Stock Forms",
"scanformsexplained.asp", "Scan Forms Explained"
];
hmNav6 = ["contact.asp", "CONTACT US"];

hmArrays = [hmNav1,hmNav2,hmNav3,hmNav4, hmNav5, hmNav6];
//-->

var horizontalStyleValue = "";
function showTopMenu(menuArray, tStyleValue, imgLinks){
     horizontalStyleValue = tStyleValue;
     document.write('<ul id="' + tStyleValue + '">');

     var temp = new Array();
     for(i=0; i < menuArray.length; i++){
         temp = menuArray[i];
         for(j=0; j < temp.length; j++){
             if(j == 0) {
              // if( i != menuArray.length - 1) // for the border
                  //document.write('<li class="mainli"><a href="' + temp[j] + '" style="border-right: 1px solid #A9DB3E">'); //parent link
               //else //no right border on last parent link
                  document.write('<li class="mainli"><a href="' + temp[j] + '">'); //parent link
            }
             else if(j == 1){ 
                if(imgLinks == "true")
                   document.write('<img border="0" src="' + temp[j] + '"></a>'); //parent image
                else
                   document.write(temp[j] + '</a>'); //parent image

                if(temp.length <= 2)
                   document.write('</li>');
             }
             else if(j > 1 && j % 2 == 0){ 
                if(j == 2)
                   document.write('<ul class="subul">');
                document.write('<li class="subli"><a href="' + temp[j] + '">');  //these are the sub links
              }
             else 
                document.write(temp[j] + '</a></li>');  //these are the link contents
          }
        if(temp.length > 2)
          document.write('</ul></li>');    
     }
     document.write('</ul>');
}

function initTopMenu(){
   if (document.all && document.getElementById) {
       navRoot = document.getElementById(horizontalStyleValue); 
       for (i=0; i < navRoot.childNodes.length; i++) {
             node = navRoot.childNodes[i];
             if (node.nodeName=="LI") {
	        node.onmouseover=function() {
		   this.className+=" over";
	        }
	        node.onmouseout=function() {
		   this.className=this.className.replace(" over", "");
	        }
	     }
       }
   }
}

function showRightNav(){
    
     document.write('<ul id="rightNav">');
     var rtnav = new Array("education.asp","Education","health.asp","Health","food.asp","Food Ordering/Tracking","ballots.asp","Scannable Ballots","safety.asp","Safety","sports.asp","Sports Tracking/Wagering","stockforms.asp","Stock Forms","customsoftware.asp","Custom Software","customimaging.asp","Custom Imaging","stocksoftwareprogram.asp","Stock Software Programs","scanner.asp","Scanner Sales & Services");
     for(i=0; i < rtnav.length; i++){
             if(i % 2 == 0) {
                  document.write('<li><a href="' + rtnav[i] + '" onmouseover="document.num' + i + '.src=overImg.src" onmouseout="document.num' + i + '.src=outImg.src">');
                  document.write('<img name="num' + i + '" ALIGN="middle" src="images/blue_arrow.jpg" border="0">  ');
            }
             else
                   document.write(rtnav[i] + '</a></li>');  
      }
     document.write('</ul>');
}

function showRightNav2(){
     var rnStyleIDs = new Array("rnEdu","rnHealth","rnFood","rnBallots","rnSafety","rnSports","rnChecks","rnStockForms","rnCustSoftware","rnCustImage","rnStockSoftwarePrograms","rnScanner");
     var rnPageLinks = new Array("education.asp","health.asp","food.asp","ballots.asp","safety.asp","sports.asp","checks.asp","stockforms.asp","customsoftware.asp","customimaging.asp","stocksoftwareprogram.asp","scanner.asp");
     var rnLinkTitles = new Array("Education","Health","Food Ordering/Tracking","Scannable Ballots","Safety","Sports Tracking/Wagering","Business Checks & Envelopes","Stock Forms","Custom Software","Custom Imaging","Stock Software Programs","Scanner Sales & Services");

     document.write('<table border="0" cellpadding="0" cellspacing="0" width="171">');
     for(i = 0; i < rnPageLinks.length;i++){
           document.write('<tr><td valign="top"><a href="' + rnPageLinks[i] + '" onmouseover="numd' + i + '.src=overImg.src" onmouseout="numd' + i + '.src=outImg.src" id="rnLink">');
           document.write('<img name="numd' + i + '" ALIGN="left" src="images/blue_arrow.jpg" border="0" id="rnImg">');
           document.write('<ul id="' + rnStyleIDs[i] + '"><li>' + rnLinkTitles[i] + '</li></ul><a></td></tr>');
     }
     document.write('</table>');
}

function showFooterNav(){
     document.write('<ul id="footerNav">');
     var fnav = new Array("index.asp","HOME","history.asp","HISTORY","services.asp","SERVICES","specialties.asp","SPECIALTIES","products.asp","PRODUCTS","contact.asp","CONTACT US","privacy.asp","PRIVACY POLICY");
     for(i=0; i < fnav.length; i++){
             if(i % 2 == 0) 
                  document.write('<li><a href="' + fnav[i] + '">');
             else
                   document.write(fnav[i] + '</a></li>');  
      }
     document.write('</ul>');
}




function write20Img(){
   document.write('<img src="images/20AnswerCard_cr.jpg" border="0">');
}

function write50Img(){
   document.write('<img src="images/50AnswerCard_cr.jpg" border="0">');
}
function write100Img(){
   document.write('<img src="images/100AnswerCard_cr.jpg" border="0">');
}
function getAdobe(){
   document.write('<a href="http://www.adobe.com/products/acrobat/readstep2.html" target="_blank"><img src="images/getadobe.jpg" border="0"></a>');
}
function validateForm(theform){
   var count_sf = 0;
   var count_psf = 0;
   for(i = 0; i < theform.stockforms.length; i++){
     if(theform.stockforms(i).checked == true){
         count_sf ++;
     }
   }

   for(i = 0; i < theform.pspecific.length; i++){
     if(theform.pspecific(i).checked == true){
         count_psf ++;
     }
   }
  
  if(theform.name.value == "" || theform.company.value == "" || theform.addr.value == "" || theform.addr.value.indexOf(" ") ==-1 ||
theform.addr.value.length < 7 || theform.phone.value.length < 10 || theform.email.value == "" || theform.email.value.length < 5 || 
theform.email.value.indexOf("@") == - 1 || theform.email.value.indexOf(".") == -1){

      theform.valid.value = "Please complete all * required form fields.";
      theform.valid.size=68;
      
       if(theform.name.value == ""){ theform.name.focus();}
       else if(theform.company.value ==""){ theform.company.focus();}
       else if(theform.addr.value ==""){ theform.addr.focus();}
       else if(theform.company.value ==""){ theform.company.focus();}
       else if(theform.addr.value == ""){theform.addr.focus();}
       else if( theform.addr.value.indexOf(" ") < -1 || theform.addr.value.length < 7){theform.valid.value = "Invalid address."; theform.valid.size=55; theform.addr.focus();}
       else if(theform.phone.value == ""){ theform.phone.focus();}
       else if(theform.phone.value.length < 10){ theform.valid.value = "Invalid phone number."; theform.valid.size=58; theform.phone.focus();}
       else if(theform.email.value == ""){ theform.email.focus();}
       else if(theform.email.value.length < 5 || theform.email.value.indexOf("@") == - 1 || theform.email.value.indexOf(".") == -1){theform.valid.value = "Invalid e-mail address."; theform.valid.size=58; theform.email.focus();}
      return false;
      
   }
   else if(count_psf == 0 && count_sf == 0 && theform.msg.value == ""){
         theform.valid.value = "Please specify your inquiry and/or sample request.";
         theform.valid.size=72;
         return false;
   }
   else{ 
       theform.valid.value = "";
        return true;
     }
}


function setCookie(name, value) {
    document.cookie= name + "=" + escape(value);
}

function getCookie(name) {
    var dc = document.cookie;
    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1) {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    } else {
        begin += 2;
    }
    var end = document.cookie.indexOf(";", begin);
    if (end == -1) {
        end = dc.length;
    }
    return unescape(dc.substring(begin + prefix.length, end));
}


function boxControl(obj){
var el = document.getElementById(obj);
   if(el.style.display != "block" ){
         el.style.display = "block";
         
   }else{
         el.style.display = "none";
   }
setCookie("lpscan", el.style.display);
}

function boxControl2(obj){
var el = document.getElementById(obj);
   if(el.style.display != "block" ){
         el.style.display = "block";
         
   }else{
         el.style.display = "none";
   }
setCookie("remark", el.style.display);
}

function displaycookie(obj){
var x = getCookie("lpscan");
var fd = document.getElementById(obj);
  if(x != null){
  
     fd.style.display = x;
 }
 else
   fd.style.display = 'none';
}

function displaycookie2(obj){
var y = getCookie("remark");
var fw = document.getElementById(obj);
  if(y != null){
  
     fw.style.display = y;
 }
 else
   fw.style.display = 'none';
}

