home *** CD-ROM | disk | FTP | other *** search
- //This code is to load the url you specify when a search engine has
- //a link to this page. Showing just this page wouldn't make sense
- //without the other pages from your store.
- ///////////////////////////////NAVIGATION AIDS/////////////////////////////////
- var url = "http://Zanadu.com/";
- ///////////////////////////////////////////////////////////////////////////////
-
-
- /////////////////////////////////////////////////////////////////////////
- //all of these decoration variables default to the top frame variables
- //they are listed here so you can change the look of just this page
-
- var lfcolor = top.lfcolor; //'#000080';//large font color
- var sfcolor = top.sfcolor; //'#ea0000';//small font color
- var buttons = top.buttons; //path to your buttons
- var pagelook = top.detailpagelook; //'background="../../' +top.layout+ '/body.gif"'; //page tile image
- //var pagelook = top.detailpagelook; //'bgcolor="#cccc44"' //page color only
- var header = top.header; //'background="../' +top.layout+ '/hrow.gif"'; //table tile image
- //var header = 'bgcolor="#dadaff"' //this table bgcolor only
- var leftcol = top.leftcol; //'background="../' +top.layout+ '/smcol.gif"'
- //var leftcol = 'bgcolor="#dadadf"' //color only
- var heading = top.heading; //'bgcolor=#FAFACA';
- var headingfc = top.headingfc; //headingfc = 'color=#000080'; //top row font color
- var rowa = top.rowa; //'bgcolor="#dadadf"';
- var rowafc = top.rowafc; //'color = #800000'; //even row font color
- var rowb = top.rowb; //'bgcolor="#dadada"';
- var rowbfc = top.rowbfc; //'color = #800000'; //odd row font color
- var navrow = top.navrow; //'bgcolor=#880000'
- /////////////////////////////////////////////////////////////////////////
- //=====you should not tamper with anything below this line=====
-
- var title = document.title;
- //get document name
- var theurl = unescape(window.location.href)
- var lastslash = theurl.lastIndexOf('/');
- var lastdot = theurl.lastIndexOf('.');
- var docname = theurl.substring(lastslash+1, lastdot)
-
- //receive pop up inputs
- var r = 0;
- var qn = 0;
- function rcvDetail(msg){
- for(k=0; k<top.archives.sel.length; k++)
- {
- if((top.archives.sel[k] == null) || (top.archives.sel[k].qnty ==0))
- {
- //alert('record='+r+ ' quantity=' +qn+ ' line=' +k)
- top.archives.sel[k] = new top.archives.selection(top.db.line[r]); top.archives.sel[k].qnty = qn; top.archives.sel[k].detail = msg; break;
- }}
- return;
- }
-
-
- //get selected item, line[i] and selected quantity(q) and post to top
- function enterIt(q,i){
- if(q > 0)
- {
- //test here for detail message
- var msgID = top.db.line[i].special.charAt(2);//use substring(2,-1) for long file names
- if(msgID != "n")
- {
- //pop up input window, return info goes to rcvDetail(msg)
- pop = window.open("","formWin","width=" +top.db.msgwidth+ ",height=" +top.db.msgheight+ "scrolling=auto");
- pop.location.href = msgID+ '.htm';
- if(pop.opener == null) pop.opener = window; qn=q; r=i;
- }
- else {
-
- // find first empty sel record and populate
- for(k=0; k<top.archives.sel.length; k++)
- {
- if((top.archives.sel[k] == null) || (top.archives.sel[k].qnty ==0))
- {
- //alert('record='+i+ ' quantity=' +q+ ' line=' +k)
- top.archives.sel[k] = new top.archives.selection(top.db.line[i]); top.archives.sel[k].qnty = q; break;
- }}
- return;
- }}
- }
-
-
- //write the type tables
- function showTable(){r=0;
- document.write('<form name="select">'
- + '<table cellpadding=0 cellspacing=0 border=0 bgcolor="#51998E" width=460">'
- +' <tr ' +heading+ '><td width=60><font size=-1 ' +headingfc+ '><b> ID</td>'
- +' <td width=280><font size=-1 ' +headingfc+ '><b>DESCRIPTION</td>'
- +' <td width=60><font size=-1 ' +headingfc+ '><b>PRICE</td>'
- +' <td width=60 align=center><font size=-1 ' +headingfc+ '><b>QUANTITY<br></td></tr>')
- var r = 0;
- for(i=1; i<top.db.line.length; i++)
- if(top.db.line[i].type.toLowerCase() == title.toLowerCase() || top.db.line[i].type.toLowerCase() == docname.toLowerCase())
- { //use of title is for backward compatibility
- if(r%2==0) {rowcolor = rowa; fontcolor = rowafc;}
- else {rowcolor = rowb; fontcolor = rowbfc;}
- document.write('<tr ' +rowcolor+ '>'
- +'<td><font size=-1 ' +fontcolor+ '><b> ' +top.db.line[i].pid+ ' </td>'
- +'<td><font size=-1 ' +fontcolor+ '><b>' +top.archives.stripHTM(top.db.line[i].desc)+ '</td>'
- +'<td align=right><font size=-1 ' +fontcolor+ '><b>' +top.currency +top.archives.fix(top.db.line[i].price)+ ' </td>'
- +'<td align=center><font size=-1 ' +fontcolor+ '>'
- +'<select size=1 name=qnty onChange=enterIt(this.options[this.options.selectedIndex].value,' +i+ ')>'
- +'<option value=0 selected>0'
- +'<option value=1>1'
- +'<option value=2>2'
- +'<option value=3>3'
- +'<option value=4>4'
- +'<option value=5>5'
- +'<option value=6>6'
- +'<option value=7>7'
- +'<option value=8>8'
- +'<option value=9>9'
- +'<option value=10>10'
- +'<option value=12>12'
- +'</select><br></td></tr>')
- r++;
- }
- document.write('</table>')
- //table for nav button
- document.write('<table cellpadding=0 cellspacing=0 border=0 width=460" ' +navrow+ ' ><tr><td align=center>'
- +'<a href="JavaScript:history.go(-1)"><img src="../' +buttons+ 'backcat.gif" width=137 height=27 border=0 alt="Return to Previous Category"></a><br></td></tr></table></form>')
- //reset quantity values to zero on reload
- for(j=0; j<document.select.length; j++)
- document.select.elements[j].options[0].selected = true;
- document.close();
- }
-