function doLine(lineNo) { lineType = lineNo % 2; document.write("
"); } function endLine() { document.write("
"); } function setLine(lineNo) { lineType = lineNo % 2; if (document.all) if (lineType == 1) eval("document.all.row"+lineNo+".style.backgroundColor='#D1D8E2'"); } function hoverOn(lineNo) { eval("document.all.row"+lineNo+".style.backgroundColor='#AAAAAA'"); } function hoverOff(lineNo) { if (lineNo % 2 == 1) eval("document.all.row"+lineNo+".style.backgroundColor='#D1D8E2'"); else eval("document.all.row"+lineNo+".style.backgroundColor='#FFFFFF'"); } function addToQuote(url,docid,repid) { window.location.href = webdburl+"/AddToQuote?CreateDocument&action=add&db="+escape(url)+"&id="+docid+"&rep="+repid; } function openURL(url) { window.location.href = url; } function setCookie(cookieName,cookieValue,nDays,path) { var today = new Date(); var expire = new Date(); if (nDays==null || nDays==0) nDays=1; expire.setTime(today.getTime() + 3600000*24*nDays); document.cookie = cookieName+"="+cookieValue+";path=/;expires="+expire.toGMTString(); } function getCookie(name) { // use: getCookie("name"); var bikky = document.cookie var index = bikky.indexOf(name + "="); if (index == -1) return null; index = bikky.indexOf("=", index) + 1; var endstr = bikky.indexOf(";", index); if (endstr == -1) endstr = bikky.length; return unescape(bikky.substring(index, endstr)); } var webdburl = '/customers/jjsmith/website.nsf';