function testinput(x, y){
if (y.search(x) != -1)
result = "../";
else
result = "";
return result
}

function removeBlanks(s) {
 var temp=""
 for(var i=0;i<s.length;++i) {
  var c=s.charAt(i)
  if(c!=" ") temp += c
 }
 return temp
}

function getCookie(name) {
 var cookie=document.cookie
 var s=removeBlanks(cookie)
 var pairs=s.split(";")
 for(var i=0;i<pairs.length;++i) {
  var pairSplit=pairs[i].split("=")
  if(pairSplit[0]==name) return pairSplit[1]
 }
 return ""
}

orderlink = "FMPro?-db=orderlines&-lay=web&-format=viewcart.htm&-error=viewcart.htm&-op=eq&orderno="
orderlink += getCookie("cartcookie")
orderlink+="&-find"

document.write("<DIV><A HREF='index.htm'>Welcome Page</A></DIV>")

p = new Array ("aboutus","tempclosed","prodsvs","tempclosed","tempclosed","tempclosed","publDist")
t = new Array ("About INDEX","Customer Login","Products & Services","Special Offers","Direct Ordering","BiblioWeb","Publishing & Distribution")

for (var i=0; i < p.length; i++){
if (document.title == t[i]) {document.write("<DIV>"+""+"</DIV>")}
else {document.write("<DIV><A HREF='"+testinput ("order", location.href) +p[i]+".htm'>"+t[i]+"</A></DIV>")}
}

document.write("<DIV ID='witregel'</DIV>")
