<!--
function drawMenu() {
	mn = 33;
	men=new Array(mn);
	loc=new Array(mn)	

//document.write('<p><b><font face="Arial" size="2">DataCal<br>&nbsp;&nbsp;&nbsp;&nbsp; Enterprises...</font></b><font size="1"><b><br>');
men[0]="DataCal<br>&nbsp;&nbsp;&nbsp;&nbsp; Enterprises...";
loc[0]="x";
men[1]="Home";
loc[1]="default.htm";
men[2]="Request Information";
loc[2]="https://secure.netsolhost.com/keytops.com/req_info.htm";
men[3]="Request a Quote";
loc[3]="https://secure.netsolhost.com/keytops.com/req_quote.htm";
men[4]="Catalog..."
loc[4]="x"
men[5]="Online Catalog";
loc[5]="http://www.datacal.com/catalog.htm";
men[6]="Keyboards..."
loc[6]="x"
men[7]="Standard Keyboards";
loc[7]="http://www.datacal.com/keyboard-selector.htm";
men[8]="Custom Keyboards";
loc[8]="custom-keyboards.htm";
men[9]="Cherry Keyboards";
loc[9]="cherry-keyboards.htm";
men[10]="International Keyboards";
loc[10]="http://www.datacal.com/international-keyboards.htm";
men[11]="Programmable Keyboards";
loc[11]="programmable-keyboards.htm";
men[12]="Point of Sale";
loc[12]="pos-keyboards.htm";
men[13]="Keypads";
loc[13]="numeric-keypads.htm";
men[14]="Large Print Keyboards";
loc[14]="http://www.datacal.com/large-print-keyboard.htm";
men[15]="Color Coded Keyboards";
loc[15]="color-keyboards.htm";
men[16]="Black Keyboards";
loc[16]="black-keyboards.htm";
men[17]="Specialized<br>&nbsp;&nbsp;&nbsp;Keyboards...";
loc[17]="x";
men[18]="Mag Stripe Readers";
loc[18]="cherry-magsmart.htm";
men[19]="Bar Code Readers";
loc[19]="cherry-barcode.htm";
men[20]="Trackball";
loc[20]="cherry-point.htm";
men[21]="Touchpad"
loc[21]="cherry-point.htm";
men[22]="Mini / Small";
loc[22]="cherry-mini.htm"
men[23]="Accessories...";
loc[23]="x";
men[24]="Custom Mousepads";
loc[24]="custom-mousepads.htm";
men[25]="Protective Covers";
loc[25]="typing-cover-info.htm";
men[26]="Overlays";
loc[26]="keyboard-overlays.htm"
men[27]="Templates";
loc[27]="keyboard-templates.htm";
men[28]="Opaque Typing Masks";
loc[28]="typing-masks.htm";
men[29]="Custom Faceplates";
loc[29]="control-panel.htm";
men[30]="Logo Labels";
loc[30]="control-panel.htm";
men[31]="Special Use...";
loc[31]="x";
men[32]="Discreet Video Edit";
loc[32]="discreet-keyboards.htm";
men[33]="Video Edit Keyboards";
loc[33]="video-keyboards.htm";

	for (var i=0; i<=33; i++) {
		if(loc[i]=="x") {
			document.write('<p><font face="Arial" size="2"><b>'+men[i]+'</b></font><br>');
		} else {
			document.write('<a href="'+loc[i]+'" target="_top"><font face="Arial" size="1">'+men[i]+'</font></a><br>');
		}
	}
}

function drawFooter(pageval) {
switch(pageval) {
		case "1" :
			tx1='Keyboard'
			lk1='k_keybrd.htm'
			break;

		case "2" :
			tx1='Key'
			lk1='k_keys.htm'
			break;

		case "3" :
			tx1='Keycap'
			lk1='k_keycaps.htm'
			break;
	
		case "4" :
			tx1='Overlay'
			lk1='k_overlay.htm'
			break;

		case "5" :
			tx1='Mouse Pad'
			lk1='k_pads.htm'
			break;

		case "6" :
			tx1='Template'
			lk1='k_templates.htm'
			break;

		case "7" :
			tx1='Control Panel Faceplate'
			lk1='k_plates.htm'
			break;

		default : tx1='Label'
			lk1='k_labels.htm'
	}

document.write('<p>&nbsp;</p><table border="0" cellpadding="5" cellspacing="0"><tr><td><p align="center">');
document.write('<a href="'+lk1+'" target="_top"><img border="0" src="images/p_kit.gif" alt="Print a Planner" ');
document.write('width="70" height="54"></a></td>');
document.write('<td><font size="2" face="Arial"><font color="#FF0000"><b>Print a Planner</font><br><a href="'+lk1+'" target="_top"><font face="Arial" size="2">Print a Custom ');
document.write(tx1+' planner for your custom project preparation.</font></a></td></tr></table>');
}

function drawMail() {
	document.write('<p><font face="Arial" color="#800000" size="1"><b>DataCal Enterprises</b></font><font face="Arial" size="1" color="#800000"><br>');
	document.write('1345 N. Mondel Dr.<br>Gilbert, AZ 85233<br>USA<br>Phone: 800-223-0123<br>480-813-3100<br>Fax: 480-545-8090</font></p>');
	document.write('<p><font face="Arial" size="1" color="#800000">Copyright © 2004<br>DataCal Enterprises<br>');
	document.write('All rights reserved.</font></p><p><a href="mailto:'+'info'+'@datacal'+'.com">');
	document.write('<img border="0" src="images/mail.gif" width="37" height="29"></a><font face="Arial" size="1" color="#800000"><br>');
	document.write('</font></p>');
}	

function reqQuote() {
	document.write('<div align="left"><table border="0" cellpadding="3" cellspacing="3"><tr>');
	document.write('<td><a href="http://www.keytops.com/req_quote.htm" target="_top"><img border="0" src="images/quote.gif" align="left" width="116" height="32" alt="Request a quote"></a>')
	document.write('</td><td><font face="Arial" size="2">');
	document.write('Need more than one item of a product? Contact our Sales Department for a free quote.</font></td>');
	document.write('</tr></table></div>');
}

function drawAddon() {
	document.write('<div align="left"><table border="0" cellpadding="3" cellspacing="3" width="382"><tr>');
	document.write('<td colspan="2" width="366"><p align="center"><img border="0" src="images/bur_space.gif" width="300" height="5"></p>');
	document.write('</td></tr><tr><td width="127"><a href="http://www.keytops.com/customize-it.htm" target="_top">');
	document.write('<img border="0" src="images/cust_it3.gif" width="125" height="78" align="left" alt="Customize Products"></a></td>');
	document.write('<td width="227"><a href="http://www.keytops.com/add-typing-cover.htm" target="_top">');
	document.write('<img border="0" src="images/prot_it2.gif" width="135" height="79" align="right" alt="Protective Keyboard ');
	document.write('Covers"></a></td></tr><tr>');
	document.write('<td colspan="2" width="366"><p align="center"><img border="0" src="images/bur_space.gif" width="300" height="5"></p></td>');
	document.write('</tr><tr><td width="127"><a href="http://www.keytops.com/req_quote.htm" target="_top">');
	document.write('<img border="0" src="images/quote.gif" align="left" width="116" height="32" alt="Request a quote"></a></td>');
	document.write('<td width="227"><font face="Arial" size="2">Need more than one item of a product? <a href="http://www.keytops.com/req_quote.htm" target="_top"> ');
	document.write('Contact our Sales Department</a> for a free quote.</font></td></tr><tr><td width="127"><a href="https://secure.netsolhost.com/keytops.com/req_info.htm" target="_top">');
	document.write('<img border="0" src="images/get_info.gif" width="116" height="32" alt="Request information"></a></td>');
	document.write('<td width="227"><font face="Arial" size="2">Need more information about a product? <a href="https://secure.netsolhost.com/keytops.com/req_info.htm" target="_top"> ');
	document.write('Contact our Sales Department</a> for no-obligation assistance..</font></td></tr><tr>');
	document.write('<td colspan="2" width="366"><p align="center"><img border="0" src="images/bur_space.gif" width="300" height="5">');
	document.write('</p></td></tr></table></div>');
}

function drawAddon2() {
document.write('<div align="left"><table border="0" cellpadding="3" cellspacing="3" width="382"><tr>');
document.write('<td colspan="2" width="366"><p align="center"><img border="0" src="images/bur_space.gif" width="300" height="5"></p>');
document.write('</td></tr><tr><td width="127"><a href="http://www.keytops.com/customize-it.htm" target="_top">');
document.write('<img border="0" src="images/cust_it3.gif" width="125" height="78" align="left"></a></td>');
document.write('<td width="227"><a href="http://www.keytops.com/add-typing-cover.htm" target="_top">');
document.write('<img border="0" src="images/prot_it2.gif" width="135" height="79" align="right"></a></td></tr><tr>');
document.write('<td colspan="2" width="366"><p align="center"><img border="0" src="images/bur_space.gif" width="300" height="5"></p></td>');
document.write('</tr><tr><td width="127"><a href="http://www.keytops.com/req_quote.htm" target="_top">');
document.write('<img border="0" src="images/quote.gif" align="left" width="116" height="32" alt="Request a quote"></a></td>');
document.write('<td width="227"><font face="Arial" size="2">Need more than one item of a product? ');
document.write('Contact our Sales Department for a free quote.</font></td></tr><tr>');
document.write('<td colspan="2" width="366"><p align="center"><img border="0" src="images/bur_space.gif" width="300" height="5">');
document.write('</p></td></tr></table></div>');
}

function drawQuote() {
document.write('<div align="left"><table border="0" cellpadding="3" cellspacing="3" width="382"><tr>');
document.write('<td colspan="2" width="366"><p align="center"><img border="0" src="images/bur_space.gif" width="300" height="5"></p>');
document.write('</td></tr><tr><td width="127"><a href="http://www.keytops.com/req_quote.htm" target="_top">');
document.write('<img border="0" src="images/quote.gif" align="left" width="116" height="32" alt="Request a quote"></a></td>');
document.write('<td width="227"><font face="Arial" size="2">Need more than one item of a product? ');
document.write('Contact our Sales Department for a free quote.</font></td></tr><tr>');
document.write('<td colspan="2" width="366"><p align="center"><img border="0" src="images/bur_space.gif" width="300" height="5">');
document.write('</p></td></tr></table></div>');
}

function drawCustom() {
document.write('<p align="center"><img border="0" src="images/bur_space.gif" width="250" height="5"></p>');
document.write('<p align="center"><font face="Arial" size="2"><b>For information or custom price quotes on custom keycaps, ');
document.write('custom keyboards, custom mouse pads, custom overlays, and custom templates, call:<br></b></font><br>');
document.write('<font color="#FF0000" face="Arial" size="3"><b>1-800-459-7931<br>or 1-480-813-3100<br>Fax: 1-480-545-7212</b></font><br></p>');
}

function keyboardSel() {
document.write('<table border="0" cellspacing="0" cellpadding="0" background="images/back_tan.jpg"><tr>');
document.write('<td width="156" valign="top" align="center"><a href="http://www.keytops.com/default.htm" target="_top">');
document.write('<img border="0" src="images/dc_logoy.gif" width="154" height="69"></a>');
document.write('<br><font face="Arial" size="1"><a href="http://www.keytops.com/default.htm" target="_top"><b>Home</b></a>');
document.write(' - </font><a href="javascript:history.go(-1);"><font face="Arial" size="1"><b>Previous page</b></font></a></td>');

document.write('<td><form name="SelectType1"><select name="picker" size="1" onchange="GotoURL(this.form)">');
document.write('<option value="keyboard-selector.htm">Select a Keyboard by Type and Features</option>'); 
document.write('<option value="cherry-adv.htm" target="mainwin">Cherry Advanced Performance Keyboards</option>'); 
document.write('<option value="cherry-gp.htm" target="mainwin">Cherry General Purpose Keyboards</option>'); 
document.write('<option value="cherry-keypads.htm" target="mainwin">Numeric Keypads - Cherry</option>');
document.write('<option value="numeric-keypads.htm" target="mainwin">Numeric Keypads - Genovation</option>');
document.write('<option value="cherry/cherry-g81-1854.htm " target="mainwin">XT Compatible Keyboard/Terminal</option>');
document.write('<option value="keyboard-selector.htm">---- Keyboard Features ----------</option>'); 
document.write('<option value="cherry-barcode.htm" target="mainwin">Barcode Readers</option>'); 
document.write('<option value="cherry-black.htm" target="mainwin">Black');
document.write('<option value="discreet-keyboards.htm" target="mainwin">Discreet Video Editing</option>');
document.write('<option value="cherry-mini.htm" target="mainwin">Mini / Compact</option>');
document.write('<option value="international-keyboards.htm" target="mainwin">International Keyboards</option>');
document.write('<option value="large-print.htm" target="mainwin">Large Print</option>');
document.write('<option value="cherry-magsmart.htm" target="mainwin">Magstripe Reader</option>'); 
document.write('<option value="cherry-magsmart.htm" target="mainwin">Magstripe with Smart Card Readers</option>'); 
document.write('<option value="cherry-point.htm" target="mainwin">Pointing Devices on Keyboard</option>'); 
document.write('<option value="cherry-pointreader.htm" target="mainwin">Pointing Devices with Barcode Readers</option>'); 
document.write('<option value="cherry-program.htm" target="mainwin">Programmable / Reconfigurable Keyboards</option>'); 
document.write('<option value="cherry-smart.htm" target="mainwin">Smart Card Readers</option>'); 
document.write('<option value="cherry-point.htm" target="mainwin">Touchpads</option>');
document.write('<option value="cherry-track.htm" target="mainwin">Trackball</option>');
document.write('</select><input type="button" value="Go!" onclick="GotoURL(this.form)"></form>');

document.write('<form name="SelectType2"><select name="picker" size="1" onchange="GotoURL(this.form)">');
document.write('<option value="keyboard-selector.htm">Select Product by Brand and Model Number</option>'); 
document.write('<option value="cherry/cherry-g80-11900.htm" target="mainwin">Cherry G80-11900</option>');
document.write('<option value="cherry/cherry-g80-1800.htm " target="mainwin">Cherry G80-1800</option>');
document.write('<option value="cherry/cherry-g80-1950.htm " target="mainwin">Cherry G80-1950</option>');
document.write('<option value="cherry/cherry-g80-3000.htm " target="mainwin">Cherry G80-3000</option>');
document.write('<option value="cherry/cherry-g80-3700.htm " target="mainwin">Cherry G80-3700</option>');
document.write('<option value="cherry/cherry-g80-8010.htm " target="mainwin">Cherry G80-8010</option>');
document.write('<option value="cherry/cherry-g80-8015.htm " target="mainwin">Cherry G80-8015</option>');
document.write('<option value="cherry/cherry-g80-8113.htm " target="mainwin">Cherry G80-8113</option>');
document.write('<option value="cherry/cherry-g80-8116.htm " target="mainwin">Cherry G80-8116</option>');
document.write('<option value="cherry/cherry-g80-8117.htm " target="mainwin">Cherry G80-8117</option>');
document.write('<option value="cherry/cherry-g80-8200.htm " target="mainwin">Cherry G80-8200</option>');
document.write('<option value="cherry/cherry-g81-1854.htm " target="mainwin">Cherry G81-1854 (XT Compatible)</option>');
document.write('<option value="cherry/cherry-g81-12000.htm " target="mainwin">Cherry G81-12000</option>');
document.write('<option value="cherry/cherry-g81-12100.htm " target="mainwin">Cherry G81-12100</option>');
document.write('<option value="cherry/cherry-g81-1800.htm " target="mainwin">Cherry G81-1800</option>');
document.write('<option value="cherry/cherry-g81-3000.htm " target="mainwin">Cherry G81-3000</option>');
document.write('<option value="cherry/cherry-g81-7000.htm " target="mainwin">Cherry G81-7000</option>');
document.write('<option value="cherry/cherry-g81-7016.htm " target="mainwin">Cherry G81-7016</option>');
document.write('<option value="cherry/cherry-g81-7017.htm " target="mainwin">Cherry G81-7017</option>');
document.write('<option value="cherry/cherry-g81-8000.htm " target="mainwin">Cherry G81-8000</option>');
document.write('<option value="cherry/cherry-g81-8008.htm " target="mainwin">Cherry G81-8008</option>');
document.write('<option value="cherry/cherry-g81-8308.htm " target="mainwin">Cherry G81-8308</option>');
document.write('<option value="cherry/cherry-g83-6000.htm " target="mainwin">Cherry G83-6000</option>');
document.write('<option value="cherry/cherry-g83-6700.htm " target="mainwin">Cherry G83-6700</option>');
document.write('<option value="cherry/cherry-g83-6716.htm " target="mainwin">Cherry G83-6716</option>');
document.write('<option value="cherry/cherry-g83-6717.htm " target="mainwin">Cherry G83-6717</option>');
document.write('<option value="cherry/cherry-g83-6742.htm " target="mainwin">Cherry G83-6742</option>');
document.write('<option value="cherry/cherry-g83-13000.htm " target="mainwin">Cherry G83-13000 Cybo@rd Multimedia</option>');
document.write('<option value="cherry/cherry-g83-13800.htm " target="mainwin">Cherry G83-13800 Cordless Cybo@rd Multimedia</option>');
document.write('<option value="cherry/cherry-g84-4100.htm " target="mainwin">Cherry G84-4100</option>');
document.write('<option value="cherry/cherry-g84-4400.htm " target="mainwin">Cherry G84-4400</option>');
document.write('<option value="cherry/cherry-g84-4700.htm " target="mainwin">Cherry G84-4700</option>');
document.write('<option value="keypads/keypad-628.htm" target="mainwin">Genovation Keypad 628</option>');
document.write('<option value="keypads/controlpad-682.htm" target="mainwin">Genovation Controlpad 682</option>');
document.write('<option value="keypads/controlpad-683.htm" target="mainwin">Genovation Controlpad 683</option>');
document.write('<option value="keypads/keypad-623.htm" target="mainwin">Genovation Keypad 623</option>');
document.write('<option value="keypads/keypad-623a.htm" target="mainwin">Genovation Keypad 623a</option>');
document.write('<option value="keypads/keypad-631.htm" target="mainwin">Genovation Keypad 631</option>');
document.write('<option value="keypads/keypad-632.htm" target="mainwin">Genovation Keypad 632</option>');
document.write('<option value="keypads/pos-page-854.htm" target="mainwin">Genovation POS-Page 854</option>');
document.write('<option value="keypads/pos-page-854a.htm" target="mainwin">Genovation POS-Page 854a</option>');
document.write('<option value="keypads/pos-page-865.htm" target="mainwin">Genovation POS-Page 865</option>');
document.write('<option value="keypads/pos-page-865a.htm" target="mainwin">Genovation POS-Page 865a</option>');
document.write('<option value="keypads/pos-page-865ab.htm" target="mainwin">Genovation POS-Page 865ab</option>');
document.write('<option value="keypads/pos-page-865b.htm" target="mainwin">Genovation POS-Page 865b</option>'); 
document.write('</select><input type="button" value="Go!" onclick="GotoURL(this.form)"></center></form></td></tr></table></div>');
}

function GotoURL(f) { 
   location.href = f.picker.options[f.picker.selectedIndex].value; 
} 
 
// * * * * * * * * * * * Shopping Cart Functions below
function formDol(Amt) { 
	x=eval(Amt); 
	dVal=0; 
	cVal=0; 
	y=0; 
	z=0; 
	if (x< 1) { 
		dVal="0"; 
	} else { 
		dVal=parseInt(x); 
	} 
	if (x-dVal==0) { 
		y=0; 
	} else { 
		y = parseInt(((x+.008)-dVal)*100); 
		if(y==100) { 
			y=0; 
			dVal=dVal+1; 
		} 
	} 
	z=y; 
	cVal=y; 
	if(y> 1 && y <10) { 
		cVal="0"+z; 
	} else if(y<1) { 
		cVal="00"; 
	} 
	newAmt = dVal+"."+cVal; 
	return(newAmt); 
} 
  
function addProd(aSku,aProd,aPrice,aQuan) { 
	if (aQuan <=0) { 
		rc = alert('The quantity entered is incorrect'); 
	} else if(confirm('Add '+aQuan+' '+aProd+'(s)\nto the shopping cart?')) { 
		list = document.cookie.indexOf("ShopCart"); 
		xxb = document.cookie.indexOf("=",list)+1; 
		xxe = document.cookie.indexOf(";",list); 
		if (xxe == -1) { 
			xxe = document.cookie.length; 
		} 
		document.cookie = "ShopCart="+document.cookie.substring(xxb,xxe)+"["+aSku+"~"+aProd+"~"+aPrice+"~"+aQuan+"]"; 
	} else 
		return 
} 

//--save the tax and shipping charges to cookie  
function calcTax(azTax,aShip,aOther,loc) { 
	if (aShip=='0'){ 
		rc=alert('You must specify a shipping method'); 
	} else if (confirm('Tax and Shipping are correct?')) { 
		document.cookie="CartCosts="+"["+azTax+"~"+aShip+"~"+aOther+"]"; 
		parent.mainwin.location.href="order2.htm";
	} else 
		return 
} 

//--empty the shopping cart
function emptyCart() { 
	if (confirm('Select the OK button to\nempty the Shopping Cart.')) { 
		document.cookie="ShopCart=."; 
		document.cookie="CartCost=."; 
		top.frames[2].location="vu_cart.htm"; 
	} 
} 

//--start a new shopping cart
function newCart() { 
	if (confirm('Select the OK button to\nstart a new Shopping Cart.')) { 
		document.cookie="ShopCart=."; 
		document.cookie="CartCost=."; 
		top.frames[2].location="maincat.htm"; 
	} 
} 

//--process the order and display it
function orderCart() {
	// Note: taxRate is temporary line
	cktran=''
	taxRate=.078;
	cartCalc='';
	// get the CartCost cookie contents
	var Costs="CartCosts=";
	var dc=document.cookie
	if (dc.length > 0) {
		list = dc.indexOf(Costs);
		xxb = (dc.indexOf("=",list)+1);
		xxe = dc.indexOf(";",list);
		if (xxe == -1) {
			xxe = dc.length;
		}
		cartCalc = dc.substring(xxb,xxe);
	}
	azTax=0;
	shipType=0;
	taxType=0;
	//Following are discount rates
	// uDisc controls discount 1=yes, 0=no
	uDisc=1;
	disc_1=.05;
	// Next, break out the contents of the CartCost cookie
	costList=0;
	for (var i=0; i<=cartCalc.length; i++) {
	if (cartCalc.substring(i,i+1)=="[") {
		xyb=i+1;
		cost=1
		costList=costList+1;
	} else if (cartCalc.substring(i,i+1)=="~") {
		if (cost==1) azTax=cartCalc.substring(xyb,i);
		if (cost==2) shipType=cartCalc.substring(xyb,i);
		cost++;
		xyb=i+1;
	} else if (cartCalc.substring(i,i+1)=="]") {
		xye=i;
		taxType=cartCalc.substring(xyb,i);
	}
	}
	list=document.cookie.indexOf("ShopCart");
	xxb=(document.cookie.indexOf("=",list)+1);
	xxe=document.cookie.indexOf(";",list);
	if (xxe==-1) {
		xxe=document.cookie.length;
	}
	cartList=document.cookie.substring(xxb,xxe);
	cktran=document.cookie.substring(xxb,xxe);
	// end of routine to get the ShopCart cookie contents
	totalAmt=0;
	document.writeln('<table border="2">');
	document.writeln('<tr><td><b>#</b></td><td><b>SKU</b></td><td><b>Product</b></td><td align="center"><b>Quantity</b></td><td align="center"><b>Unit Price</b></td><td align="center"><b>Total Amount</b></td></tr>');
	prodList=0;
	theQuantity=0;
	thePrice=0;
	prodPrice=0;
	tempAmt=0;
	theSku='';
	theProd='';
	shipCost=0;
	totalAmt=0;
	prodAmt=0;
	subTtl=0;
	stateTax=0;
	shipFac=0;
	// Next, get the contents of the ShopCart cookie
	for (var i=0; i<=cartList.length; i++) {
	if (cartList.substring(i,i+1)=="[") {
		xyb=i+1;
		prod=1;
		prodList=prodList+1;
	} else if (cartList.substring(i,i+1)=="~") {
		if (prod==1) theSku=cartList.substring(xyb,i);
		if (prod==2) theProd=cartList.substring(xyb,i);
		if (prod==3) thePrice=cartList.substring(xyb,i);
		prod++;
		xyb=i+1;
	} else if (cartList.substring(i,i+1)=="]") {
	xye=i;
	theQuantity=cartList.substring(xyb,i);
	prodPrice=(eval(thePrice*theQuantity));
	subTtl=subTtl+prodPrice;
	document.writeln('<tr><td>'+prodList+'</td><td>'+theSku+'</td><td>'+theProd+'</td><td align="center">'+theQuantity+'</td><td align="right">$'+formDol(thePrice)+'</td><td align="right">$'+formDol(prodPrice)+'</td></tr>');
	document.writeln('<input type="hidden" name="sku'+prodList+'" value="'+theSku+'" size="12">');

	document.writeln('<input type="hidden" name="prod'+prodList+'" value="'+theProd+'" size="40">');
	document.writeln('<input type="hidden" name="quantity'+prodList+'" value="'+theQuantity+'" size="10">');
	document.writeln('<input type="hidden" name="priceeach'+prodList+'" value="'+formDol(thePrice)+'" size="12">');
	document.writeln('<input type="hidden" name="totalcost'+prodList+'" value="'+formDol(prodPrice)+'" size="12">');
	}
}
	document.writeln('<tr><td align="right" colspan="5"><b>Sub Total:</b></td><td align="right">$'+formDol(subTtl)+'</td></tr>');
	totalAmt=eval(subTtl);

	if(uDisc==1) {
		cdisc=subTtl*disc_1;
		tdisc=disc_1*100;
		subTtl=totalAmt-(cdisc+.005);
		document.writeln('<tr><td align="right" colspan="5"><font color="#FF0000"><b>Your Discount for ordering from our Web Site is:</b></td><td align="right">$'+formDol(cdisc)+'</font></td></tr>');
		document.writeln('<input type="hidden" name="cdisc" value="'+formDol(cdisc)+'">');
		document.writeln('<input type="hidden" name="tdisc" value="'+tdisc+'">');
		totalAmt=subTtl;
	}

	document.writeln('<tr><td align="right" colspan="5"><b>Sub Total:</b></td><td align="right">$'+formDol(subTtl)+'</td></tr>');
	document.writeln('<input type="hidden" name="subTotal" value="'+formDol(subTtl)+'" size="12">');

	if (azTax==1) {
		stateTax=(eval(subTtl*taxRate)+0);
		formDol(stateTax);
		document.writeln('<tr><td align="right" colspan="5"><b>Arizona State Sales Tax:</b></td><td 		align="right">$'+formDol(stateTax)+'</td></tr>');
		totalAmt=totalAmt+stateTax;
	}

	// display shipping cost
	if (shipType==2) {
		shipCost=0;
		ship="Overnight";
		document.writeln('<tr><td align="right" colspan="5"><b>Shipping Cost (Overnight):</b></td><td align="right">Will call *</td></tr>');
	} else if (shipType==3) {
		shipCost=0;
		ship="International";
		document.writeln('<tr><td align="right" colspan="5"><b>Shipping Cost (International):</b></td><td align="right">Will call *</td></tr>');
	} else {
		ship="Standard Ground"
		if (subTtl<=49.99) {
			shipCost=4.95;
		} else if (subTtl<=99.99) {
			shipCost=6.95;
		} else {
			shipCost=7.95;
		}
	totalAmt=totalAmt+shipCost
	document.writeln('<tr><td align="right" colspan="5"><b>Standard Ground Shipping Cost:</b></td><td align="right">$'+formDol(shipCost)+'</td></tr>');
	}
	document.writeln('<input type="hidden" name="ship" value="'+ship+'">');
	document.writeln('<input type="hidden" name="cc_nu" value="">');



	canTax=''
	canPerc=0
	otherTax=0
	if (taxType==1) {
		canTax="Labrador (15%)";
		canPerc=.15;
	} else if(taxType==2) {
		canTax="New Brunswick HST - 15%";
		canPerc=.15;
	} else if(taxType==3) {
		canTax="Newfoundland HST - 15%";
		canPerc=.15;
	} else if(taxType==4) {
		canTax="Novia Scotia HST - 15%";
		canPerc=.15;
	} else if(taxType==5) {
		canTax="Canada GTS - 7%";
		canPerc=.07;
	}
	if (taxType!=0) {
		otherTax=subTtl*canPerc
		document.writeln('<tr><td align="right" colspan="5"><b>Other Tax: ('+canTax+')</b></td><td align="right">$'+formDol(otherTax)+'</td></tr>');
		totalAmt=totalAmt+otherTax;
	}
	document.writeln('<tr><td align="right" colspan="5"><b>Total Amount:<b></td><td align="right">$'+formDol(totalAmt)+'</td></tr>');

	if (shipType==2) {
		shipCost=0;
		document.writeln('<tr><td align="left" colspan="5">* A Customer Service Representative will call or email you on the next business day with the Overnight Shipping costs.</td><td align="center">Total does not include shipping.</td></tr>');
	} else if (shipType==3) {
		shipCost=0;
		document.writeln('<tr><td align="left" colspan="5">* A Customer Service Representative will call or email you on the next business day with the International Shipping costs.</td><td align="center">Total does not include shipping.</td></tr>');
	} else if (shipType==4) {
		shipCost=0;
			document.writeln('<tr><td align="left" colspan="5">* A Customer Service Representative will call or email on the next business day with the shipping costs for heavy items.</td><td align="center">Total does not include shipping.</td></tr>');
	}
	document.writeln('</table>');
	document.writeln('<input type="hidden" name="stax" value="'+formDol(stateTax)+'"><input type="hidden" name="shipamt" value="'+formDol(shipCost)+'"><input type="hidden" name="products" value="'+cktran+'">');

	document.writeln('<input type="hidden" name="ctax" value="'+formDol(otherTax)+'"><input type="hidden" name="totamt" value="'+formDol(totalAmt)+'"><input type="hidden" name="ship" value="'+shipType+'">');

	}

// start of showCart() function - function displays the contents of the shopping cart in a table
	function showCart() {
		// get the contents of the ShopCart cookie
		cartList=''
		uDisc=1;
		disc_1=.05;
		subTotal=0;
		cDisc=0;
		var Cart = "ShopCart" + "=";
		var dc = document.cookie
		if (dc.length > 0) {
			xxb = dc.indexOf(Cart);
			if (xxb!=-1) {
				xxb+=Cart.length;
				xxe=dc.indexOf(";",xxb);
				if (xxe==-1) xxe=dc.length;
					cartList=dc.substring(xxb,xxe);
			}
		}
		// following line is temporary
//		document.writeln(cartList);
		totalAmt=0
		document.writeln('<form name="cartlist">');
		document.writeln('<table border>');
		document.writeln('<tr><td align="center"><b>#</b></td><td><b>SKU</b></td><td><b>Product </b></td><td><b>Quantity</b></td><td><b>Unit Price</b></td><td><b>Total Amount</b></td><td><b>Action</b></td></tr>');
		prodList=0;
		theQuantity=0;
		thePrice='';
		prodPrice=0;
		tempAmt=0;
		theSku='';
		theProd='';
		totalAmt=0;
		for (var i = 0; i <= cartList.length; i++) {
			if (cartList.substring(i,i+1)=="[") {
				xyb=i+1;
				prod=1;
				prodList=prodList+1;
			} else if (cartList.substring(i,i+1)=="~") {
				if (prod==1) theSku=cartList.substring(xyb,i);
				if (prod==2) theProd=cartList.substring(xyb,i);
				if (prod==3) thePrice=cartList.substring(xyb,i);
				prod++;
				xyb=i+1;
			} else if (cartList.substring(i,i+1)=="]") {
				xye=i;
				theQuantity=cartList.substring(xyb,i);
				prodPrice=eval(thePrice*theQuantity);
				totalAmt=totalAmt+prodPrice;

				document.writeln('<tr><td align="left">'+prodList+'</td><td>'+theSku+'</td><td>'+theProd+'</td><td align="center">'+theQuantity+'</td><td align="right"> $'+formDol(thePrice)+'</td><td align="right"> $'+formDol(prodPrice)+'</td><td><a href="javascript:delProd('+prodList+')">Remove</a></td></tr>');
			}
		}

					subTotal=totalAmt;
					if(uDisc==1) {
					cDisc=subTotal*disc_1;
					subTotal=totalAmt-(cDisc+.005);
					document.writeln('<tr><td align="right" colspan="5"><font color="#FF0000"><b>Your Discount for ordering from our web site is:</b></td><td align="right">$'+formDol(cDisc)+'</font></td><td>&nbsp;</td></tr>');
//					document.writeln('<tr><td align="right" colspan="5"><b>Total Amount (plus shipping & applicable taxes):</b></td><td align="right">$'+formDol(cDisc)+'</td><td>&nbsp;</td></tr>');
					totalAmt=subTotal
				}
				document.writeln('<tr><td align="right" colspan="5"><b>Subtotal (does not include shipping & applicable taxes):</b></td><td align="right">$'+formDol(totalAmt)+'</td><td>&nbsp;</td></tr>');
				document.writeln('</table>');
	}
// end of showCart function

// start of delProd function - function removes an item from the Shopping Cart
	function delProd(prodNo) {
		if (confirm('Remove item #'+prodNo)) {
			newList=null;
			prodList=0;
			for (var i = 0; i <=cartList.length; i++) {
				if (cartList.substring(i,i+1)=="[") {
					xyb=i+1;
				} else if (cartList.substring(i,i+1)=="]") {
					xye= i;
					theProd=cartList.substring(xyb,xye);
					prodList=prodList+1
					if (prodList!=prodNo) {
						newList=newList+'['+cartList.substring(xyb,xye)+']';
					}
				}
			}
			document.cookie="ShopCart="+newList;
			top.frames[2].location="vu_cart.htm";
		}
	}
// end of delProd function

// Check to see if the Name field is blank
function isName(form) {
	if (form.name.value == "") {
		return false;
	}
	else {
		return true;
	}
}
// Check to see if the first line of address field is blank
function isAddr1(form) {
	if (form.adr1.value == "") {
		return false;
	}
	else {
		return true;
	}
}
// Check to see if the city field is blank
function isCity(form) {
	if (form.city.value == "") {
		return false;
	}
	else {
		return true;
	}
}
// Check to see if the state field is blank
function isState(form) {
	if (form.state.options[form.state.selectedIndex].value =="") {
			return false;
	}
	else {
		return true;
	}
}
// Check to see if the zip code field is blank
function isZip(form) {
	if (form.zip.value == "") {
		return false;
	}
	else {
		return true;
	}
}
// Check for a valid email in the email field
function isEmail(form) {
	if ((form.email.value == "" || form.email.value.indexOf('@', 0) == -1) || form.email.value.indexOf('.') == -1) {
		return false;
	}
	else {
		return true;
	}
}
// Check to see if the Phone field is blank
function isPhone(form) {
	if(form.telephone.value == "") {
		return false;
	}
	else {
		return true;
	}
}
// Check to see if the zip code field is blank
function isSource(form) {
	if (form.source.value == "") {
		return false;
	}
	else {
		return true;
	}
}
// Check to see if the credit card month field is blank
function isMonth(form) {
	if (form.month.options[form.month.selectedIndex].value =="") {
			return false;
	}
	else {
		return true;
	}
}
// Check to see if the credit card year field is blank
function isYear(form) {
	if (form.year.options[form.year.selectedIndex].value =="") {
			return false;
	}
	else {
		return true;
	}
}
// Check to see if the credit card type field is blank
function isPayment(form) {
	if (form.payment.options[form.payment.selectedIndex].value =="") {
			return false;
	}
	else {
		return true;
	}
}
// Check to see if the credit card number field is blank
function isccNu(form) {
	if(form.cardnumber.value == "") {
		return false;
	}
	else {
		return true;
	}
}
// Check to see if the credit card name field is blank
function isccName(form) {
	if(form.cardname.value == "") {
		return false;
	}
	else {
		return true;
	}
}

// Check all elements in general mail module; if OK, then mail the form data
function genMail(form) {
	Flag=false;
	isName(form);
	isState(form);
	isPhone(form);
	isEmail(form);

	if((isName(form) && isEmail(form)) && (isPhone(form) && isState(form))) {
            Flag = true;
	}


	if((isName(form) == false || isEmail(form) == false) || (isPhone(form) == false || isState(form) == false)) {
             Flag = false;

// Display the fields that are incorrect if the form didn't send
	var text = "Incorrect or missing input in these required fields:\n";
	if(isName(form) == false) {
		text += "\nName";
	}
      if (isState(form) == false) {
            text += "\nState";
      }
	if (isPhone(form) == false) {
		text += "\nPhone number";
	}
	if (isEmail(form) == false) {
		text += "\nEmail address";
	}
      text += "\n\nThis form cannot be submitted."
      alert(text);
	}

	if (Flag == true) {
	    form.onSubmit = "return true";
	}
	else if (Flag != true)
	{
	return false
	}
}

function doConv(cnu,mo,yr) {
	rtxt = "";
	jtxt="zrstevcwhuijaqnxoptdlmby";
//	str = document.cartorder.cardnumber.value;
	str=cnu
      for (i = 0; i <= str.length; i++)
      rtxt = jtxt.substring(i,i+1)+str.substring(i, i+1) + rtxt;

	document.cartorder.cc_nu.value=rtxt;
//	mo=document.cartorder.month.value;
//	yr=document.cartorder.year.value
	document.cartorder.cardexp.value = mo +'/'+ yr;

}
// Check all elements in order form mail module; if OK, then mail the order form data
function ordMail(form) {
	Flag=false;
	isName(form);
	isAddr1(form);
	isCity(form);
	isState(form);
	isPhone(form);
	isZip(form);
	isEmail(form);
	isMonth(form);
	isYear(form);
	isccNu(form);
	isccName(form);
	isPayment(form);

	if((isName(form) && isEmail(form)) && (isPhone(form) && isCity(form) && isAddr1(form) && isMonth(form) && isYear(form) && isccNu(form) && isccName(form) && isPayment(form) && isZip(form) && isState(form))) {

	// store the order address info in a cookie
	var fData  = document.cartorder.name.value + "|";
	fData += document.cartorder.company.value + "|";
	fData += document.cartorder.adr1.value + "|";
	fData += document.cartorder.adr2.value + "|";
	fData += document.cartorder.city.value + "|";
	fData += document.cartorder.state.value + "|";
	fData += document.cartorder.zip.value + "|";
	fData += document.cartorder.country.value + "|";
	fData += document.cartorder.telephone.value + "|";
	fData += document.cartorder.fax.value + "|";
	fData += document.cartorder.email.value + "|";
	fData += document.cartorder.payment.value + "|";
	fData += document.cartorder.cardname.value + "|";
	fData += document.cartorder.month.value + "|";
	fData += document.cartorder.year.value + "|";
	fData += document.cartorder.cardnumber.value + "|";
	fData += document.cartorder.sname.value + "|";
	fData += document.cartorder.scompany.value + "|";
	fData += document.cartorder.sadr1.value + "|";
	fData += document.cartorder.sadr2.value + "|";
	fData += document.cartorder.scity.value + "|";
	fData += document.cartorder.sstate.value + "|";
	fData += document.cartorder.szip.value + "|";
	fData += document.cartorder.scountry.value + "|";
	fData += document.cartorder.stelephone.value +"|";
	fData += document.cartorder.instru.value;

	document.cookie="OrderInfo="+escape(fData);
            Flag = true;
	}

	if((isName(form) == false || isEmail(form) == false) || (isPhone(form) == false || isCity(form) == false || isMonth(form) == false || isYear(form) == false || isccNu(form) == false || isccName(form) == false || isPayment(form) == false || isState(form) == false || isZip(form) == false || isAddr1(form) == false)) {
             Flag = false;

// Display the fields that are incorrect if the form didn't send
	var text = "Incorrect or missing input in these required fields:\n";
	if(isName(form) == false) {
		text += "\nName";
	}
	if(isAddr1(form) == false) {
		text += "\nAddress line 1";
	}
	if(isCity(form) == false) {
		text += "\nCity";
	}
      if (isState(form) == false) {
            text += "\nState";
      }
      if (isZip(form) == false) {
            text += "\nZip code";
      }
	if (isPhone(form) == false) {
		text += "\nPhone number";
	}
	if (isEmail(form) == false) {
		text += "\nEmail address";
	}
	if (isMonth(form) == false) {
		text += "\nCredit card expiration MONTH";
	}
	if (isYear(form) == false) {
		text += "\nCredit card expiration Year";
	}
	if (isccName(form) == false) {
		text += "\nName on Credit card";
	}
	if (isccNu(form) == false) {
		text += "\nCredit card number";
	}
	if (isPayment(form) == false) {
		text += "\nCredit card type";
	}

      text += "\n\nThis order cannot be submitted."
      alert(text);
	}

	if (Flag == true) {
	    form.onSubmit = "return true";
	}
	else if (Flag != true)
	{
	return false
	}
}

function enText(strToEnc) {
	var numbers = '1234567890'
	var lowercase = 'abcdefghijklmnopqrstuvwxyz'
	var uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
	var special = "'"
	var special2 = ' `~!@#$%^&*()-_=+\|}]{[":;?/<.,>'
	var special3 = ''
	var characters = numbers + lowercase + uppercase + special + special2 + special3
	var charLength = characters.length
	var bytes = 0

	var reverse = ''
	strLength = strToEnc.length
	for (var i = strLength; i >= 1; i = i - 1) {
		z = strToEnc.charAt(i - 1)
	reverse += z
	}

	strToEnc = reverse
	var bytes = 0
	strLength = strToEnc.length
	if (strLength > 19703) {
		}
		else
		{
		encodedStr = ''
		var now = new Date()
		var randomn = now.getSeconds()%89 + 10 //Math.round(Math.random()*89 + 10)
		var randomn=randomn+10
		for (var i = 0; i < strLength; i++) {
			for (var o = 0; o < charLength; o++)
		{
			if (characters.charAt(o)==strToEnc.charAt(i)) {
				z = eval(9997 + (randomn * 2) + (o * 3) + (i * 4))
				encodedStr += z
				bytes = bytes + 1
			}
		}
	}
//	encodedStr += randomn
//	document.cartorder.cc_en.value = encodedStr
	document.cartorder.cc_en.value += randomn
	}
}

function parkCookie() {
var Ovlpge="../dce/HomeSet_KT.htm";
winpops=window.open(Ovlpge,"","width=50,height=50,scrollbars=no,menubar=no,resizable=no,");
}

//-->



