function DisplayProd(Prodtitle, Prodname, Prodid, Prodtotal)
{
    var title = Prodtitle;
	var name = Prodname;
	var itemid = Prodid;
	var total = Prodtotal;   
   document.write("<span id='productname' style='display:none'>"+name+"</span><table width='80%' cellpadding='0' cellspacing='0' align='center' border='0'><tr>");
   document.write("<td colspan='4' align='left'><font color='black' style='font-size:1.6em; font-weight:bold;'>"+title+" Pad</font></td><td>Back to <a href='pads.php'>Pads</a></tr>");
   document.write("<tr><td rowspan='2' align='center' valign='top'><br /><table border='0' cellpadding='0' cellspacing='0' width='200'><tr><td rowspan='2'><img name='red1' src='custom/red.jpg' width='98' height='158' border='0' id='Inner' alt='' /></td><td><img name='red2' src='custom/red2.jpg' width='102' height='158' border='0' id='Accent' alt='' /></td></tr></table>(open)<br><br><img src='custom/closed.jpg' id='Outer' /><br>(closed)<br><br><br><a href='imgs/big"+name+".jpg' rel='thumbnail'><img src='graphics/enlarge.jpg' border='0' /></a><br><small>(Shows Open Pad)</small><br><br><a href='imgs/bigPads.jpg' rel='thumbnail'><img src='graphics/enlarge.jpg' border='0' /></a><br><small>(Shows All Views / Stock Colors)</small></td><td><img src='custom/spacer.gif' width='55' height='50' /></td>");
   document.write("<td height='50%' valign='top'>");
   ColorPalnoBlackVinyl('Inner Flap','Inner');
   document.write("</td>");
   document.write("<td valign='top'>");
   ColorPalnoBlackVinyl('Accent','Accent');
   document.write("</td>");
   document.write("<td valign='top'>");
   ColorPalnoBlackVinyl('Outer Flap','Outer');
   document.write("</td></tr><tr>");
   document.write("<td align='right' colspan='4' valign='top'>");
   ScreenLogo('ScreenLogo');
   ColorList('ShoulderStraps','Straps');
   ColorList('TopShell','Top');
   ColorList('BottomShell','Bottom');
   document.write("<a id='checkcustomtext' href='javascript:callToCustomText()'><font style='font-size:1.0em;'>Add Custom Text</font></a>&nbsp;<small>(add $7)</small><br><iframe id='Updater' frameborder='0' border='0' src='mycustomtext.php?name="+name+"' height='150' width='100%' SCROLLING=NO></iframe>");
   document.write("</td></tr><tr><td colspan='5' align='center'><hr color='red' width='100%'></td></tr><tr>");
   document.write("<td align='center'><a id='orderbutton' href='cart.php?action=add_item&id="+itemid+"&name="+title+"&qty=1&price="+total+"&custom=y' onClick='submitform()'><img src='imgs/order.gif' border='0' /></a></td><td colspan='4' align='left'><font style='font-size:1.6em; font-weight:bold;'>Base: $"+total+" each</font></td></tr><tr><td colspan='5' align='left'><font style='font-size:.9em; font-weight:bold; color:#666666;'>Please allow up to 2 weeks for production time on all custom orders.<br>Rush orders available upon request. *Actual color shades may vary slightly.</font></td></tr>");
   document.write("</table>");
   
 } //** DisplayProd() **//
 
 

function ColorList(Palname,Palcode)
{
	var name = Palname;
	var code = Palcode;
	
	document.write("<table width='95%' border='0' cellspacing='1' cellpadding='0'><tr><td nowrap='nowrap' align='right'>"+name+":</td><td width='50%' align='right'><select id='"+code+"' onchange='SaveOption(&quot;"+code+"&quot;,this.options[this.selectedIndex].value)'><option value='Red'>Red</option><option value='Blue'>Blue</option><option value='Yellow'>Yellow</option><option value='Black'>Black</option><option value='Green'>Green</option><option value='Burgundy'>Burgundy</option><option value='NeonYellow'>NeonYellow</option><option value='Brown'>Brown</option><option value='NavyBlue'>NavyBlue</option><option value='NeonOrange'>NeonOrange</option><option value='Pink'>Pink</option><option value='Purple'>Purple</option><option value='Salmon'>Salmon</option><option value='Smoke'>Smoke</option><option value='White'>White</option><option value='Ballistic Nylon'>Ballistic Nylon</option><option value='BlackVinyl'>BlackVinyl</option><option value='Camo'>Camo</option></select></td></tr></table>");
	
}
function ColorListnoBall(Palname,Palcode)
{
	var name = Palname;
	var code = Palcode;
	
	document.write("<table width='95%' border='0' cellspacing='1' cellpadding='0'><tr><td nowrap='nowrap' align='right'>"+name+":</td><td width='50%' align='right'><select id='"+code+"' onchange='SaveOption(&quot;"+code+"&quot;,this.options[this.selectedIndex].value)'><option value='Red'>Red</option><option value='Blue'>Blue</option><option value='Yellow'>Yellow</option><option value='Black'>Black</option><option value='Green'>Green</option><option value='Burgundy'>Burgundy</option><option value='NeonYellow'>NeonYellow</option><option value='Brown'>Brown</option><option value='NavyBlue'>NavyBlue</option><option value='NeonOrange'>NeonOrange</option><option value='Pink'>Pink</option><option value='Purple'>Purple</option><option value='Salmon'>Salmon</option><option value='Smoke'>Smoke</option><option value='White'>White</option><option value='BlackVinyl'>BlackVinyl</option><option value='Camo'>Camo</option></select></td></tr></table>");
	
}
 
	
function ColorPal(Palname,Palcode)
{
	var name = Palname;
	var code = Palcode;
	/*document.write("<table width='100%' border='1'>");
	document.write("<tr><td width=15><img src='imgs/c_blue.gif' width='15' height='15' /></td>");
	document.write("<td width=15><img src='imgs/c_blue.gif' width='15' height='15' /></td>");
	document.write("</tr></table>");
	*/
	document.write("<table border='1' cellspacing='1' cellpadding='0'><tr align='left' valign='top'><td colspan='5' align='center' valign='top'><b>"+name+"</b></td></tr><tr><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Red&quot;);'><img src='imgs/c_red.gif' width='15' height='15' border='0' name='C00' title='Red'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Blue&quot;);'><img src='imgs/c_blue.gif' width='15' height='15' border='0' name='C00' title='Blue'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Yellow&quot;);'><img src='imgs/c_yellow.gif' width='15' height='15' border='0' name='C00' title='Yellow'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Black&quot;);'><img src='imgs/c_black.gif' width='15' height='15' border='0' name='C00' title='Black'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Green&quot;);'><img src='imgs/c_green.gif' width='15' height='15' border='0' name='C00' title='Green'></a></td></tr><tr><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Burgundy&quot;);'><img src='imgs/c_burgundy.gif' width='15' height='15' border='0' name='C00' title='Burgundy'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;NeonYellow&quot;);'><img src='imgs/c_neonyellow.gif' width='15' height='15' border='0' name='C00' title='NeonYellow'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Brown&quot;);'><img src='imgs/c_brown.gif' width='15' height='15' border='0' name='C00' title='Brown'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;NavyBlue&quot;);'><img src='imgs/c_navyblue.gif' width='15' height='15' border='0' name='C00' title='NavyBlue'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;NeonOrange&quot;);'><img src='imgs/c_orange.gif' width='15' height='15' border='0' name='C00' title='NeonOrange'></a></td></tr><tr><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Pink&quot;);'><img src='imgs/c_pink.gif' width='15' height='15' border='0' name='C00' title='Pink'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Purple&quot;);'><img src='imgs/c_purple.gif' width='15' height='15' border='0' name='C00' title='Purple'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Salmon&quot;);'><img src='imgs/c_salmon.gif' width='15' height='15' border='0' name='C00' title='Salmon'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Smoke&quot;);'><img src='imgs/c_smoke.gif' width='15' height='15' border='0' name='C00' title='Smoke'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;White&quot;);'><img src='imgs/c_white.gif' width='15' height='15' border='0' name='C00' title='White'></a></td></tr><tr><td colspan='5' align='center'>1000d Nylon<hr>");
	Ballistic(code,name);
	document.write("<hr>Black Vinyl<br><a href='javascript:void(0);' onclick='SaveBallistic(&quot;"+code+"&quot;,&quot;BlackVinyl&quot;);'><img src='imgs/c_black.gif' width='20' height='20' border='0' title='Black Vinyl'></a>&nbsp;<a href='javascript:void(0);' onclick='SaveCamo(&quot;"+code+"&quot;,&quot;Camo&quot;);'><img src='imgs/c_camo.gif' width='20' height='20' border='0' title='Camo'></a><br>or Camo</td></tr></table>");
	
}
function ColorPalnoBlackVinyl(Palname,Palcode)
{
	var name = Palname;
	var code = Palcode;
	/*document.write("<table width='100%' border='1'>");
	document.write("<tr><td width=15><img src='imgs/c_blue.gif' width='15' height='15' /></td>");
	document.write("<td width=15><img src='imgs/c_blue.gif' width='15' height='15' /></td>");
	document.write("</tr></table>");
	*/
	document.write("<table border='1' cellspacing='1' cellpadding='0'><tr align='left' valign='top'><td colspan='5' align='center' valign='top'><b>"+name+"</b></td></tr><tr><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Red&quot;);'><img src='imgs/c_red.gif' width='15' height='15' border='0' name='C00' title='Red'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Blue&quot;);'><img src='imgs/c_blue.gif' width='15' height='15' border='0' name='C00' title='Blue'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Yellow&quot;);'><img src='imgs/c_yellow.gif' width='15' height='15' border='0' name='C00' title='Yellow'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Black&quot;);'><img src='imgs/c_black.gif' width='15' height='15' border='0' name='C00' title='Black'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Green&quot;);'><img src='imgs/c_green.gif' width='15' height='15' border='0' name='C00' title='Green'></a></td></tr><tr><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Burgundy&quot;);'><img src='imgs/c_burgundy.gif' width='15' height='15' border='0' name='C00' title='Burgundy'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;NeonYellow&quot;);'><img src='imgs/c_neonyellow.gif' width='15' height='15' border='0' name='C00' title='NeonYellow'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Brown&quot;);'><img src='imgs/c_brown.gif' width='15' height='15' border='0' name='C00' title='Brown'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;NavyBlue&quot;);'><img src='imgs/c_navyblue.gif' width='15' height='15' border='0' name='C00' title='NavyBlue'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;NeonOrange&quot;);'><img src='imgs/c_orange.gif' width='15' height='15' border='0' name='C00' title='NeonOrange'></a></td></tr><tr><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Pink&quot;);'><img src='imgs/c_pink.gif' width='15' height='15' border='0' name='C00' title='Pink'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Purple&quot;);'><img src='imgs/c_purple.gif' width='15' height='15' border='0' name='C00' title='Purple'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Salmon&quot;);'><img src='imgs/c_salmon.gif' width='15' height='15' border='0' name='C00' title='Salmon'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Smoke&quot;);'><img src='imgs/c_smoke.gif' width='15' height='15' border='0' name='C00' title='Smoke'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;White&quot;);'><img src='imgs/c_white.gif' width='15' height='15' border='0' name='C00' title='White'></a></td></tr><tr><td colspan='5' align='center'>1000d Nylon<hr>");
	Ballistic(code,name);
	document.write("<hr>Camo<br><a href='javascript:void(0);' onclick='SaveCamo(&quot;"+code+"&quot;,&quot;Camo&quot;);'><img src='imgs/c_camo.gif' width='20' height='20' border='0' title='Camo'></a><br>&nbsp;</td></tr></table>");
	
}
function ColorPalnoBall(Palname,Palcode)
{
	var name = Palname;
	var code = Palcode;
	/*document.write("<table width='100%' border='1'>");
	document.write("<tr><td width=15><img src='imgs/c_blue.gif' width='15' height='15' /></td>");
	document.write("<td width=15><img src='imgs/c_blue.gif' width='15' height='15' /></td>");
	document.write("</tr></table>");
	*/
	document.write("<table border='1' cellspacing='1' cellpadding='0'><tr align='left' valign='top'><td colspan='5' align='center' valign='top'><b>"+name+"</b></td></tr><tr><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Red&quot;);'><img src='imgs/c_red.gif' width='15' height='15' border='0' name='C00' title='Red'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Blue&quot;);'><img src='imgs/c_blue.gif' width='15' height='15' border='0' name='C00' title='Blue'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Yellow&quot;);'><img src='imgs/c_yellow.gif' width='15' height='15' border='0' name='C00' title='Yellow'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Black&quot;);'><img src='imgs/c_black.gif' width='15' height='15' border='0' name='C00' title='Black'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Green&quot;);'><img src='imgs/c_green.gif' width='15' height='15' border='0' name='C00' title='Green'></a></td></tr><tr><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Burgundy&quot;);'><img src='imgs/c_burgundy.gif' width='15' height='15' border='0' name='C00' title='Burgundy'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;NeonYellow&quot;);'><img src='imgs/c_neonyellow.gif' width='15' height='15' border='0' name='C00' title='NeonYellow'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Brown&quot;);'><img src='imgs/c_brown.gif' width='15' height='15' border='0' name='C00' title='Brown'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;NavyBlue&quot;);'><img src='imgs/c_navyblue.gif' width='15' height='15' border='0' name='C00' title='NavyBlue'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;NeonOrange&quot;);'><img src='imgs/c_orange.gif' width='15' height='15' border='0' name='C00' title='NeonOrange'></a></td></tr><tr><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Pink&quot;);'><img src='imgs/c_pink.gif' width='15' height='15' border='0' name='C00' title='Pink'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Purple&quot;);'><img src='imgs/c_purple.gif' width='15' height='15' border='0' name='C00' title='Purple'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Salmon&quot;);'><img src='imgs/c_salmon.gif' width='15' height='15' border='0' name='C00' title='Salmon'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Smoke&quot;);'><img src='imgs/c_smoke.gif' width='15' height='15' border='0' name='C00' title='Smoke'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;White&quot;);'><img src='imgs/c_white.gif' width='15' height='15' border='0' name='C00' title='White'></a></td></tr><tr><td colspan='5' align='center'>1000d Nylon<hr><a href='javascript:void(0);' onclick='SaveBallistic(&quot;"+code+"&quot;,&quot;BlackNylon&quot;);'><img src='imgs/c_black.gif' width='25' height='25' border='0' title='Black Nylon'></a><br>Black Nylon<hr>Black Vinyl<br><a href='javascript:void(0);' onclick='SaveBallistic(&quot;"+code+"&quot;,&quot;BlackVinyl&quot;);'><img src='imgs/c_black.gif' width='20' height='20' border='0' title='Black Vinyl'></a>&nbsp;<a href='javascript:void(0);' onclick='SaveCamo(&quot;"+code+"&quot;,&quot;Camo&quot;);'><img src='imgs/c_camo.gif' width='20' height='20' border='0' title='Camo'></a><br>or Camo");	
	document.write("</td></tr></table>");
}
function ColorPalFleece(Palname,Palcode)
{
	var name = Palname;
	var code = Palcode;
	/*document.write("<table width='100%' border='1'>");
	document.write("<tr><td width=15><img src='imgs/c_blue.gif' width='15' height='15' /></td>");
	document.write("<td width=15><img src='imgs/c_blue.gif' width='15' height='15' /></td>");
	document.write("</tr></table>");
	*/
	document.write("<table border='1' cellspacing='1' cellpadding='0'><tr align='left' valign='top'><td colspan='5' align='center' valign='top'><b>"+name+"</b></td></tr><tr><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Red&quot;);'><img src='imgs/c_red.gif' width='15' height='15' border='0' name='C00' title='Red'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Blue&quot;);'><img src='imgs/c_blue.gif' width='15' height='15' border='0' name='C00' title='Blue'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Yellow&quot;);'><img src='imgs/c_yellow.gif' width='15' height='15' border='0' name='C00' title='Yellow'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Black&quot;);'><img src='imgs/c_black.gif' width='15' height='15' border='0' name='C00' title='Black'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Green&quot;);'><img src='imgs/c_green.gif' width='15' height='15' border='0' name='C00' title='Green'></a></td></tr><tr><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Burgundy&quot;);'><img src='imgs/c_burgundy.gif' width='15' height='15' border='0' name='C00' title='Burgundy'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;NeonYellow&quot;);'><img src='imgs/c_neonyellow.gif' width='15' height='15' border='0' name='C00' title='NeonYellow'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Brown&quot;);'><img src='imgs/c_brown.gif' width='15' height='15' border='0' name='C00' title='Brown'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;NavyBlue&quot;);'><img src='imgs/c_navyblue.gif' width='15' height='15' border='0' name='C00' title='NavyBlue'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;NeonOrange&quot;);'><img src='imgs/c_orange.gif' width='15' height='15' border='0' name='C00' title='NeonOrange'></a></td></tr><tr><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Pink&quot;);'><img src='imgs/c_pink.gif' width='15' height='15' border='0' name='C00' title='Pink'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Purple&quot;);'><img src='imgs/c_purple.gif' width='15' height='15' border='0' name='C00' title='Purple'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Salmon&quot;);'><img src='imgs/c_salmon.gif' width='15' height='15' border='0' name='C00' title='Salmon'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Smoke&quot;);'><img src='imgs/c_smoke.gif' width='15' height='15' border='0' name='C00' title='Smoke'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;White&quot;);'><img src='imgs/c_white.gif' width='15' height='15' border='0' name='C00' title='White'></a>");	
	document.write("</td></tr></table>");
}
function ColorPalnoYellow(Palname,Palcode)
{
	var name = Palname;
	var code = Palcode;
	/*document.write("<table width='100%' border='1'>");
	document.write("<tr><td width=15><img src='imgs/c_blue.gif' width='15' height='15' /></td>");
	document.write("<td width=15><img src='imgs/c_blue.gif' width='15' height='15' /></td>");
	document.write("</tr></table>");
	*/
	document.write("<table border='1' cellspacing='1' cellpadding='0'><tr align='left' valign='top'><td colspan='5' align='center' valign='top'><b>"+name+"</b></td></tr><tr><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Red&quot;);'><img src='imgs/c_red.gif' width='15' height='15' border='0' name='C00' title='Red'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Blue&quot;);'><img src='imgs/c_blue.gif' width='15' height='15' border='0' name='C00' title='Blue'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;White&quot;);'><img src='imgs/c_white.gif' width='15' height='15' border='0' name='C00' title='White'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Black&quot;);'><img src='imgs/c_black.gif' width='15' height='15' border='0' name='C00' title='Black'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Green&quot;);'><img src='imgs/c_green.gif' width='15' height='15' border='0' name='C00' title='Green'></a></td></tr><tr><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Burgundy&quot;);'><img src='imgs/c_burgundy.gif' width='15' height='15' border='0' name='C00' title='Burgundy'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;NeonYellow&quot;);'><img src='imgs/c_neonyellow.gif' width='15' height='15' border='0' name='C00' title='NeonYellow'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Brown&quot;);'><img src='imgs/c_brown.gif' width='15' height='15' border='0' name='C00' title='Brown'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;NavyBlue&quot;);'><img src='imgs/c_navyblue.gif' width='15' height='15' border='0' name='C00' title='NavyBlue'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;NeonOrange&quot;);'><img src='imgs/c_orange.gif' width='15' height='15' border='0' name='C00' title='NeonOrange'></a></td></tr><tr><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Pink&quot;);'><img src='imgs/c_pink.gif' width='15' height='15' border='0' name='C00' title='Pink'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Purple&quot;);'><img src='imgs/c_purple.gif' width='15' height='15' border='0' name='C00' title='Purple'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Salmon&quot;);'><img src='imgs/c_salmon.gif' width='15' height='15' border='0' name='C00' title='Salmon'></a></td><td><a href='javascript:void(0);' onclick='SaveOption(&quot;"+code+"&quot;,&quot;Smoke&quot;);'><img src='imgs/c_smoke.gif' width='15' height='15' border='0' name='C00' title='Smoke'></a>");	
	document.write("</td></tr></table>");
}

function Ballistic(code,name)
{
	var productname = document.getElementById('productname').innerHTML;
	
	if(productname == 'Session')
	{
		if(code == 'Accent')
		{
			var ballisticprice = '3.00';
		}
		if((code == 'Inner')||(code == 'Outer'))
		{
			var ballisticprice = '2.00';
		}
	}
	else if(productname == 'Ally')
	{
		if(code == 'Accent')
		{
			var ballisticprice = '2.00';
		}
		if((code == 'Inner')||(code == 'Outer'))
		{
			var ballisticprice = '1.50';
		}
	}
	else
	{
		var ballisticprice = '0.00';
	}
	document.write("Ballistic Nylon<br>");
	document.write("<a href='javascript:void(0);' onclick='SaveBallistic(&quot;"+code+"&quot;,&quot;Ballistic&quot;);'><img src='imgs/ballistic.gif' width='25' height='25' border='0' title='Ballistic Nylon'></a><br><small>(adds $"+ballisticprice+")</small>");

}

function ScreenLogo(code)
{
	document.write("<table width='95%' border='0' cellspacing='1' cellpadding='0'><tr><td nowrap='nowrap' align='right'>ScreenLogo:</td><td width='50%' align='right'><select id='"+code+"' onchange='SaveOption(&quot;"+code+"&quot;,this.options[this.selectedIndex].value)'><option value='Red'>Red</option><option value='Black'>Black</option></select></td></tr></table>");
	
}

function BagSize(Palname,Palcode)
{
	var name = Palname;
	var code = Palcode;
	
	document.write("<table width='95%' border='0' cellspacing='1' cellpadding='0'><tr><td nowrap='nowrap' align='right'>"+name+":</td><td width='50%' align='right'><select id='"+code+"' onchange='SaveNoPic(&quot;"+code+"&quot;,this.options[this.selectedIndex].value)'><option value='Small'>Small</option><option value='Large'>Large</option></select></td></tr></table><br>");
	
}
function SaveNoPic(code,color)
{
	// alert("You choose: "+name+" and "+color+", Thank you."); //+name+" and "+color+", Thank you!");	
	var today = new Date();
	var expire = new Date();
 		expire.setTime(today.getTime() + 1000 * 60 * 60 * 24 * 1);  // 1 days
 			
		document.cookie = code+"="+color+";expires="+expire.toGMTString();
		
	//var image = document.getElementById(code);
	//image.src = "custom/"+code+"_"+color+".jpg";	
	
	return true;
}
function SaveOption(code,color)
{
	// alert("You choose: "+name+" and "+color+", Thank you."); //+name+" and "+color+", Thank you!");	
	var today = new Date();
	var expire = new Date();
 		expire.setTime(today.getTime() + 1000 * 60 * 60 * 24 * 1);  // 1 days
 			
		document.cookie = code+"="+color+";expires="+expire.toGMTString();
		
	var image = document.getElementById(code);
	image.src = "custom/"+code+"_"+color+".jpg";	
	
	return true;
}
function SaveBallistic(code,color)
{
	// alert("You choose: "+name+" and "+color+", Thank you."); //+name+" and "+color+", Thank you!");	
	var today = new Date();
	var expire = new Date();
 		expire.setTime(today.getTime() + 1000 * 60 * 60 * 24 * 1);  // 1 days
 			
		document.cookie = code+"="+color+";expires="+expire.toGMTString();
		
	var image = document.getElementById(code);
	image.src = "custom/"+code+"_Black.jpg";
		
	return true;
}
function SaveCamo(code,color)
{
	// alert("You choose: "+name+" and "+color+", Thank you."); //+name+" and "+color+", Thank you!");	
	var today = new Date();
	var expire = new Date();
 		expire.setTime(today.getTime() + 1000 * 60 * 60 * 24 * 1);  // 1 days
 			
		document.cookie = code+"="+color+";expires="+expire.toGMTString();
		
	var image = document.getElementById(code);
	image.src = "custom/"+code+"_Green.jpg";
		
	return true;
}



function DisplayBag(ProdTitle, ProdName, Prodid, Prodtotal)
{
	var bagtitle = ProdTitle;
	var bagname = ProdName;
	var bagid = Prodid;
	var bagtotal = Prodtotal;   
   document.write("<span id='productname' style='display:none'>"+bagname+"</span><table width='80%' cellpadding='0' cellspacing='0' align='center' border='0'><tr>");
   document.write("<td colspan='4' align='left'><font color='black' style='font-size:1.6em; font-weight:bold;'>"+bagtitle+"</font></td><td>Back to <a href='bags.php'>Bags</a></tr>");
   Bag(bagname);
   document.write("<a id='checkcustomtext' href='javascript:callToCustomText()'><font style='font-size:1.0em;'>Add Custom Text</font></a>&nbsp;<small>(add $7)</small><br><iframe id='Updater' frameborder='0' border='0' src='mycustomtext.php?name="+bagname+"' height='175' width='100%' SCROLLING=NO></iframe>");
   document.write("</td></tr><tr><td colspan='5' align='center'><hr color='red' width='100%'></td></tr><tr>");
   document.write("<td align='center'><a href='cart.php?action=add_item&id="+bagid+"&name="+bagtitle+"&qty=1&price="+bagtotal+"&custom=y' onClick='submitform()'><img src='imgs/order.gif' border='0' /></a></td><td colspan='4' align='left'><font style='font-size:1.6em; font-weight:bold;'>Base: $"+bagtotal+" each</font></td></tr><tr><td colspan='5' align='left'><font style='font-size:.9em; font-weight:bold; color:#666666;'>Please allow up to 2 weeks for production time on all custom orders.<br>Rush orders available upon request. *Actual color shades may vary slightly.</font></td></tr>");
   document.write("</table>");
   
 } //** DisplayProd() **//
 
 
function Bag(name)
{
	if(name == 'Messenger')
	{
		document.write("<tr><td rowspan='2' align='center' valign='top'><br /><img name='red1' src='custom/Mess_Front_Blue.jpg' width='200' height='156' border='0' id='Mess_Front' alt='' /><br>(front)<br><table border='0' cellpadding='0' cellspacing='0' width='200'><tr><td><img name='Mess_Buckle' src='custom/Mess_Buckle_Blue.jpg' width='90' height='169' border='0' id='Mess_Buckle' alt='' /></td><td><img name='Mess_Shoulder' src='custom/Mess_Shoulder_Blue.jpg' width='110' height='169' border='0' id='Mess_Shoulder' alt='' /></td></tr></table><br>(back)<br><br><a href='imgs/big"+name+".jpg' rel='thumbnail'><img src='graphics/enlarge.jpg' border='0' /></a><br><small>(Shows All Views / Stock Colors)</small></td><td><img src='custom/spacer.gif' width='55' height='50' /></td>");
		document.write("<td height='50%' width='5%' valign='top'>");
	   ColorPal('Accent','Mess_Front');
	   document.write("</td><td width='5%' valign='top'>");
	   ColorPalnoYellow('Buckle','Mess_Buckle');
	   document.write("</td><td width='5%' valign='top'>");
	   ColorPal('ShoulderPad','Mess_Shoulder');
	   document.write("</td></tr><tr>");
	   document.write("<td valign='top' colspan='4' align='right'>");
	   ColorList('Inner Lining','Lining');
	   ColorList('Outer Shell','Shell');
	   document.write("<form name='laptopform' style='margin-bottom:0;'>Laptop Sleeve (add $25) Yes? <input type='checkbox' name='yesno' onclick='showhide(this, &quot;dn&quot;);'><div id='dn' class='noshow' style='display:none;'>Laptop Make/Model:<input type='text' name='laptop_model' size='20'><br>Size <input type='text' name='laptop_l' value='Length' size='4' readonly><input type='text' name='laptop_length' size='2'><input type='text' name='laptop_w' value='Width' size='3' readonly><input type='text' name='laptop_width' size='2'><input type='text' name='laptop_h' value='Height' size='4' readonly><input type='text' name='laptop_height' size='2'><br>(enter in inches) &nbsp;&nbsp; <input type='button' value='Save Laptop' onclick='setCookie(&quot;LaptopSleeve&quot;,getFormString(this.form,true));'></div></form><form name='cellform' style='margin-bottom:0;'>Cell Holster (add $12) Yes? <input type='checkbox' name='yesno' onclick='showhide(this, &quot;bn&quot;);'><div id='bn' class='noshow' style='display:none;'>Cell Make/Model:<input type='text' name='cell_model' size='20'><br>Size <input type='text' name='cell_l' value='Length' size='4' readonly><input type='text' name='cell_length' size='2'><input type='text' name='cell_w' value='Width' size='3' readonly><input type='text' name='cell_width' size='2'><input type='text' name='cell_h' value='Height' size='4' readonly><input type='text' name='cell_height' size='2'><br>(enter in inches) &nbsp;&nbsp; <input type='button' value='Save Cell' onclick='setCookie(&quot;CellHolster&quot;,getFormString(this.form,true));'></div></form><form id='custom_form' name='custom_form' method='post' action='cart.php'><input type='hidden' name='custom_values' id='custom_values' value='none' /></form>");
	}
	else if(name == 'Vertex')
	{
		document.write("<tr><td rowspan='2' align='center' valign='top'><br><table border='0' cellpadding='0' cellspacing='0' width='300'><tr><td align='center' colspan='3'><img name='chalkpot1' src='custom/Pot_Top_Red.jpg' width='200' height='86' border='0' id='Pot_Top' alt='' /></td></tr><tr><td align='center' colspan='3'><img name='chalkpot2' src='custom/Pot_Bottom_Red.jpg' width='200' height='143' border='0' id='Pot_Bottom' alt='' /><br /><small>(Front)</small></td></tr><tr><td align='center' valign='bottom'><img src='custom/Pot_PocketSide_Red.jpg' width='100' height='137' border='0' id='Pot_PocketSide' alt='' /><br /><small>(Pocket Side)</small></td><td align='center' valign='bottom' rowspan='2'><img name='chalkpotback' src='custom/Pot_Back_Red.jpg' width='100' height='134' border='0' id='Pot_Back' alt='' /><br /><small>(Back)</small></td><td align='center' valign='bottom'><img src='custom/Pot_Side_Red.jpg' width='100' height='140' border='0' id='Pot_Side' alt='' /><br /><small>(Cord Side)</small></td></tr></table><br><br><a href='imgs/bigVertex.jpg' rel='thumbnail'><img src='graphics/enlarge.jpg' border='0' /></a><br><small>(Shows All Views / Stock Colors)</small></td><td width='5%' valign='top'>");
		ColorPal('Front','Pot_Bottom');
		document.write("</td><td width='5%' valign='top'>");
		ColorPal('Back','Pot_Back');
		document.write("</td><td width='5%' valign='top'>");
		ColorPal('Pocket Side','Pot_PocketSide');
		document.write("</td><td width='5%' valign='top'>");
		ColorPal('Cord Side','Pot_Side');
		document.write("</td></tr><tr><td valign='top' colspan='4' align='right'>");
		ColorPalFleece('Inner Liner','Pot_Top');
	}
	else if(name == 'Axis')
	{
		document.write("<tr><td rowspan='2' align='center' valign='top'><br /><table border='0' cellpadding='0' cellspacing='0' width='200'><tr><td><img name='CBag_Top' src='custom/CBag_Top_Red.jpg' width='200' height='95' border='0' id='CBag_Top' alt='' /></td></tr><tr><td><img name='CBag_Bottom' src='custom/CBag_Bottom_Red.jpg' width='200' height='144' border='0' id='CBag_Bottom' alt='' /></td></tr></table><br><br><a href='imgs/bigAxis.jpg' rel='thumbnail'><img src='graphics/enlarge.jpg' border='0' /></a><br><small>(Shows All Views / Stock Colors)</small></td><td><img src='custom/spacer.gif' width='55' height='50' /></td>");
		document.write("<td height='50%' valign='top'><img src='imgs/spacer.gif' width='25' height='150' /></td>");
		document.write("<td width='5%' valign='top'>");
		ColorPalFleece('Lining','CBag_Top');
	   document.write("</td><td width='5%' valign='top'>");
	   ColorPalnoBall('Accent','CBag_Bottom');
	   document.write("</td></tr><tr>");
	   document.write("<td valign='top' colspan='4' align='right'>");
	   ColorList('Main Shell','Bottom');
	   BagSize('Bag Size','BagSize');
	}
	else
	{
		document.write("<tr><td rowspan='1' align='center' valign='top'><br />Error - Please go back and try again</td>");
	}
}
 

function stockGearPages()
{
	document.write("<font style='font-size:.8em; font-weight:bold; color:#666666;'>Page &raquo; <a href='javascript:void(0);' onClick='return changeFrame(1);'>1</a> | <a href='javascript:void(0);' onClick='return changeFrame(2);'>2</a> | <a href='javascript:void(0);' onClick='return changeFrame(3);'>3</a></font>");
}


function dropdown(sel)
{ 
    // alert("You choose: "+name+" and "+color+", Thank you."); //+name+" and "+color+", Thank you!");	
	var today = new Date();
	var expire = new Date();
 		expire.setTime(today.getTime() + 1000 * 60 * 60 * 24 * 1);  // 1 days
 		
		var c = document.getElementById(sel);
		var d = c.value;
		document.cookie = sel+"="+d+";expires="+expire.toGMTString();
		
	//var image = document.getElementById(code);
	//image.src = "custom/"+code+"_"+color+".jpg";	
	
	return true;
	
	
//	alert(sel);
//	  c = confirm('You chose ' + sel.options[sel.selectedIndex].value + '\nDo you want to continue?'); 
//       
//      if(c){ sel.form.submit(); } else{ sel.selectedIndex = 0; } 
} 



function toggle(opt){
switch(opt)
	{
	case "46inch":
	document.getElementById('belt').setAttribute('href','cart.php?action=add_item&id=19&name=Chalk Bag Belt&qty=1&price=3.99&option=46inch')
	break;
	case "50inch":
	document.getElementById('belt').setAttribute('href','cart.php?action=add_item&id=19&name=Chalk Bag Belt&qty=1&price=3.99&option=50inch')
	break;
	case "BeanieGray":
	document.getElementById('Beanie').setAttribute('href','cart.php?action=add_item&id=13&name=Beanie&qty=1&price=20.00&option=Gray')
	break;
	case "BeanieBlack":
	document.getElementById('Beanie').setAttribute('href','cart.php?action=add_item&id=13&name=Beanie&qty=1&price=20.00&option=Black')
	break;
	case "BeanieRed":
	document.getElementById('Beanie').setAttribute('href','cart.php?action=add_item&id=13&name=Beanie&qty=1&price=20.00&option=Red')
	break;
	case "BrimBeanRed":
	document.getElementById('BrimBeanie').setAttribute('href','cart.php?action=add_item&id=13&name=Beanie&qty=1&price=22.00&option=Red')
	break;
	case "BrimBeanGray":
	document.getElementById('BrimBeanie').setAttribute('href','cart.php?action=add_item&id=14&name=Brimmed Beanie&qty=1&price=22.00&option=Gray')
	break;
	case "BrimBeanBlack":
	document.getElementById('BrimBeanie').setAttribute('href','cart.php?action=add_item&id=14&name=Brimmed Beanie&qty=1&price=22.00&option=Black')
	break;
	case "HoodM":
	document.getElementById('Hoodie').setAttribute('href','cart.php?action=add_item&id=15&name=Logo Hoodie&qty=1&price=49.99&option=Medium')
	break;
	case "HoodL":
	document.getElementById('Hoodie').setAttribute('href','cart.php?action=add_item&id=15&name=Logo Hoodie&qty=1&price=49.00&option=Large')
	break;
	case "HoodXL":
	document.getElementById('Hoodie').setAttribute('href','cart.php?action=add_item&id=15&name=Logo Hoodie&qty=1&price=49.99&option=XLarge')
	break;
	case "ShirtBlackSm":
	document.getElementById('Shirt').setAttribute('href','cart.php?action=add_item&id=16&name=T-Shirts&qty=1&price=19.00&option=Black-Small')
	break;
	case "ShirtBlackMed":
	document.getElementById('Shirt').setAttribute('href','cart.php?action=add_item&id=16&name=T-Shirts&qty=1&price=19.00&option=Black-Medium')
	break;
	case "ShirtBlackLg":
	document.getElementById('Shirt').setAttribute('href','cart.php?action=add_item&id=16&name=T-Shirts&qty=1&price=19.00&option=Black-Large')
	break;
	case "ShirtWhiteSm":
	document.getElementById('Shirt').setAttribute('href','cart.php?action=add_item&id=16&name=T-Shirts&qty=1&price=19.00&option=White-Small')
	break;
	case "ShirtWhiteMed":
	document.getElementById('Shirt').setAttribute('href','cart.php?action=add_item&id=16&name=T-Shirts&qty=1&price=19.00&option=White-Medium')
	break;
	case "ShirtWhiteLg":
	document.getElementById('Shirt').setAttribute('href','cart.php?action=add_item&id=16&name=T-Shirts&qty=1&price=19.00&option=White-Large')
	break;
	case "ShirtRedSm":
	document.getElementById('Shirt').setAttribute('href','cart.php?action=add_item&id=16&name=T-Shirts&qty=1&price=19.00&option=Red-Small')
	break;
	case "ShirtRedMed":
	document.getElementById('Shirt').setAttribute('href','cart.php?action=add_item&id=16&name=T-Shirts&qty=1&price=19.00&option=Red-Medium')
	break;
	case "ShirtRedLg":
	document.getElementById('Shirt').setAttribute('href','cart.php?action=add_item&id=16&name=T-Shirts&qty=1&price=19.00&option=Red-Large')
	break;
	}
}
