
if(!ff){var ff=false};
if(ff){alert("ePriceListFun.js")};
/* ePriceListFun.js - the scripts hear are for the use only by jwhardy & customers, 
* these programes - data may only be viewed with in scripts & html documents as publised by JW Hardy Communications 
* Data & programes constucted by John Hardy. :e-mail: john.co.uk
* Copyright (c) 2002 JW Hardy Communications. All Rights Reserved.
* Originally published and used at http://www.jwhardy.co.uk/
* This programes - data may not be used or reconstructed by any party with out notification to John Hardy e-mail: john.co.uk
*/
/*Browsercheck object*/
function bwcheck(){
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent.toLowerCase()
	this.dom=document.getElementById?1:0
	this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1) && window.opera 
  this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1) && window.opera   
  this.ie5 = (this.agent.indexOf("msie 5")>-1 && !this.op5 && !this.op6)
  this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1)
  this.ie6 = (this.agent.indexOf("msie 6")>-1 && !this.op5 && !this.op6)
	this.ie4=(this.agent.indexOf("msie")>-1 && document.all &&!this.op5 &&!this.op6 &&!this.ie5&&!this.ie6)
  this.ie = (this.ie4 || this.ie5 || this.ie6)
	this.mac=(this.agent.indexOf("mac")>-1)
	this.ns6=(this.agent.indexOf("gecko")>-1 || window.sidebar)
	this.ns4=(!this.dom && document.layers)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6)
  this.usedom= this.ns6//Use dom creation
  this.reuse = this.ie||this.usedom //Reuse layers
  this.px=this.dom&&!this.op5?"px":""
	return this
}
var bw=new bwcheck()
var dataLoaded=false
FINePriceListFun=false
var minqty = 1 ;
var lowqty = 0 ;
var prodinliststart = 0 ;
var prodinlistfin = 0 ;
var ptString
vat = new Array(9)
vat[0]=1;
vat[1]=1.175;
var priceL=0;
var xCount=1;var pos= new Array(0);

var IE4 = (document.all);
var NS4 = (document.layers);
var today = new Date();
var expires;
var pageback = -1;
var str ="";
var jwh_path = "p";
var pNum;
var strChange;
var relativePath;
var relativeLevel="../../";
var strSplit;
str2Split= new Array()
var pl_typeURL=null;
var pl_type=null;
var pl_typetemp=null;
var pl_data=null;
var pl_pic=null;
var pl_page=null;
var relPath=null;

var posX=0
var posY=0
var posName=""
var xCountNeg=0
if(window.name=="shopping"){windowName="shopping."}else{windowName=""}
//---------------------------pageback code---jwhardy 08-10-2001-------------------------
if(window.name=="shopping"){if(top.pageback==-3){top.pagebackcount=top.pagebackcount+1};
if(top.pagebackcount>1){top.pageback=-1;top.pagebackcount=0};pageback=top.pageback
} //-end if(window.name=="shopping")--
if(document.layers){jwhShow="show";jwhHide="hide"}else if(document.all){jwhShow="visible";jwhHide="hidden"}
function jwhShowHide(n,s){
if(document.layers){c=document.layers[n]}else if(document.all){c=document.all(n).style}else{return}
if(c.visibility==jwhShow){c.visibility=jwhHide}else{c.visibility=jwhShow}
if(s){c.visibility=eval(s)}}

function backpage(x){if(x){history.go(x)}else{history.go(pageback)}}
//--end----------------------pageback code---jwhardy 08-10-2001-----------------------end
//---------------------------cookies-----------------------------------------------------

//document.write('<img src="../pix/arrowBlueLeft_icon.gif" align="right" width="1" height="1" border="0" >');
//document.write('<img src="../pix/arrowBlueUp_icon.gif" align="right" width="1" height="1" border="0" >');
//document.write('<img src="../pix/arrowBlueDown_icon.gif" align="right" width="1" height="1" border="0" >');
//document.write('<img src="../pix/arrowBlueRight_icon.gif" align="right" width="1" height="1" border="0" >');

//---------------------------function fill---jwhardy 03-01-2002-------------------------
function fill(str,separator,replace,num){strSplit='';strSplit=str.split(separator);i=0;str="";
if(!num){num=strSplit.length}for(var i=0;i<num;i++){if(i<strSplit.length-1){str=str+strSplit[i]+replace}else{str=str+strSplit[i]}}
if(num<strSplit.length){ii=strSplit.length-num;for(i=i;i <strSplit.length; i++){str=str+strSplit[i]}}strChange=str;return str}//--end fill


function deleteCookie(name, path, domain) { if (getCookie(name)){document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") +  "; expires=Thu, 01-Jan-70 00:00:01 GMT";}}
function fixDate(date) {var base = new Date(0);var skew = base.getTime();if(skew>0){date.setTime(date.getTime() - skew)}}
function getCookie(Name) {var search = Name + "=";if (document.cookie.length>0){offset = document.cookie.indexOf(search);if (offset != -1) {offset += search.length;end = document.cookie.indexOf(";", offset);if (end == -1){end = document.cookie.length}return unescape(document.cookie.substring(offset, end))}}}
function setCookie(name,value,expire){var temp=name;temp+="="+escape(value);temp+=(expire==null) ? "" : "; expires=" + expire.toGMTString();temp+="; path=/";document.cookie=temp}//--end cookies ------------------------------------------------------------------end
function decPlace(x,p){if(p==2){pp=1000}else if(p==3){pp=10000}a=Math.round(x*pp)+"";b=a.substring(0,a.length-p-1)+"";c=a.substring(a.length-p-1,a.length-1)+"";if(c.length==p-1){c="0"+c}if(b==""){if(c==""){}else{b="0"}}ptString=(b)+"."+(c)+" "} //end function decPlace(x,p)//Copyright6-12-2000 John.co.uk  //if(c.length==p-2){c="00"+c} //if(c.length==p-3){c="000"+c}
function jwh_newchoice(p1,p2,p3,p4,p5,p6,p7,p8,p9){if(window.name!="shopping"){shoppingProgram()}else{if (document.forms[1].elements[0].value){top.newchoice(p1,p2,p3,p4,p5,p6,document.forms[1].elements[0].value,p8,p9)}else{jwh_reviewbasket()}}}//-end----------------------------select product from data-------------------------end	
function findprod(prod,com1,com2,type){x=0;if(com1=='information only'){}else{prod=fill(prod,'_',String.fromCharCode(32));
for(n=prodinliststart; n<prodinlistfin+1; n++){
if(prod==prodlist[n].ref){decPlace(eval(prodlist[n].price0*vat[prodlist[n].tax]),2);x=1;pNum=n
if(type==1){
//document.write('<script type="text/javascript" language="JavaScript">findprod("Cn AV scartSwBox"," "," ",1)</script><table width="100%" border="0">')
if(prodlist[pNum].price0){document.write('<table><tr class="pshead3"><td class="h3"><h4>&nbsp;Product Price</h4></td><td class="h3e">Price in GB Pounds</td></tr>')}
if(prodlist[pNum].price0){document.write('<tr class="ps2"><td class="p1" align="left">&nbsp;</td><td  class="p4" align="center">&nbsp;</td></tr>')}
if(prodlist[pNum].price0){decPlace(eval(vat[prodlist[pNum].tax]*prodlist[pNum].price0),2);temp=1;document.write('<tr class="ps',temp,'"><td class="p1" align="left">  Retail price including UK VAT :</td><td  class="p4" align="center"> £',ptString,'</td></tr>')}
if(prodlist[pNum].price1){xx=2;if(prodlist[pNum].price1<1){xx=3}decPlace(prodlist[pNum].price1,xx);if(temp==1){temp=2}else{temp=1};document.write('<tr class="ps',temp,'"><td class="p1" align="left">  Trade price for quantity of ',prodlist[pNum].qty1,' :</td><td class="p4" align="center"> £',ptString,'</td></tr>')}else{document.write('<tr class="ps2"><td class="p1" align="left">&nbsp;</td><td  class="p4" align="center">&nbsp;</td></tr>')}
if(prodlist[pNum].price2){xx=2;if(prodlist[pNum].price2<1){xx=3}decPlace(prodlist[pNum].price2,xx);if(temp==1){temp=2}else{temp=1};document.write('<tr class="ps',temp,'"><td class="p1" align="left">  Trade price for quantity of ',prodlist[pNum].qty2,' :</td><td  class="p4" align="center"> £',ptString,'</td></tr>')}
if(prodlist[pNum].price3){xx=2;if(prodlist[pNum].price3<1){xx=3}decPlace(prodlist[pNum].price3,xx);if(temp==1){temp=2}else{temp=1};document.write('<tr class="ps',temp,'"><td class="p1" align="left">  Trade price for quantity of ',prodlist[pNum].qty3,' :</td><td  class="p4" align="center"> £',ptString,'</td></tr>')}
if(prodlist[pNum].price4){xx=2;if(prodlist[pNum].price4<1){xx=3}decPlace(prodlist[pNum].price4,xx);if(temp==1){temp=2}else{temp=1};document.write('<tr class="ps',temp,'"><td class="p1" align="left">  Trade price for quantity of ',prodlist[pNum].qty4,' :</td><td  class="p4" align="center"> £',ptString,'</td></tr>')}
if(prodlist[pNum].price5){xx=2;if(prodlist[pNum].price5<1){xx=3}decPlace(prodlist[pNum].price5,xx);if(temp==1){temp=2}else{temp=1};document.write('<tr class="ps',temp,'"><td class="p1" align="left">  Trade price for quantity of ',prodlist[pNum].qty5,' :</td><td  class="p4" align="center"> £',ptString,'</td></tr>')}
if(prodlist[pNum].price6){xx=2;if(prodlist[pNum].price6<1){xx=3}decPlace(prodlist[pNum].price6,xx);if(temp==1){temp=2}else{temp=1};document.write('<tr class="ps',temp,'"><td class="p1" align="left">  Trade price for quantity of ',prodlist[pNum].qty6,' :</td><td  class="p4" align="center"> £',ptString,'</td></tr>')}
if(prodlist[pNum].price1){if(temp==1){temp=2}else{temp=1};document.write('<tr class="ps',temp,'"><td class="p1" align="left"><b>Note: Trade Prices Exclude UK VAT.</b></td><td  class="p4" align="center">&nbsp;</td></tr>')}
document.write('<tr  class="psbuy"><td class="h3e" colspan="2" align="center">Qty&nbsp;&nbsp;<input align="middle" size="1" value="" onchange="jwh_qty_fix(this,1,0)">&nbsp;&nbsp;');
document.write('<A HREF="javascript:buy(');
document.write("'",prodlist[n].ref,"'");
document.write(')"><IMG SRC="../pix/buy.gif" HEIGHT="12" WIDTH="25" BORDER="0" ALT="BUY THESE" HSPACE="10" VSPACE="7" ></A>')
document.writeln('</td></tr></table>')
//document.writeln('<script type="text/javascript" src="../script/ePriceListMenu.js"></SCRIPT>');
}if(type==3){}}} //-- end if type //-- end if prod  //-- end for prod
if (x==0){//document.write(com2)
}}}//--end if com1 else //--end if x  //--end function findprod
function activateKeyPress(){//up date 2005-03-14 jwh
if(navigator.appName == "Mozilla"){document.addEventListener("keyup",posKey,true);}
else if(navigator.appName == "Netscape"){document.captureEvents(Event.keypress);}
if(navigator.appName != "Mozilla"){document.onkeypress=posKey;}}

function  findPath(){//2004-02-14
jwh_path=currentPath(window.location.href);
jwh_pathSplit= jwh_path.split("/");
splitNum=jwh_pathSplit.length;
if(splitNum==3){relativePath="shop/";};
if(splitNum==5 || splitNum==6 || splitNum==6){relativePath="../"}
}//--end findPath()---------------------------------------------------------------------end--
function reviewbasket(){if(window.name!="shopping"){shoppingProgram()}else{top.reviewbasket(true)}}//--reviewbasket()--jwhardy 2003-05-11----------------end
function shoppingProgram(){ findPath();setCookie('jwhardyLastPageVist',window.location.href,expires);if(confirm("You are currently in browse mode,  click ok to activate shopping program, you will need to reselect your current choices.")){//alert(relativePath+"shop.html");
eval( "location.href='"+relativePath+"shop.html'")}} 
function jwh_reviewbasket(){alert("No quantity found\nNothing was put into your shopping basket.\n The shop assistant will review your shopping basket.");top.reviewbasket(true)}//--jwh_reviewbasket()--jwhardy 08-10-2001-----------end
function buy(pprod) {str="";if(window.name!="shopping"){shoppingProgram()}else{top.multiproduct_start();
expires = new Date();expires.setTime(today.getTime() + 1000*60)	
setCookie('jwhardyLastPageVist',"../shop/system/review.htm",expires);
var price,m=0,mm=0,mmm=1,n=0,nn=0,nnn=9,p=0,pp=0,ppp=1,Q,QQ=5,qqq,OK=false,valueForm;
//Multi-form script--2001-05-23 John Hardy----
if(document.forms.length==1){ppp=0}
for (p = 0+ppp; p < eval(document.forms.length) ; p++){pp=eval(pp+document.forms[p].elements.length);mm=0
for (n = eval(prodinliststart+nn); n < eval(prodinliststart+document.forms[p].elements.length+nn); n++){
nnnn=n;if(pprod){for (n=prodinliststart; n<prodinlistfin; n++){if(pprod==prodlist[n].ref){nnnn=n;mmm=0}}}n=nnnn;//;alert(nnnn) prod files 2002-03-05
m=mmm*(mm+n-(eval(prodinliststart+nn))); str = document.forms[p].elements[m].name + ""
if (str=="freeform"){mm=QQ;m=m+mm}
text1=' ';
valueForm=document.forms[p].elements[m].value
fill(valueForm,'#','#');
i=0;for(i=i;i <strSplit.length; i++){
if(ff){alert('strSplit['+i+'] : '+strSplit)}
if(i=0){qqq=strSplit[i]}
if(i=1){text1=strSplit[i]}
if(i=strSplit.length-1){text1='customer Ref Number # '+text+' : '}else if(i>1){text1+=", "+strSplit[i]}
}//end for(i		
		Q  = eval(1*(0+valueForm));
		if(mm==QQ){
		//alert(
		//"n+nnn : "+n+"+"+nnn+"="+(n+nnn)+
		//"\nprodlist[n+nnn].name : "+prodlist[n+nnn].name+
		//"\np : "+p+
		//"\ndocument.forms[p].elements[m-5].value : "+document.forms[p].elements[m-5].value
		//);
		
					prodlist[n+nnn].name = document.forms[p].elements[m-5].value+"";
					prodlist[n+nnn].ref = document.forms[p].elements[m-4].value+"";
					prodlist[n+nnn].dis1 = document.forms[p].elements[m-2].value+"";
					prodlist[n+nnn].dis2 = document.forms[p].elements[m-1].value+"";
					prodlist[n+nnn].minQ = 0;
					prodlist[n+nnn].maxQ = 0;
					prodlist[n+nnn].unitweight = 0;
					prodlist[n+nnn].tax = 1;
					prodlist[n+nnn].qty0 = '1';
					prodlist[n+nnn].price0 = document.forms[p].elements[m+1].value;
					mm=0;n=n+nnn}
		
		if (Q!==0){
					if      (Q >= prodlist[n].qty6 && prodlist[n].price6>0 && prodlist[n].price6!=""){price = prodlist[n].price6}
	 				else if (Q >= prodlist[n].qty5 && prodlist[n].price5>0 && prodlist[n].price5!=""){price = prodlist[n].price5}
					else if (Q >= prodlist[n].qty4 && prodlist[n].price4>0 && prodlist[n].price4!=""){price = prodlist[n].price4}
					else if (Q >= prodlist[n].qty3 && prodlist[n].price3>0 && prodlist[n].price3!=""){price = prodlist[n].price3}
					else if (Q >= prodlist[n].qty2 && prodlist[n].price2>0 && prodlist[n].price2!=""){price = prodlist[n].price2}
					else if (Q >= prodlist[n].qty1 && prodlist[n].price1>0 && prodlist[n].price1!=""){price = prodlist[n].price1}
					else if (Q >= prodlist[n].qty0 && prodlist[n].price0>0 && prodlist[n].price0!=""){price = prodlist[n].price0}
		if (Q>0){
					OK = true;price
					priceL=prodlist[n].price0
					top.newchoice(
						prodlist[n].name,
						prodlist[n].ref,
						prodlist[n].dis1,
						prodlist[n].dis2,
						priceL,
						price,
						Q,
						prodlist[n].unitweight,
						prodlist[n].tax)
						//alert('top.priceL : '+top.priceL)
      	} // end if (Q>0)
		} // end if (Q!=0)
	} // end for (n = 0; n<ProductsInList ; n++)
	nn=eval(n-prodinliststart);
	} // end for p 
	top.multiproduct_end(); // Restores system to state prior to multiproduct_start()
	if (OK) {top.reviewbasket(true);} 
	else {jwh_reviewbasket()}
	}	//end else{top.multiproduct_start()
	}  //end function buy() 
	
function jwh_qty_fix(jwh_this,jwh_minqty,jwh_lowqty){if(window.name!="shopping"){shoppingProgram()}else{}} //end function jwh_qty_fix(jwh_this,jwh_minqty,jwh_lowqty)
function posobj(posName,posX,posY) {this.posName=posName;this.posX=posX;this.posY=posY;}
function posMatrix2(p,x,y){allstart=x;allfin=y;pos= new Array(y)
for(show=allstart;show<=allfin;show++){findPos(show);//alert('posName : '+posName+'\nposX :'+posX+'\nposY :'+posY)
pos[show]=new posobj(posName,posX,posY);}}

function posMatrix(p,x,y){prefix=p;allstart=x;allfin=y;pos= new Array(y)
for(show=allstart;show<=allfin;show++){
posName=prefix+show;im="document.im"+show;
posX = (NS4) ?  eval(im+".x") : eval(im+".offsetLeft");
posY = (NS4) ?  eval(im+".y") : eval(im+".offsetTop");
pos[show]=new posobj(posName,posX,posY);}}

function posNew(name,state,x,y){
  if(IE4){document.all[name].style.left=x;document.all[name].style.top=y;if(state==1){document.all[name].style.visibility="visible"}else{document.all[name].style.visibility="hidden"}}
  if(NS4){document.layers[name].left=x;document.layers[name].top=y;if(state==1){document.layers[name].visibility="show"}else{document.layers[name].visibility="hide"}}}
  
function posChange(x){windowName=window.name;self.scrollTo(0,0);
xCount=xCount+x;if (xCount<=allstart-1){xCount = allfin}else if (xCount>=allfin){xCount =allstart-1}
for(show=allstart;show<=allfin;show++){name=prefix+show;xPos=pos[show].posX-pos[1].posX;yPos=pos[show].posY-pos[1].posY;xPos=xPos;yPos=yPos*-1;
	if (x==0){xPos=0;yPos=0;posNew(name,1,xPos,yPos)}else{
	if(show==xCount){posNew(name,1,xPos,yPos)}else{posNew(name,0,0,0)};
	if(show==allfin){if(xCount>=allfin){yPos1=0}else{yPos1=pos[allfin].posY-pos[xCount+1].posY}
	if(xCount<=allstart){yPos2=0;yPos3=0 }else{yPos2=pos[xCount-1].posY-pos[allstart].posY;yPos3=pos[xCount].posY-pos[xCount-1].posY};
	yPos=(yPos1+yPos2+yPos3)*-1;posNew(name,1,xPos,yPos)}}}window.name=windowName}
	
function findPos(name){
//alert('findPos('+name+')')
  if(bw.ns4){prefix='layer';posName='layer'+name;   //Netscape 4
    posX = eval('document.layers.layer'+name+'.pageX');
    posY = eval('document.layers.layer'+name+'.pageY');
	//alert('posX : '+posX+'\nposY : '+posY)
  }else{ //other browsers
    posX=0; posY=0; var el,temp;prefix='div';posName='div'+name
    el = bw.ie4?eval('document.all["div'+name+'"]'):eval('document.getElementById("div'+name+'")');
    if(el.offsetParent){
      temp = el
      while(temp.offsetParent){ //Looping parent elements to get the offset of them as well
        temp=temp.offsetParent; 
        posX+=temp.offsetLeft
       posY+=temp.offsetTop;
      }
    }
    posX+=el.offsetLeft
    posY+=el.offsetTop
  }
  //Returning the x and y as an array
  return [posX,posY]
}

function currentPath(Loc) {
var temp = ""+Loc ; var normal = temp.lastIndexOf("/") ; var back   = temp.lastIndexOf("\\") ;
if(back>normal) {temp=temp.substring(0,back+1)} else { temp=temp.substring(0,normal+1)} ;  return(temp); }

//function load(x,y) {
//eval( "top."+x+"location.href='"+y+"'");
  //top.+x+.location.href=y;
  //}

// this funtion is poor to rework later.
function load2(x,y,z){
if(z){}else{z=""}
if(y){}else{y=""}
if(x){}else{x=window.location.href}
eval(z+y+"location.href='"+x+"'")
}

function aHandleEvent(event, link,x1,x2,x3,x4,x5,x6){
//alert('aHandleEvent()');
window.event.returnValue=false;window.event.cancelBubble=true;
	x=""
	if(!x1){x1="";x+=x1}else{x+=x1}
	if(!x2){x2="";x+=x2}else{x+=x2}
	if(!x3){x3="";x+=x3}else{x+=x3}
	if(!x4){x4="";x+=x4}else{x+=x4}
	if(!x5){x5="";x+=x5}else{x+=x5}
	if(!x6){x6="";x+=x6}else{x+=x6}
	//alert(x1+x2+x3+x4+x5+x6);
	//alert(x)
	eval("location.href='"+x+"'")}

function load(x,y,z){
jwh_path=currentPath(window.location.href)
//alert(jwh_path+" : "+y);
if(z==1){jwh_path=y}else{
if(jwh_path.match("/pa_full/")){
	if(y=="/pa_full/"){//alert("im hear");
	fill(window.location.href,y,"/pages/");jwh_path=strChange;
	
	var wLocation=escape(window.location.href);
	expires = new Date();expires.setTime(today.getTime() + 1000*60);
	if(wLocation.match(escape("pa_full"))){setCookie("jwhardyCustomerType","T",expires)}
	if(wLocation.match(escape("shop.html"))){}else{setCookie("jwhardyLastPageVist",jwh_path,expires)};

	}else{jwh_path=window.location.href}
}else{
	if(y=="/pa_full/"){
	fill(jwh_path,"pages/","pages");jwh_path=window.location.href;
	}else{
	jwh_path=window.location.href
	fill(jwh_path,"pages/","pa_full/");jwh_path=strChange;
	}
}}

//alert(eval("top."+x+"location.href='"+jwh_path+"'"))
eval("top."+x+"location.href='"+jwh_path+"'")
}  
  
  
var posKeyX=1 

function inputstate(x){posKeyX=x}

function posKey(e){
if(NS4){}
else{
// new code for key press update 2005-03-14 jwh
//alert("navigator.appName : "+navigator.appName);
  if(navigator.appName == "Microsoft Internet Explorer"){whichASC = window.event.keyCode;}
  else if (navigator.appName == "Netscape"){whichASC = e.which;}
  else if (navigator.appName == "Mozilla"){whichASC = e.keyCode;}

  whichKey = String.fromCharCode(whichASC).toLowerCase();

  if(window.name=="shopping"){windowName="shopping."}else{windowName=""}
  x=posKeyX;if (x==1){ 
  switch (whichKey) {
  case ".":posChange(+1); break; 
  case ",":posChange(-1); break; 
  case ">":posChange(+1); break; 
  case "<":posChange(-1); break;
  case "a":posChange(0); break;
  case "c":if(dataLoaded){eval("top."+windowName+"location.href='"+h2forward+"'")}break;
  case "x":if(dataLoaded){eval("top."+windowName+"location.href='"+h2back+"'")}break;
  case "z":if(dataLoaded){eval("top."+windowName+"location.href='"+h1back+"'")}break;
  case "v":if(dataLoaded){eval("top."+windowName+"location.href='"+h1forward+"'")}break;
  case "d":load(windowName,"http://192.168.0.1/e_DelivaryNote/?order=order=nx;pl_type="+pl_type+";windowName="+windowName+";pl_url="+pl_url+";pl_page="+pl_page+";pos=1",1);break;
  case "i":load(windowName,"http://192.168.0.1/e_Invoice/?order=order=nx;pl_type="+pl_type+";windowName="+windowName+";pl_url="+pl_url+";pl_page="+pl_page+";pos=2",1);break;
  case "n":load(windowName,"http://192.168.0.1/e_notice/?order=order=nx;pl_type="+pl_type+";windowName="+windowName+";pl_url="+pl_url+";pl_page="+pl_page+";pos=3",1);break; 
  case "o":load(windowName,"http://192.168.0.1/e_Order/?order=order=nx;pl_type="+pl_type+";windowName="+windowName+";pl_url="+pl_url+";pl_page="+pl_page+";pos=4",1);break; 
  case "p":load(windowName,"http://192.168.0.1/e_projects/?order=nx;pl_type="+pl_type+";windowName="+windowName+";pl_url="+pl_url+";pl_page="+pl_page+";pos=5",1);break; 
  case "q":load(windowName,"http://192.168.0.1/e_Quotation/?order=order=nx;pl_type="+pl_type+";windowName="+windowName+";pl_url="+pl_url+";pl_page="+pl_page+";pos=6",1);break;
  case "f":load(windowName,"http://192.168.0.1/prod/folder.html?order=order=nx;pl_type="+pl_type+";windowName="+windowName+";pl_url="+pl_url+";pl_page="+pl_page+";pos=7",1);break; 
  case "j":load(windowName,"http://192.168.0.1/e_jurnal/?order=order=nx;pl_type="+pl_type+";windowName="+windowName+";pl_url="+pl_url+";pl_page="+pl_page+";pos=8",1);break; 
  case "#":break;
  case "0":break;
  case "1":break;
  case "2":break;
  case "3":break;
  case "4":break;
  case "5":break;
  case "6":break;
  case "7":break;
  case "8":break;
  case "9":break;
  case "b":buy(); break;
  case "R":load(windowName,"/pa_full/",""); break;//menu/menu.html //list1.html//  break;
  case "r":load(windowName,"/pa_full/",""); break;//menu/menu.html //list1.html//  break;
  case "T":load(windowName,"pa_full/",""); break;//menu/menu.html //list1.html//  break;
  case "t":load(windowName,"pa_full/",""); break;//pl_trade_password.html"); break;//menu/menu.html //list1.html//  break;
 default:alert("The Keyboard code of : "+whichKey+" : is not reconised as a function key Code "+String.fromCharCode(13)+String.fromCharCode(13)+"Press key ' > ' or ' . ' to advance 1 section per page"+String.fromCharCode(13)+String.fromCharCode(13)+"Press key ' < ' or ' , ' to retard 1 section per page"+String.fromCharCode(13)+String.fromCharCode(13)+"Press key ' A ' or ' a ' to view all sections on a single page"); break;
 }}}}

var wLocation=escape(window.location.href);
expires = new Date();expires.setTime(today.getTime() + 1000*60);
if(wLocation.match(escape("trade"))){setCookie("jwhardyCustomerType","T",expires)}
if(wLocation.match(escape("shop.html"))){}else{setCookie("jwhardyLastPageVist",window.location,expires)};
//alert("document.cookie: "+window.location+" : "+document.cookie);	
	
function locate(){//2004-02-14
Location=escape(window.location.href);
fill(Location,"/","/");
if(strSplit.length==7){pl_url=strSplit[0]+'/'+strSplit[1]+'/'+strSplit[2]+'/'+strSplit[3]+'/'+strSplit[4]+'/';}
if(strSplit.length==6){pl_url=strSplit[0]+'/'+strSplit[1]+'/'+strSplit[2]+'/'+strSplit[3]+'/';}
if(strSplit.length==5 || strSplit.length==4){pl_url=strSplit[0]+'/'+strSplit[1]+'/'+strSplit[2]+'/';}	
pl_page=strSplit[strSplit.length-1];
fill(Location,"%3F","");if(strSplit[1]){fill(strSplit[1],"%3B","");
i=0;if(strSplit.length>0){for(i=i;i <strSplit.length; i++){str2Split[i]=strSplit[i]}}
i=0;if(strSplit.length>0){for(i=i;i <str2Split.length; i++){
if(str2Split[i].match("pl_data")){fill(str2Split[i],"%3D","");fill(strSplit[1],"%23","");pl_data=strSplit[0]}
if(str2Split[i].match("pl_type")){fill(str2Split[i],"%3D","");fill(strSplit[1],"%23","");pl_type=strSplit[0]}
if(str2Split[i].match("pl_url")){fill(str2Split[i],"%3D","");fill(strSplit[1],"%23","");pl_url=strSplit[0]}
}}}//alert('pl_data : '+pl_data+'\npl_type : '+pl_type)
pl_url=fill(pl_url,"%3A",":");
pl_url=fill(pl_url,"%7E","~");
}//end function locate()

locate();pl_hreftemp=currentPath(escape(window.location.href));fill(pl_hreftemp,'/','/');pl_typetemp=strSplit[strSplit.length-2];

if(window.name=="shopping"){if(pl_typetemp=="system"){}else{top.jwhpl_type=pl_typetemp;if(pl_type){top.jwhpl_type=pl_type}}}//2004-02-18
if(pl_type){}else{
if(pl_typetemp=='product'||pl_typetemp.match('rfnetworks')||pl_typetemp.match('192.168.0.1')||pl_typetemp.match('jwhardy')||pl_hreftemp.match('e_')||pl_hreftemp.match('http://213.232.107.140')||pl_hreftemp.match('http://192.168.0.199')||pl_hreftemp.match('http://192.168.0.2')){pl_type='pages'}else{pl_type=pl_typetemp}}
//alert("pl_type : "+pl_type);
title=document.title;fill(title,"'","");
if(strSplit[1]){pl_pic=strSplit[1]}
if(pl_data){}else{if(strSplit[7]){pl_data=strSplit[7]}else{if(strSplit[3]){pl_data=strSplit[3]}}}
if(pl_pic){fill(pl_pic,String.fromCharCode(32),"_");pl_pic=strChange}
if(pl_data){fill(pl_data,String.fromCharCode(32),"_");pl_data=strChange}
if(pl_type=="info"){pl_type="pages"};
if(pl_data && pl_type){document.writeln('<script type="text/javascript" src="../',pl_type,'/',pl_data,'.js"></SCRIPT>')};
FINePriceListFun=true
