/*Order Page Scripts*/
function disappear()
{
  var mc=document.getElementById("main_order"); 
  var mc_img = document.getElementById("hi");
	var revs=document.form1.revs.checked; 
  var throwawayNode = mc.removeChild(mc_img);
	document.form1.category.style.visibility="visible";
	var page=document.getElementById('page').value;
	if(page!=1)
	{  
	  document.getElementById('order3_upload').style.visibility='hidden';
	  document.getElementById('up').style.visibility='hidden';
		document.getElementById('pages').tabber.tabShow(page);
		if(page==2)
	  {
		  document.getElementById('order4_upload').style.visibility='visible';
			document.getElementById('order5_upload').style.visibility='hidden';
		}
		else if(document.getElementById('style_letter').value=='m')
			document.getElementById('order5_upload').style.visibility='visible';
	}
	else
	{
	  document.getElementById('order4_upload').style.visibility='hidden';
	  document.getElementById('order3_upload').style.visibility='visible';
		document.getElementById('up').style.visibility='visible';		
	  document.getElementById('pages').tabber.tabShow(page);
		if((document.getElementById('style_letter').value=='m'||document.getElementById('style_letter').value=='j')&&document.getElementById('whiteside').checked!=true)
	    document.getElementById('order3_revs').style.visibility='visible';
	}
	var cline1=document.getElementById("cline1").value;
	var cline2=document.getElementById("cline2").value;
	cline1=unescape(cline1);
	cline2=unescape(cline2);
	document.getElementById("cline1").value=cline1;
	document.getElementById("cline2").value=cline2;
	var c=document.getElementById('c').value;
	for (var i=0;i<document.form1.decide.length;i++)
  {
    if (document.form1.decide[i].checked)
    {
      var decide = document.form1.decide[i].value;
    }
  }
	if(decide=="true")
	{
	  for(var a=1;a<=c;a++)
	  {
	    if(combo!="nums")
		  {
		    var nn=document.getElementById('name'+a).value;
	      nn=unescape(nn);
				document.getElementById('name'+a).value=nn;
		  }
		}
	}
	if(document.getElementById('style_letter').value=='m')
	{
	  var mstyle=document.getElementById('mstyle').value;
		var mcolor=document.getElementById('mcolor').value;
		if(mstyle!="")mstylechange(mstyle);
		if(mcolor!="")mbackcolor("BCBEC0",mcolor);
	}
	if(document.getElementById('style_letter').value=='j')
	{
	  var whitesidej=document.form1.whitesidej.value;
	  var girlsj=document.form1.girlsj.value;
	  if(whitesidej=='true'){
		  document.form1.whiteside.checked=true;
			insideout(3);
		}
	  if(girlsj=='true')
		  document.form1.girlscb.checked=true;
		girlsjerseys();
	}
	getprice();
	setcustomform();
	inkcolorstatus();
}

/*Price*/
function getprice()
{
  var category=document.form1.category.options[document.form1.category.selectedIndex].value;
	var color_name=document.getElementById("color_name").value;
	var style=document.getElementById("style_name").value;
	var style_letter=document.getElementById("style_letter").value;
	var ys=0;
	var ym=0;
	var yl=0;
	var yxl=0;
	var s=0;
	var m=0;
	var l=0;
	var xl=0;
	var xxl=0;
	var xxxl=0;
	for (var i=0;i<document.form1.combo.length;i++)
  {
    if (document.form1.combo[i].checked)
    {
      var combo = document.form1.combo[i].value;
    }
  }
	for (var i=0;i<document.form1.decide.length;i++)
  {
    if (document.form1.decide[i].checked)
    {
      var decide = document.form1.decide[i].value;
    }
  }
	for (var i=0;i<document.form1.prlc.length;i++)
  {
    if (document.form1.prlc[i].checked)
    {
      var prlc = document.form1.prlc[i].value;
    }
  }
	if(prlc!='ff'||style_letter=="o")
	{
	  for (var i=0;i<document.form1.front_rc.length;i++)
    {
      if (document.form1.front_rc[i].checked)
      {
        var rc = document.form1.front_rc[i].value;
      }
    }
	}
	else
	  var rc="false";
	
	var inout=false;
	
	var b=0;//apparel
	var c=0;//front print
	var d=0;//names and nums
	var e=0;//neutral, light, colors
	
	if(style=="SST100")
	{
	  ys=parseInt(document.getElementById("ysmall").value);
	  ym=parseInt(document.getElementById("ymed").value);
	  yl=parseInt(document.getElementById("ylarge").value);
	  s=parseInt(document.getElementById("small").value);
	  m=parseInt(document.getElementById("med").value);
	  l=parseInt(document.getElementById("large").value);
	  xl=parseInt(document.getElementById("xlarge").value);
	  xxl=parseInt(document.getElementById("xxlarge").value);
	  xxxl=parseInt(document.getElementById("xxxlarge").value);
	  b=1;
	}
	if(style=="SST50")
	{
	  ys=parseInt(document.getElementById("ysmall").value);
	  ym=parseInt(document.getElementById("ymed").value);
	  yl=parseInt(document.getElementById("ylarge").value);
	  s=parseInt(document.getElementById("small").value);
	  m=parseInt(document.getElementById("med").value);
	  l=parseInt(document.getElementById("large").value);
	  xl=parseInt(document.getElementById("xlarge").value);
	  xxl=parseInt(document.getElementById("xxlarge").value);
	  xxxl=parseInt(document.getElementById("xxxlarge").value);
	  b=2;
	}
	if(style=="LST100")
	{
	  ys=parseInt(document.getElementById("ysmall").value);
	  ym=parseInt(document.getElementById("ymed").value);
	  yl=parseInt(document.getElementById("ylarge").value);
	  s=parseInt(document.getElementById("small").value);
	  m=parseInt(document.getElementById("med").value);
	  l=parseInt(document.getElementById("large").value);
	  xl=parseInt(document.getElementById("xlarge").value);
	  xxl=parseInt(document.getElementById("xxlarge").value);
	  b=3;
	}
	if(style=="LST50")
	{
	  ys=parseInt(document.getElementById("ysmall").value);
	  ym=parseInt(document.getElementById("ymed").value);
	  yl=parseInt(document.getElementById("ylarge").value);
	  s=parseInt(document.getElementById("small").value);
	  m=parseInt(document.getElementById("med").value);
	  l=parseInt(document.getElementById("large").value);
	  xl=parseInt(document.getElementById("xlarge").value);
	  xxl=parseInt(document.getElementById("xxlarge").value);
	  xxxl=parseInt(document.getElementById("xxxlarge").value);
	  b=4;
	}
	if(style=="NST100")
	{
	  ys=parseInt(document.getElementById("ysmall").value);
	  ym=parseInt(document.getElementById("ymed").value);
	  yl=parseInt(document.getElementById("ylarge").value);
	  s=parseInt(document.getElementById("small").value);
	  m=parseInt(document.getElementById("med").value);
	  l=parseInt(document.getElementById("large").value);
	  xl=parseInt(document.getElementById("xlarge").value);
	  xxl=parseInt(document.getElementById("xxlarge").value);
	  xxxl=parseInt(document.getElementById("xxxlarge").value);
	  b=5;
	}
	if(style=="RGT100")
	{
	  ys=parseInt(document.getElementById("ysmall").value);
	  ym=parseInt(document.getElementById("ymed").value);
	  yl=parseInt(document.getElementById("ylarge").value);
	  s=parseInt(document.getElementById("small").value);
	  m=parseInt(document.getElementById("med").value);
	  l=parseInt(document.getElementById("large").value);
	  xl=parseInt(document.getElementById("xlarge").value);
	  xxl=parseInt(document.getElementById("xxlarge").value);
	  b=6;
	}
	if(style=="BRC100")
	{
	  s=parseInt(document.getElementById("small").value);
	  m=parseInt(document.getElementById("med").value);
	  l=parseInt(document.getElementById("large").value);
	  xl=parseInt(document.getElementById("xlarge").value);
	  b=7;
	}
	if(style=="HDS9_5")
	{
	  s=parseInt(document.getElementById("small").value);
	  m=parseInt(document.getElementById("med").value);
	  l=parseInt(document.getElementById("large").value);
	  xl=parseInt(document.getElementById("xlarge").value);
		xxl=parseInt(document.getElementById("xxlarge").value);
	  b=8;
	}
	if(style=="NRV100")
	{
	  ym=parseInt(document.getElementById("ymed").value);
	  yl=parseInt(document.getElementById("ylarge").value);
	  s=parseInt(document.getElementById("small").value);
	  m=parseInt(document.getElementById("med").value);
	  l=parseInt(document.getElementById("large").value);
	  xl=parseInt(document.getElementById("xlarge").value);
	  xxl=parseInt(document.getElementById("xxlarge").value);
	  b=9;
		var whiteside=document.form1.whiteside.checked;
		var revs=document.form1.revs.checked;
	}
	if(style=="MMM100")
	{
	  ys=parseInt(document.getElementById("ysmall").value);
	  ym=parseInt(document.getElementById("ymed").value);
	  yl=parseInt(document.getElementById("ylarge").value);
	  s=parseInt(document.getElementById("small").value);
	  m=parseInt(document.getElementById("med").value);
	  l=parseInt(document.getElementById("large").value);
	  xl=parseInt(document.getElementById("xlarge").value);
	  xxl=parseInt(document.getElementById("xxlarge").value);
	  xxxl=parseInt(document.getElementById("xxxlarge").value);
	  b=10;
	}
	if(style=="H685")
	{
	  ys=parseInt(document.getElementById("ysmall").value);
	  ym=parseInt(document.getElementById("ymed").value);
	  yl=parseInt(document.getElementById("ylarge").value);
		yxl=parseInt(document.getElementById("yxlarge").value);
	  s=parseInt(document.getElementById("small").value);
	  m=parseInt(document.getElementById("med").value);
	  l=parseInt(document.getElementById("large").value);
	  xl=parseInt(document.getElementById("xlarge").value);
	  xxl=parseInt(document.getElementById("xxlarge").value);
	  xxxl=parseInt(document.getElementById("xxxlarge").value);
	  b=11;
	}
	if(style=="B207")
	{
	  ys=parseInt(document.getElementById("ysmall").value);
	  ym=parseInt(document.getElementById("ymed").value);
	  yl=parseInt(document.getElementById("ylarge").value);
	  s=parseInt(document.getElementById("small").value);
	  m=parseInt(document.getElementById("med").value);
	  l=parseInt(document.getElementById("large").value);
	  xl=parseInt(document.getElementById("xlarge").value);
	  xxl=parseInt(document.getElementById("xxlarge").value);
	  xxxl=parseInt(document.getElementById("xxxlarge").value);
	  b=12;
	}
	var piece_tot=ys+ym+yl+yxl+s+m+l+xl+xxl+xxxl;
	if(color_name=="white")
	  e=0;
	else if(color_name=="ash grey" || color_name=="light steel" || color_name=="light oxford" || color_name=="light")
	  e=1;
	else
	  e=2;
		
	if(prlc!="np")
	  c=1;
	
	if(decide=="true" && b!=12)
	{
	  if(combo=="names")
		  d=1;
    if(combo=="nums")
		  d=4;
		if(combo=="both")
		  d=2;
	}
	
	var app_price=new Array(13);
  for(var i=0;i<13;i++)
    app_price[i]=new Array(3);
  app_price[0][0]=0;
  app_price[0][1]=0;
  app_price[0][2]=0;
  app_price[1][0]=1.42;//SST100
  app_price[1][1]=1.74;
  app_price[1][2]=2.05;
  app_price[2][0]=1.28;//SST50
  app_price[2][1]=1.62;
  app_price[2][2]=1.85;
  app_price[3][0]=2.5;//LST100
  app_price[3][1]=2.87;
  app_price[3][2]=3.2;
  app_price[4][0]=2.64;//LST50
  app_price[4][1]=2.99;
  app_price[4][2]=3.32;
  app_price[5][0]=1.98;//NST100
  app_price[5][1]=2.26;
  app_price[5][2]=2.54;
  app_price[6][0]=2.5;//RGT100
  app_price[6][1]=2.5;
  app_price[6][2]=2.85;
  app_price[7][0]=4.01;//BRC100
  app_price[7][1]=4.01;
  app_price[7][2]=4.01;
  app_price[8][0]=10.70;//upmark=1.7 HDS9_5
  app_price[8][1]=11.10;
  app_price[8][2]=11.77;
  app_price[9][0]=8;//upmark=1.6 NRV100 YM-XXL, and girls;
  app_price[9][1]=8;
  app_price[9][2]=8;
	app_price[10][0]=document.getElementById('mprice').value;//MMM100
  app_price[10][1]=document.getElementById('mprice').value;
  app_price[10][2]=document.getElementById('mprice').value;
	app_price[11][0]=12.31;//H685 YS-XXXL + YXL;
  app_price[11][1]=12.31;
  app_price[11][2]=12.31;
	app_price[12][0]=6.22;//B207 Shorts YS-XXXL, and girls
  app_price[12][1]=6.22;
  app_price[12][2]=6.22;
  var markup_times=2.541;
	var markup_hoodie=2.15985;
	var markup_jersey=2.0328;
  var fr_price=2.541;
	var front_num=2.541;
  var name_price=5.082;
  var num_price=3.17625;
	var xxl_fee=2;
	var xxxl_fee=3;
	var revsnum=1;
	if(revs==true&&whiteside!=true)revsnum=2;
	if(piece_tot==0)
	  piece_tot=1;
	var extra=((xxl_fee*xxl)+(xxxl_fee*xxxl))/piece_tot;
	if(piece_tot<12 && prlc!="np")
	  extra=extra+(10/piece_tot);
	if(category=="threenumber" || category=="fournumber" || rc!="false")
	  extra=extra+(front_num*revsnum);
	if(b==8)
	  var tot_price=(app_price[b][e]*markup_hoodie)+extra;
	else if(b==9||b==11||b==12)
	  var tot_price=(app_price[b][e]*markup_jersey)+extra;
	else if(b!=10)
	  var tot_price=(app_price[b][e]*markup_times)+extra;
	else if(b==10)
	  var tot_price=(app_price[b][e]*1.0)+extra;
  if(c!=0 && c<=6)
    tot_price=tot_price+(fr_price*revsnum);
	if(d==1 || d==2 || d==3)
	  tot_price=tot_price+name_price;
	if(d>=2)
	  tot_price=tot_price+(num_price*revsnum);
	if(document.form1.mprice_check.checked){
	  tot_price=document.getElementById('mprice').value;
		document.getElementById("m2").value="yes";
	}
	else
	  document.getElementById("m2").value="no";
	tot_price=Math.round(tot_price*100.0) / 100.0;
	document.getElementById("price").value=tot_price;
	document.getElementById("price2").value=tot_price;
	var x=document.getElementById("price_label");
	x.innerHTML=tot_price;
}

/*REPETITIVE FUNCTIONS*/
function refreshinkcolors(color_name){
  /*refresh ink colors*/
	var inout=document.getElementById("inout").value;
	var i1r0=document.getElementById("ink1_table").rows[0].cells;
	var i2r0=document.getElementById("ink2_table").rows[0].cells;
  switch(color_name){
	  case "white":
		  i1r0[0].innerHTML="";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i1r0[6].innerHTML="";
			i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="white"||document.getElementById("ink_color").value=="ash"){
			  detect("black");
			}
			break;
		case "ash grey":
		  i1r0[0].innerHTML="";
			i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="ash"){
			  detect("black");
			}
			break;
		case "light steel":
		  i1r0[0].innerHTML="";
		  i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="ash"){
			  detect("black");
			}
			break;
		case "light blue":
		  i1r0[0].innerHTML="";
		  i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="aquablue"){
			  detect("black");
			}
			break;
		case "royal blue":
		  i1r0[0].innerHTML="";
		  i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="royalblue"){
			  detect("black");
			}
			break;
		case "navy blue":
		  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="";
		  i1r0[5].innerHTML="";
		  i1r0[6].innerHTML="";
			i2r0[0].innerHTML="";
      i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[4].innerHTML="";
		  i2r0[5].innerHTML="";
		  i2r0[6].innerHTML="";
	    if(document.getElementById("ink_color").value=="black"||document.getElementById("ink_color").value=="navyblue"||document.getElementById("ink_color").value=="forestgreen"||document.getElementById("ink_color").value=="purple"||document.getElementById("ink_color").value=="brownred"||document.getElementById("ink_color").value=="brown"||document.getElementById("ink_color").value=="royalblue"){
			  detect("white");
			}
			break;
		case "kelly green":
		  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i1r0[6].innerHTML="";
		  i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="kellygreen"){
			  detect("black");
			}
			break;
		case "forest green":
		  i1r0[0].innerHTML="";
				i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="";
        i1r0[6].innerHTML="";
				i2r0[0].innerHTML="";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="";
		    i2r0[6].innerHTML="";
		  if(document.getElementById("ink_color").value=="forestgreen"||document.getElementById("ink_color").value=="navyblue"||document.getElementById("ink_color").value=="kellygreen"||document.getElementById("ink_color").value=="brownred"||document.getElementById("ink_color").value=="brown"||document.getElementById("ink_color").value=="black"){
			  detect("black");
			}
			break;
		case "yellow":
		  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[0].innerHTML="";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="peach"){
			  detect("black");
			}
			break;
		case "gold":
		  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[0].innerHTML="";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="peach"){
			  detect("black");
			}
			break;
		case "orange":
		  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[0].innerHTML="";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="orange"){
			  detect("black");
			}
			break;
		case "red":
		  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[0].innerHTML="";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="scarletred"){
			  detect("black");
			}
			break;
		case "maroon":
		  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[0].innerHTML="";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="";
		  if(document.getElementById("ink_color").value=="brownred"||document.getElementById("ink_color").value=="brown"){
			  detect("black");
			}
			break;
		case "purple":
		  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="";
		  if(document.getElementById("ink_color").value=="purple"){
			  detect("black");
			}
			break;
		case "black":
		  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="";
		  i2r0[4].innerHTML="";
		  i2r0[5].innerHTML="";
		  i2r0[6].innerHTML="";
			if(document.getElementById("ink_color").value=="brownred"||document.getElementById("ink_color").value=="brown"||document.getElementById("ink_color").value=="purple"||document.getElementById("ink_color").value=="black"){
			  detect("white");
			}
			break;
		case "light oxford":
		  i1r0[0].innerHTML="";
			i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="ash"){
			  detect("black");
			}
			break;
		case "white / royal blue"||"white/royal blue":
		  i1r0[0].innerHTML="";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
			i1r0[6].innerHTML="";
		  i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="white"||document.getElementById("ink_color").value=="ash"){
			  detect("black");
			}
			break;
		case "white / navy blue"||"white/navy blue":
		  i1r0[0].innerHTML="";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
			i1r0[6].innerHTML="";
		  i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="white"||document.getElementById("ink_color").value=="ash"){
			  detect("black");
			}
			break;
		case "white / red"||"white/red":
		  i1r0[0].innerHTML="";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
			i1r0[6].innerHTML="";
		  i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="white"||document.getElementById("ink_color").value=="ash"){
			  detect("black");
			}
			break;
		case "white / black"||"white/black":
		  i1r0[0].innerHTML="";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
			i1r0[6].innerHTML="";
		  i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="white"||document.getElementById("ink_color").value=="ash"){
			  detect("black");
			}
			break;
		case "heather / navy blue"||"heather/navy blue":
		  i1r0[0].innerHTML="";
			i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="ash"){
			  detect("black");
			}
			break;
		case "heather / black"||"heather/black":
		  i1r0[0].innerHTML="";
			i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="ash"){
			  detect("black");
			}
			break;
		case "white / baby blue"||"white/baby blue":
		  i1r0[0].innerHTML="";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
			i1r0[6].innerHTML="";
		  i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="white"||document.getElementById("ink_color").value=="ash"){
			  detect("black");
			}
			break;
		case "white / pink"||"white/pink":
		  i1r0[0].innerHTML="";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
			i1r0[6].innerHTML="";
		  i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="white"||document.getElementById("ink_color").value=="ash"){
			  detect("black");
			}
			break;
		case "white / orange"||"white/orange":
		  i1r0[0].innerHTML="";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
			i1r0[6].innerHTML="";
		  i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="white"||document.getElementById("ink_color").value=="ash"){
			  detect("black");
			}
			break;
		case "baby blue / navy blue"||"baby blue/navy blue":
		  i1r0[0].innerHTML="";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
			i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="aquablue"){
			  detect("black");
			}
			break;
		case "red / black"||"red/black":
			i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[0].innerHTML=""; 
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
	    if(document.getElementById("ink_color").value=="red"){
			  detect("black");
			}
			break;
		case "pink / black"||"pink/black":
			i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[0].innerHTML=""; 
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
	    if(document.getElementById("ink_color").value=="red"){
			  detect("black");
			}
			break;
		case "vegas gold / white"||"vegas gold/white":
		  if(inout!="in"&&document.getElementById("whiteside").checked==false){
			  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    if(document.getElementById("ink_color").value=="vegasgold"){
			    detect("white");
				}
			}else if(inout=="in"||document.getElementById("whiteside").checked==true){
			  i1r0[0].innerHTML="";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="";
		    i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    if(document.getElementById("rink_color").value=="white"||(document.getElementById("ink_color").value=="white"&&document.getElementById("whiteside").checked==true)||document.getElementById("rink_color").value=="ash"||(document.getElementById("ink_color").value=="ash"&&document.getElementById("whiteside").checked==true)){
			    detect("black");
			  }
			}
			break;
		case "col. blue / white"||"col. blue/white":
		  if(inout!="in"&&document.getElementById("whiteside").checked==false){
			  i1r0[0].innerHTML="";
		    i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    if(document.getElementById("ink_color").value=="aquablue"){
			    detect("white");
				}
			}else if(inout=="in"||document.getElementById("whiteside").checked==true){
			  i1r0[0].innerHTML="";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="";
		    i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    if(document.getElementById("rink_color").value=="white"||(document.getElementById("ink_color").value=="white"&&document.getElementById("whiteside").checked==true)||document.getElementById("rink_color").value=="ash"||(document.getElementById("ink_color").value=="ash"&&document.getElementById("whiteside").checked==true)){
			    detect("black");
			  }
			}
			break;
		case "royal blue / white"||"royal blue/white":
		  if(inout!="in"&&document.getElementById("whiteside").checked==false){
			  i1r0[0].innerHTML="";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
	      if(document.getElementById("ink_color").value=="royalblue"){
			    detect("white");
			  }
			}else if(inout=="in"||document.getElementById("whiteside").checked==true){
			  i1r0[0].innerHTML="";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="";
		    i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
				if(document.getElementById("rink_color").value=="white"||(document.getElementById("ink_color").value=="white"&&document.getElementById("whiteside").checked==true)||document.getElementById("rink_color").value=="ash"||(document.getElementById("ink_color").value=="ash"&&document.getElementById("whiteside").checked==true)){
			    detect("black");
			  }
			}
			break;
		case "navy blue / white"||"navy blue/white":
		  if(inout!="in"&&document.getElementById("whiteside").checked==false){
			  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="";
		    i1r0[5].innerHTML="";
		    i1r0[6].innerHTML="";
			  i2r0[0].innerHTML="";
        i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[4].innerHTML="";
		    i2r0[5].innerHTML="";
		    i2r0[6].innerHTML="";
	      if(document.getElementById("ink_color").value=="black"||document.getElementById("ink_color").value=="navyblue"||document.getElementById("ink_color").value=="forestgreen"||document.getElementById("ink_color").value=="purple"||document.getElementById("ink_color").value=="brownred"||document.getElementById("ink_color").value=="brown"||document.getElementById("ink_color").value=="royalblue"){
			    detect("white");
			  }
			}else if(inout=="in"||document.getElementById("whiteside").checked==true){
			  i1r0[0].innerHTML="";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="";
		    i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
				if(document.getElementById("rink_color").value=="white"||(document.getElementById("ink_color").value=="white"&&document.getElementById("whiteside").checked==true)||document.getElementById("rink_color").value=="ash"||(document.getElementById("ink_color").value=="ash"&&document.getElementById("whiteside").checked==true)){
			    detect("black");
			  }
			}
			break;
		case "kelly / white"||"kelly/white":
		  if(inout!="in"&&document.getElementById("whiteside").checked==false){
			  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i1r0[6].innerHTML="";
		    i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    if(document.getElementById("ink_color").value=="kellygreen"){
			    detect("white");
				}
			}else if(inout=="in"||document.getElementById("whiteside").checked==true){
			  i1r0[0].innerHTML="";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="";
		    i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    if(document.getElementById("rink_color").value=="white"||(document.getElementById("ink_color").value=="white"&&document.getElementById("whiteside").checked==true)||document.getElementById("rink_color").value=="ash"||(document.getElementById("ink_color").value=="ash"&&document.getElementById("whiteside").checked==true)){
			    detect("black");
			  }
			}
			break;	
		case "dark green / white"||"dark green/white":
		  if(inout!="in"&&document.getElementById("whiteside").checked==false){
			  i1r0[0].innerHTML="";
				i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="";
        i1r0[6].innerHTML="";
				i2r0[0].innerHTML="";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="";
		    i2r0[6].innerHTML="";
	      if(document.getElementById("ink_color").value=="forestgreen"||document.getElementById("ink_color").value=="navyblue"||document.getElementById("ink_color").value=="kellygreen"||document.getElementById("ink_color").value=="brownred"||document.getElementById("ink_color").value=="brown"||document.getElementById("ink_color").value=="black"){
			    detect("white");
			  }
			}else if(inout=="in"||document.getElementById("whiteside").checked==true){
			  i1r0[0].innerHTML="";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="";
		    i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
				if(document.getElementById("rink_color").value=="white"||(document.getElementById("ink_color").value=="white"&&document.getElementById("whiteside").checked==true)||document.getElementById("rink_color").value=="ash"||(document.getElementById("ink_color").value=="ash"&&document.getElementById("whiteside").checked==true)){
			    detect("black");
			  }
			}
			break;
		case "gold / white"||"gold/white":
		  if(inout!="in"&&document.getElementById("whiteside").checked==false){
			  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[0].innerHTML="";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    if(document.getElementById("ink_color").value=="peach"){
			    detect("white");
				}
			}else if(inout=="in"||document.getElementById("whiteside").checked==true){
			  i1r0[0].innerHTML="";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="";
		    i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    if(document.getElementById("rink_color").value=="white"||(document.getElementById("ink_color").value=="white"&&document.getElementById("whiteside").checked==true)||document.getElementById("rink_color").value=="ash"||(document.getElementById("ink_color").value=="ash"&&document.getElementById("whiteside").checked==true)){
			    detect("black");
			  }
			}
			break;
		case "orange / white"||"orange/white":
		  if(inout!="in"&&document.getElementById("whiteside").checked==false){
			  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[0].innerHTML="";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  if(document.getElementById("ink_color").value=="orange"){
			    detect("white");
				}
			}else if(inout=="in"||document.getElementById("whiteside").checked==true){
			  i1r0[0].innerHTML="";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="";
		    i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    if(document.getElementById("rink_color").value=="white"||(document.getElementById("ink_color").value=="white"&&document.getElementById("whiteside").checked==true)||document.getElementById("rink_color").value=="ash"||(document.getElementById("ink_color").value=="ash"&&document.getElementById("whiteside").checked==true)){
			    detect("black");
			  }
			}
			break;	
		case "red / white"||"red/white":
		  if(inout!="in"&&document.getElementById("whiteside").checked==false){
			  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[0].innerHTML=""; 
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
	      if(document.getElementById("ink_color").value=="black"){
			    detect("white");
			  }
			}else if(inout=="in"||document.getElementById("whiteside").checked==true){
			  i1r0[0].innerHTML="";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="";
		    i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
				if(document.getElementById("rink_color").value=="white"||(document.getElementById("ink_color").value=="white"&&document.getElementById("whiteside").checked==true)||document.getElementById("rink_color").value=="ash"||(document.getElementById("ink_color").value=="ash"&&document.getElementById("whiteside").checked==true)){
			    detect("black");
			  }
			}
			break;
		case "cardinal red / white"||"cardinal red/white":
		  if(inout!="in"&&document.getElementById("whiteside").checked==false){
			  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[0].innerHTML="";
				i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
				i2r0[6].innerHTML="";
		    if(document.getElementById("ink_color").value=="cardinalred"){
			    detect("white");
				}
			}else if(inout=="in"||document.getElementById("whiteside").checked==true){
			  i1r0[0].innerHTML="";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="";
		    i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    if(document.getElementById("rink_color").value=="white"||(document.getElementById("ink_color").value=="white"&&document.getElementById("whiteside").checked==true)||document.getElementById("rink_color").value=="ash"||(document.getElementById("ink_color").value=="ash"&&document.getElementById("whiteside").checked==true)){
			    detect("black");
			  }
			}
			break;
		case "maroon / white"||"maroon/white":
		  if(inout!="in"&&document.getElementById("whiteside").checked==false){
			  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[0].innerHTML="";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="";
			if(document.getElementById("ink_color").value=="maroon"){
			    detect("white");
				}
			}else if(inout=="in"||document.getElementById("whiteside").checked==true){
			  i1r0[0].innerHTML="";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="";
		    i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    if(document.getElementById("rink_color").value=="white"||(document.getElementById("ink_color").value=="white"&&document.getElementById("whiteside").checked==true)||document.getElementById("rink_color").value=="ash"||(document.getElementById("ink_color").value=="ash"&&document.getElementById("whiteside").checked==true)){
			    detect("black");
			  }
			}
			break;
		case "purple / white"||"purple/white":
		  if(inout!="in"&&document.getElementById("whiteside").checked==false){
			  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
				i2r0[6].innerHTML="";
		    if(document.getElementById("ink_color").value=="purple"){
			    detect("white");
				}
			}else if(inout=="in"||document.getElementById("whiteside").checked==true){
			  i1r0[0].innerHTML="";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="";
		    i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    if(document.getElementById("rink_color").value=="white"||(document.getElementById("ink_color").value=="white"&&document.getElementById("whiteside").checked==true)||document.getElementById("rink_color").value=="ash"||(document.getElementById("ink_color").value=="ash"&&document.getElementById("whiteside").checked==true)){
			    detect("black");
			  }
			}
			break;
		case "black / white"||"black/white":
		  if(inout!="in"&&document.getElementById("whiteside").checked==false){
			  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="";
		    i2r0[4].innerHTML="";
		    i2r0[5].innerHTML="";
		    i2r0[6].innerHTML="";
				if(document.getElementById("ink_color").value=="black"){
			    detect("white");
			  }
			}else if(inout=="in"||document.getElementById("whiteside").checked==true){
			  i1r0[0].innerHTML="";
        i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
        i1r0[6].innerHTML="";
		    i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		    i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		    i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
				if(document.getElementById("rink_color").value=="white"||(document.getElementById("ink_color").value=="white"&&document.getElementById("whiteside").checked==true)||document.getElementById("rink_color").value=="ash"||(document.getElementById("ink_color").value=="ash"&&document.getElementById("whiteside").checked==true)){
			    detect("black");
			  }
			}
			break;	
		default:
		  i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
      i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		  i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		  i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
	}
	/*
		i1r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('white')\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    i1r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('ash')\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    i1r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('aquablue')\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    i1r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('royalblue')\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    i1r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('navyblue')\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    i1r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('kellygreen')\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    i1r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('forestgreen')\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		i2r0[0].innerHTML="<label style='cursor:pointer' onclick=\"detect('peach')\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		i2r0[1].innerHTML="<label style='cursor:pointer' onclick=\"detect('orange')\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		i2r0[2].innerHTML="<label style='cursor:pointer' onclick=\"detect('scarletred')\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>"; 
		i2r0[3].innerHTML="<label style='cursor:pointer' onclick=\"detect('brownred')\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		i2r0[4].innerHTML="<label style='cursor:pointer' onclick=\"detect('brown')\"><img style='background-color:#6D2D2B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		i2r0[5].innerHTML="<label style='cursor:pointer' onclick=\"detect('purple')\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		i2r0[6].innerHTML="<label style='cursor:pointer' onclick=\"detect('black')\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		*/	
	/*end refresh ink colors*/
}

function inkcolorstatus(){
  var style_letter=document.getElementById("style_letter").value;
  for (var i=0;i<document.form1.decide.length;i++)
  {
    if (document.form1.decide[i].checked)
    {
      var decide = document.form1.decide[i].value;
    }
  }
  for (var i=0;i<document.form1.prlc.length;i++)
  {
    if (document.form1.prlc[i].checked)
    {
      var prlc = document.form1.prlc[i].value;
    }
  }
	if(prlc!="ff"||style_letter=="o")
	{
	  for (var i=0;i<document.form1.front_rc.length;i++)
    {
      if (document.form1.front_rc[i].checked)
      {
        var rc = document.form1.front_rc[i].value;
      }
    }
	}
	else
	  var rc="false";
	var color_name=document.getElementById("ink_color").value;
	var rcolor_name=document.getElementById("rink_color").value;
	var ink_color;
	var rink_color;
	var revs=document.form1.revs.checked;
	var style_name=document.getElementById("style_name").value;
	
	switch(color_name){
	  case "white":
	    ink_color="white";
	    break;
	  case "ash":
	    ink_color="lt grey";
	    break;
	  case "aquablue":
	    ink_color="col blue";
	    break;
	  case "royalblue":
	    ink_color="royal";
	    break;
	  case "navyblue":
	    ink_color="navy";
	    break;
	  case "kellygreen":
	    ink_color="kelly";
	    break;
	  case "forestgreen":
	    ink_color="forest";
	    break;
	  case "peach":
	    ink_color="gold";
	    break;
	  case "orange":
	    ink_color="orange";
	    break;
	  case "scarletred":
	    ink_color="red";
	    break;
	  case "brownred":
	    ink_color="maroon";
	    break;
	  case "brown":
	    ink_color="brown";
	    break;
	  case "purple":
	    ink_color="purple";
	    break;
	  case "black":
	    ink_color="black";
	    break;
		default:
		  ink_color="";
	}
	
	switch(rcolor_name){
	  case "white":
	    rink_color="white";
	    break;
	  case "ash":
	    rink_color="lt grey";
	    break;
	  case "aquablue":
	    rink_color="col blue";
	    break;
	  case "royalblue":
	    rink_color="royal";
	    break;
	  case "navyblue":
	    rink_color="navy";
	    break;
	  case "kellygreen":
	    rink_color="kelly";
	    break;
	  case "forestgreen":
	    rink_color="forest";
	    break;
	  case "peach":
	    rink_color="gold";
	    break;
	  case "orange":
	    rink_color="orange";
	    break;
	  case "scarletred":
	    rink_color="red";
	    break;
	  case "brownred":
	    rink_color="maroon";
	    break;
	  case "brown":
	    rink_color="brown";
	    break;
	  case "purple":
	    rink_color="purple";
	    break;
	  case "black":
	    rink_color="black";
	    break;
		default:
		  rink_color="";
	}
	
	if(prlc!="np"||rc!="false"||decide!="false"){
	  var x=document.getElementById("style_table").rows[0].cells;
	  x[0].innerHTML=ink_color+" print";
	  if((style_name=="NRV100" || style_name=="MMM100")&&revs==true&&document.getElementById("whiteside").checked==false){
		  var y=document.getElementById("style_table").rows[1].cells;
	    y[0].innerHTML=rink_color+" ink revs";
		}else{
		  var y=document.getElementById("style_table").rows[1].cells;
	    y[0].innerHTML="&nbsp;";
		}
	}else{
	  var x=document.getElementById("style_table").rows[0].cells;
	  x[0].innerHTML="no print";
		var y=document.getElementById("style_table").rows[1].cells;
	  y[0].innerHTML="&nbsp;";
	}
}

/*Style*/
function setcolorbox()
{
  var colorbox=' ';
	var letter=document.getElementById("style_letter").value;
  if(letter=='rr') //red
    colorbox='r';
  else if(letter=='rb') //royal blue
    colorbox='b';
  else if(letter=='rn' || letter=='bn') //navy blue
    colorbox='n';
  else if(letter=='rk' || letter=='bk') //black
    colorbox='k';
  else if(letter=='bo') //orange
    colorbox='o';
  else if(letter=='bl') //baby blue
    colorbox='l';
  else if(letter=='bp') //pink
    colorbox='p';
	else if(letter=='j')
	  colorbox='w';
	else if(letter=='m')
	  colorbox='h';
	document.getElementById('colorbox').value=colorbox;
}

function background(color,color_name,colorbox)
{
  if(color_name=="white / red" || color_name=="white/red" || 
     color_name=="white / royal blue" || color_name=="white/royal blue" ||
	   color_name=="white / navy blue" || color_name=="white/navy blue" ||
	   color_name=="white / black" || color_name=="white/black" ||
	   color_name=="white / pink" || color_name=="white/pink" ||
	   color_name=="white / orange" || color_name=="white/orange" ||
	   color_name=="white / orange" || color_name=="white/orange" ||
	   color_name=="white / baby blue" || color_name=="white/baby blue" ||
		 color_name=="white / white" || color_name=="white/white")
    color_name='white';
  if(color_name=="heather / navy blue" || color_name=="heather/navy blue" ||
     color_name=="heather / black" || color_name=="heather/black")
    color_name='heather';
  if(color_name=="red / black" || color_name=="red/black" ||
	   color_name=="red / white" || color_name=="red/white")
    color_name='red';
  if(color_name=="pink / black" || color_name=="pink/black")
    color_name='pink';
  if(color_name=="baby blue / navy blue" || color_name=="baby blue/navy blue")
    color_name='baby blue';
	if(color_name=="black / white" || color_name=="black/white")
    color_name='black';
	if(color_name=="dark green / white" || color_name=="dark green/white")
    color_name='dark green';
	if(color_name=="navy blue / white" || color_name=="navy blue/white")
    color_name='navy blue';
	if(color_name=="royal blue / white" || color_name=="royal blue/white")
    color_name='royal blue';
	if(color_name=="vegas gold / white" || color_name=="vegas gold/white")
    color_name='vegas gold';
	if(color_name=="col. blue / white" || color_name=="col. blue/white")
    color_name='col. blue';
	if(color_name=="kelly / white" || color_name=="kelly/white")
    color_name='kelly';
	if(color_name=="gold / white" || color_name=="gold/white")
    color_name='gold';
	if(color_name=="orange / white" || color_name=="orange/white")
    color_name='orange';
	if(color_name=="cardinal red / white" || color_name=="cardinal red/white")
    color_name='cardinal red';
	if(color_name=="maroon / white" || color_name=="maroon/white")
    color_name='maroon';
	if(color_name=="purple / white" || color_name=="purple/white")
    color_name='purple';
	
	
	var browser=navigator.appName;
	var cbname="";
	var letter=document.getElementById("style_letter").value;
	/*start reset insideout*/
	var inout=document.getElementById("inout").value;
	var ioletter=document.getElementById("style_letter").value;
	if(inout=="in" && (ioletter=="j" || ioletter=="m"))
	  insideout(1);
	/*end reset insideout*/
	/*start reset insideout extended*/
	if(ioletter=="j"&&document.getElementById("whiteside").checked==true){
	  document.getElementById("whiteside").checked=false;
		document.getElementById("whiteside2").value="false";
		insideout(3);
	}
	/*end reset insideout extended*/
	var side=document.getElementById("flipit").value;
  if(colorbox=="b")cbname=" / royal blue";
	if(colorbox=="k")cbname=" / black";
	if(colorbox=="l")cbname=" / baby blue";
	if(colorbox=="n")cbname=" / navy blue";
	if(colorbox=="o")cbname=" / orange";
	if(colorbox=="p")cbname=" / pink";
	if(colorbox=="r")cbname=" / red";
	if(letter!="m" && colorbox=="w")cbname=" / white";
	color_name=color_name+cbname;
	if(letter=="t" || letter=="h" || letter=="l" || letter=="p" || letter=="s" || letter=="d" || letter=="j" || letter=="o" || letter=="m" || letter=="k")
	{
	  var x=document.getElementById("style_table").rows[2].cells;
	  x[0].innerHTML=color_name;
	}
	if(letter=="rr" || letter=="rn" || letter=="rk" || letter=="rb")
	{
	  if(browser=="Microsoft Internet Explorer")
	  {
	    document.getElementById("main_img").src = "images/order/blank.gif";
	    document.main_img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/order/r"+colorbox+side+".png')";
	  }
	  else
	  {  document.getElementById("main_img").src = "images/order/r"+colorbox+side+".png";}
    var x=document.getElementById("style_table").rows[2].cells;
	  x[0].innerHTML=color_name;
		document.getElementById("style_letter").value="r"+colorbox;
		document.getElementById("style_letter2").value="r"+colorbox;
	}
	if(letter=="bl" || letter=="bo" || letter=="bp" || letter=="bk" || letter=="bn")
	{
	  if(browser=="Microsoft Internet Explorer")
	  {
	    document.getElementById("main_img").src = "images/order/blank.gif";
	    document.main_img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/order/b"+colorbox+side+".png')";
	  }
	  else
	  {  document.getElementById("main_img").src = "images/order/b"+colorbox+side+".png";}
    var x=document.getElementById("style_table").rows[2].cells;
	  x[0].innerHTML=color_name;
		document.getElementById("style_letter").value="b"+colorbox;
		document.getElementById("style_letter2").value="b"+colorbox;
	}
	document.getElementById("screen").style.backgroundColor = "#"+color;
	document.getElementById("color").value = color;
	document.getElementById("color_name").value = color_name;
	document.getElementById("color2").value = color;
	document.getElementById("color_name2").value = color_name;
	refreshinkcolors(color_name);
}

function mstylechange(product_desc)
{
  if(product_desc!="")
	{
	  var y=document.getElementById("style_table").rows[3].cells;
	  y[0].innerHTML=product_desc;
	  document.getElementById("mstyle2").value = product_desc;
	}
}

function mbackcolor(color,color_name)
{
  if(color_name!="")
	{
    var x=document.getElementById("style_table").rows[2].cells;
	  x[0].innerHTML=color_name;
    document.getElementById("color").value = color;
	  document.getElementById("color_name").value = color_name;
	  document.getElementById("color2").value = color;
	  document.getElementById("color_name2").value = color_name;
	}
}

function letter_styl(product)
{
  var browser=navigator.appName;
	var category=document.form1.category.options[document.form1.category.selectedIndex].value;
	var filename=document.getElementById("filename").value;
	for (var i=0;i<document.form1.prlc.length;i++)
  {
    if (document.form1.prlc[i].checked)
    {
      var prlc = document.form1.prlc[i].value;
    }
  }
	if(prlc!='ff'||product=="o")
	{
	  if(product=="o"){
		  document.form1.front_rc[0].value="three";
		  document.form1.front_rc[1].value="four";
		}else{
		  document.form1.front_rc[0].value="two";
		  document.form1.front_rc[1].value="three";
		}
	  for (var i=0;i<document.form1.front_rc.length;i++)
    {
      if (document.form1.front_rc[i].checked)
      {
        var rc = document.form1.front_rc[i].value;
      }
    }
	}
	else
	  var rc="false";
	document.getElementById("rc2").value=rc;
	var category=document.form1.category.options[document.form1.category.selectedIndex].value;
	var ink_color=document.getElementById("ink_color").value;
	if(product=="o"){
	  document.getElementById("flipit").value="front";
	  document.form1.decide[1].checked=true;
	  document.getElementById("decide2").value="false";
	}
	var side=document.getElementById("flipit").value;
	if(browser=="Microsoft Internet Explorer")
	{
	  document.getElementById("main_img").src = "images/order/blank.gif";
	  document.main_img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/order/"+product+side+".png')";
	}
	else
	{  document.getElementById("main_img").src = "images/order/"+product+side+".png";}
  document.getElementById("style_letter").value=product;
	document.getElementById("style_letter2").value=product;
  var color;
	var color_name;
	/*start reset insideout*/
	var inout=document.getElementById("inout").value;
	var ioletter=document.getElementById("style_letter").value;
	if(inout=="in" && (ioletter=="j" || ioletter=="m"))
	  insideout(1);
	/*end reset insideout*/
  var product_name;
	var product_desc;
	for (var i=0;i<document.form1.prlc.length;i++)
  {
    if (document.form1.prlc[i].checked)
    {
      var prlc = document.form1.prlc[i].value;
    }
  }
	var num=parseInt(document.getElementById("print_num").value);
	var result=document.form1.decide[0].checked;
	var style_letter=document.getElementById("style_letter").value;
	var p=1;
	for (var i=0;i<document.form1.combo.length;i++)
  {
    if (document.form1.combo[i].checked)
    {
      var combo = document.form1.combo[i].value;
    }
  }
	if(prlc=="ff"&&style_letter!="o")
	  var lc="";
	else if(prlc=="lc"||style_letter=="o")
	  var lc="lc";
	/*Set Custom Image Location*/
	var wt=parseInt(document.getElementById('width').value);
	var wtlc=parseInt(document.getElementById('widthlc').value);
	var ht=parseInt(document.getElementById('height').value);
	var htlc=parseInt(document.getElementById('heightlc').value);
	if(prlc=="ff")
	{
	  if(style_letter=="j")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="bl" || style_letter=="bp" || style_letter=="bo" || style_letter=="bk" || style_letter=="bn")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="d")
		  document.getElementById('front_custom').style.top='180px';
		else if(style_letter=="o")
		  document.getElementById('front_custom').style.top='250px';
		else
		  document.getElementById('front_custom').style.top='140px';
		if(style_letter=="o")
		{
		  document.getElementById('front_custom').style.left='88px';
		  document.getElementById('front_custom').style.width=wtlc+'px';
		  document.getElementById('front_custom').style.height=htlc+'px';
		  document.getElementById('custom_print').width=wtlc;
		  document.getElementById('custom_print').height=htlc;
		}
		else
		{
		  document.getElementById('front_custom').style.left='109px';
		  document.getElementById('front_custom').style.width=wt+'px';
		  document.getElementById('front_custom').style.height=ht+'px';
		  document.getElementById('custom_print').width=wt;
		  document.getElementById('custom_print').height=ht;
		}
	}
	else if(prlc=="lc")
	{
	  if(style_letter=="j")
		  document.getElementById('front_custom').style.top='170px';
		else if(style_letter=="bl" || style_letter=="bp" || style_letter=="bo" || style_letter=="bk" || style_letter=="bn")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="d")
		  document.getElementById('front_custom').style.top='185px';
		else if(style_letter=="o")
		  document.getElementById('front_custom').style.top='250px';
		else
		  document.getElementById('front_custom').style.top='150px';
		if(style_letter=="o")
		  document.getElementById('front_custom').style.left='223px';
		else
		  document.getElementById('front_custom').style.left='203px';
		document.getElementById('front_custom').style.width=wtlc+'px';
		document.getElementById('front_custom').style.height=htlc+'px';
		document.getElementById('custom_print').width=wtlc;
		document.getElementById('custom_print').height=htlc;
	}
	/*End Set Custom Image Location*/
	/*Shorts Print Location Changes*/
	if(style_letter=="o"){
	  if(prlc=="ff"){
		  document.getElementById('front_print').style.top='240px';
			document.getElementById('front_print').style.left='-9px';
	    document.getElementById('right_chest').style.top='243px';
		  document.getElementById('right_chest').style.left='213px';
	    document.form1.front_sh[1].checked=true;
		  document.getElementById("sh2").value="left";
		}else if(prlc=="lc"){
		  document.getElementById('front_print').style.top='240px';
		  document.getElementById('front_print').style.left='137px';
	    document.getElementById('right_chest').style.top='243px';
		  document.getElementById('right_chest').style.left='79px';
	    document.form1.front_sh[0].checked=true;
		  document.getElementById("sh2").value="right";
		}else{
		  document.getElementById('front_print').style.top='240px';
			document.getElementById('front_print').style.left='137px';
	    document.getElementById('right_chest').style.top='243px';
			for (var i=0;i<document.form1.front_rc.length;i++){
        if (document.form1.front_rc[i].checked){
          var rc = document.form1.front_rc[i].value;
        }
      }
			if(rc!="false"){
			  for (var i=0;i<document.form1.front_sh.length;i++){
          if (document.form1.front_sh[i].checked){
            var sh = document.form1.front_sh[i].value;
          }
        }
			}
			else var sh="right";
			if(sh=="right")
		    document.getElementById('right_chest').style.left='79px';
			else if(sh=="left")
			  document.getElementById('right_chest').style.left='213px';
		}		  
	}else{
		document.getElementById('front_print').style.left='109px';
		document.getElementById('right_chest').style.left='109px';
	}
	/*End Shorts Print Location Changes*/
	/*Show image if needed*/
	  if (side=='front')
	  {
	    if(browser=="Microsoft Internet Explorer")
	 	  {
		    document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
			  document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
 	      if(category=="select_category" && prlc!="np")
		  	{
			    if(filename=="")
				    document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/order/question_mark"+lc+".png')";
			    else
				    document.custom_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='customimages/"+filename+"',sizingMethod='scale')";
			  }
			  else
				  document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+category+"_"+ink_color+"_0"+num+lc+"_jerseys.png')";
		    if(rc!="false")
			    document.rc_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/rc"+rc+"_"+ink_color+"_jerseys.png')";  
			  else
			  {
		      document.rc_print.style.filter="";
			    document.rc_print.src="images/order/blank.gif";
	      }
		  }
		  else 
		  {
		    document.name_on.src="images/order/blank.gif";
		    document.number_on.src="images/order/blank.gif";
			  if(category=="select_category" && prlc!="np")
			  {
			    if(filename=="")
				  {
				    document.display_print.src="images/order/question_mark"+lc+".png";
		        document.display_print.style.visibility="visible";
				  }
				  else
				  {
				    document.custom_print.src="customimages/"+filename;
		        document.custom_print.style.visibility="visible";
				  }
			  }
			  else
			  {
			    document.display_print.src="prodimages/"+category+"_"+ink_color+"_0"+num+lc+"_jerseys.png";
			    document.display_print.style.visibility="visible"; //setTimeout("document.display_print.style.visibility="visible"",1000)
			  }
			  if(rc!="false")
			  {
			    document.rc_print.src="prodimages/rc"+rc+"_"+ink_color+"_jerseys.png";
			    document.rc_print.style.visibility="visible";
			  }
			  else
			    document.rc_print.src="images/order/blank.gif";
		  }
	  }
	  else if (side=='back')
	  {
	    if(combo=="names")
	      p=0;
	    if(combo=="nums")
	      p=1;
		  if(combo=="both")
	      p=1;	
		  if(p==1)
		  {
		    var checksix=document.form1.nn_size[0].checked;
	      if(checksix==true)
	      {
	        var num_size="sixinch";
	      }
	      else
	      {
		      var num_size="eightinch";
	      }
		  }
		  if(product=="j")
		  {
		    document.form1.combo[1].checked=true;
			  document.form2.combo2.value="nums";
		    combo="nums";
		  }
		  else
		  {
		    if(combo=="names")
		    {  document.form1.combo[0].checked=true;
			    document.form2.combo2.value="names";}
			  else if(combo=="nums")
		    {  document.form1.combo[1].checked=true;
			    document.form2.combo2.value="nums";}
			  else if(combo=="both")
		    {  document.form1.combo[2].checked=true;
			    document.form2.combo2.value="both";}
		  }
		  if(p==1)
		  {
		    if(num_size=="sixinch")
		    {  document.form1.nn_size[0].checked=true;
			    document.form2.nn_size2.value="sixinch";}
		    else if(num_size=="eightinch")
		    {  document.form1.nn_size[1].checked=true;
			    document.form2.nn_size2.value="eightinch";}
		  }
		  if(browser=="Microsoft Internet Explorer")
	    {
		    document.rc_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
	      document.rc_print.src="images/order/blank.gif";
		    document.custom_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
	      document.custom_print.src="images/order/blank.gif";
		    document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
			  document.display_print.src="images/order/blank.gif";
		    if(result==true)
	      {		
				  if(combo=="nums")
				  {
				    document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
					  document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+num_size+"_"+ink_color+"_jerseys.png');";
				  }
				  if(combo=="names")
				  {
				    document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/name_"+ink_color+"_jerseys.png');";
				    document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
			    }
				  if(combo=="both")
		      {
				    document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/name_"+ink_color+"_jerseys.png');";
				    document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+num_size+"_"+ink_color+"_jerseys.png');";
		      }
			  }
		  }
		  else
		  {
		    document.rc_print.style.visibility="hidden";
		    document.custom_print.style.visibility="hidden";
			  document.display_print.style.visibility="hidden";
		    if(result==true) 
		    { 
			    if(combo=="nums")
		      {
				    document.name_on.src="images/order/blank.gif";
					  document.number_on.src="prodimages/"+num_size+"_"+ink_color+"_jerseys.png";
		      }
				  if(combo=="names")
		      {
				    document.name_on.src="prodimages/name_"+ink_color+"_jerseys.png";
				    document.number_on.src="images/order/blank.gif";
		      }
				  if(combo=="both")
				  {
				    document.name_on.src="prodimages/name_"+ink_color+"_jerseys.png";
		        document.number_on.src="prodimages/"+num_size+"_"+ink_color+"_jerseys.png";
		      }
			  }
		  }
	  }
	/*End show image if needed*/
	if(product=="t")
	{
	  color="BCBEC0";
	  color_name="ash grey";
	  product_name="SST100";
		product_desc="100% cotton ss tee";
	}
	if(product=="h")
	{
	  color="BCBEC0";
	  color_name="ash grey";
	  product_name="SST50";
		product_desc="50/50 ss tee";
	}
	if(product=="l")
	{
	  color="BCBEC0";
	  color_name="ash grey";
	  product_name="LST100";
		product_desc="100% cotton ls tee";
	}
	if(product=="p")
	{
	  color="BCBEC0";
	  color_name="ash grey";
	  product_name="LST50";
		product_desc="50/50 ls tee";
	}
	if(product=="s")
	{
	  color="BCBEC0";
	  color_name="ash grey";
	  product_name="NST100";
		product_desc="100% cotton sleeveless tee";
	}
	if(product=="rk")
	{
	  color="FFFFFF";
	  color_name="white / black";
	  product_name="RGT100";
		product_desc="100% cotton ringer tee";
	}
	if(product=="rb")
	{
	  color="FFFFFF";
	  color_name="white / royal blue";
	  product_name="RGT100";
		product_desc="100% cotton ringer tee";
	}
	if(product=="rr")
	{
	  color="FFFFFF";
	  color_name="white / red";
	  product_name="RGT100";
		product_desc="100% cotton ringer tee";
	}
	if(product=="rn")
	{
	  color="FFFFFF";
	  color_name="white / navy blue";
	  product_name="RGT100";
		product_desc="100% cotton ringer tee";
	}
	if(product=="bl")
	{
	  color="FFFFFF";
	  color_name="white / baby blue";
	  product_name="BRC100";
		product_desc="100% cotton baby-rib contrast tee";
	}
	if(product=="bn")
	{
	  color="FFFFFF";
	  color_name="white / navy blue";
	  product_name="BRC100";
		product_desc="100% cotton baby-rib contrast tee";
	}
	if(product=="bo")
	{
	  color="FFFFFF";
	  color_name="white / orange";
	  product_name="BRC100";
		product_desc="100% cotton baby-rib contrast tee";
	}
	if(product=="bp")
	{
	  color="FFFFFF";
	  color_name="white / pink";
	  product_name="BRC100";
		product_desc="100% cotton baby-rib contrast tee";
	}
	if(product=="bk")
	{
	  color="FFFFFF";
	  color_name="white / black";
	  product_name="BRC100";
		product_desc="100% cotton baby-rib contrast tee";
	}
	if(product=="d")
	{
	  color="BCBEC0";
	  color_name="ash grey";
	  product_name="HDS9_5";
		product_desc="8 oz. pullover hoodie";
		document.getElementById("front_print").style.top='175px';
		document.getElementById("right_chest").style.top='175px';
		document.getElementById("back_on1").style.top='163px';
		document.getElementById("back_on2").style.top='192px';
		document.getElementById("back_on1").style.left='107px';
		document.getElementById("back_on2").style.left='107px';
	}
	else
	{
		document.getElementById("front_print").style.top='140px';
		document.getElementById("right_chest").style.top='140px';
		document.getElementById("back_on1").style.top='128px';
		document.getElementById("back_on2").style.top='157px';
		document.getElementById("back_on1").style.left='112px';
		document.getElementById("back_on2").style.left='112px';
	}
	/*names and numbers page changes*/
	if(prlc=="lc" || prlc=="np" || style_letter=="o")
	{
	  document.getElementById("order4_rc").style.visibility='visible';
	  document.getElementById("order4_bar1").style.top='60px';
	  document.getElementById("order4_bar2").style.visibility='hidden';
	  if(style_letter=="o")
	  {
		  document.getElementById("order4_back").style.visibility='visible';
	    document.getElementById("order4_shorts").style.visibility='visible';
	    document.getElementById("order4_radio1").style.visibility='hidden';
	    document.getElementById("order4_radio2").style.visibility='hidden';
	    document.getElementById("order4_radio3").style.visibility='hidden';
		  document.form1.combo[0].style.visibility="hidden";
		  document.getElementById("order4_combo1").style.visibility="hidden";
		  document.form1.combo[2].style.visibility="hidden";
		  document.getElementById("order4_combo3").style.visibility="hidden";
	    document.getElementById("order4_frame").style.top='95px';
	    document.getElementById("order4_frame").style.height='190px';
			var p1=document.getElementById("order3_ff");
	    p1.innerHTML="RIGHT LEG";
		  var p2=document.getElementById("order3_lc");
	    p2.innerHTML="LEFT LEG";
		  var p3=document.getElementById("order3_np");
	    p3.innerHTML="NO PRINT";
			document.form1.category.options[9].innerHTML="1\" number layouts";
			document.form1.category.options[10].innerHTML="2\" number layouts";
			var f1=document.getElementById("order4_front");
	    f1.innerHTML="Numbers-";
		  var b1=document.getElementById("order4_back");
	    b1.innerHTML="Location-";
			var r1=document.getElementById("rclabel1");
	    r1.innerHTML="3\" #'s";
		  var r2=document.getElementById("rclabel2");
	    r2.innerHTML="4\" #'s";
		  var r3=document.getElementById("rclabel3");
	    r3.innerHTML="No #'s";
		  if(prlc!='ff'||style_letter=="o"){
		    document.form1.front_rc[0].value="three";
		    document.form1.front_rc[1].value="four";
		  }
		}else{
		  document.getElementById("order4_back").style.visibility='visible';
	    document.getElementById("order4_shorts").style.visibility='hidden';
	    document.getElementById("order4_radio1").style.visibility='visible';
	    document.getElementById("order4_radio2").style.visibility='visible';
	    document.getElementById("order4_radio3").style.visibility='visible';
	    document.getElementById("order4_radio1").style.top='70px';
	    document.getElementById("order4_radio2").style.top='90px';
	    document.getElementById("order4_radio3").style.top='110px';
	    document.getElementById("order4_frame").style.top='135px';
	    document.getElementById("order4_frame").style.height='150px';
			var p1=document.getElementById("order3_ff");
	    p1.innerHTML="FULL FRONT";
		  var p2=document.getElementById("order3_lc");
	    p2.innerHTML="LEFT CHEST";
		  var p3=document.getElementById("order3_np");
	    p3.innerHTML="NO FRONT PRINT";
			document.form1.category.options[9].innerHTML="3\" number layouts";
			document.form1.category.options[10].innerHTML="4\" number layouts";
			var f1=document.getElementById("order4_front");
	    f1.innerHTML="Front-";
		  var b1=document.getElementById("order4_back");
	    b1.innerHTML="Back-";
		  var r1=document.getElementById("rclabel1");
	    r1.innerHTML="2\" Right Chest #'s";
		  var r2=document.getElementById("rclabel2");
	    r2.innerHTML="3\" Right Chest #'s";
		  var r3=document.getElementById("rclabel3");
	    r3.innerHTML="No Front #'s";
		  if(prlc!='ff'||style_letter=="o"){
		    document.form1.front_rc[0].value="two";
		    document.form1.front_rc[1].value="three";
		  }
		}
	}
	else
	{
	  document.getElementById("order4_rc").style.visibility='hidden';
	  document.getElementById("order4_back").style.visibility='hidden';
	  document.getElementById("order4_shorts").style.visibility='hidden';
	  document.getElementById("order4_radio1").style.visibility='visible';
	  document.getElementById("order4_radio2").style.visibility='visible';
	  document.getElementById("order4_radio3").style.visibility='visible';
		var p1=document.getElementById("order3_ff");
	  p1.innerHTML="FULL FRONT";
		var p2=document.getElementById("order3_lc");
	  p2.innerHTML="LEFT CHEST";
		var p3=document.getElementById("order3_np");
	  p3.innerHTML="NO FRONT PRINT";
		document.form1.category.options[9].innerHTML="3\" number layouts";
		document.form1.category.options[10].innerHTML="4\" number layouts";
		var f1=document.getElementById("order4_front");
	  f1.innerHTML="Front-";
		var b1=document.getElementById("order4_back");
	  b1.innerHTML="Back-";
		var r1=document.getElementById("rclabel1");
	  r1.innerHTML="2\" Right Chest #'s";
		var r2=document.getElementById("rclabel2");
	  r2.innerHTML="3\" Right Chest #'s";
		var r3=document.getElementById("rclabel3");
	  r3.innerHTML="No Front #'s";
		if(prlc!='ff'||style_letter=="o"){
		  document.form1.front_rc[0].value="two";
		  document.form1.front_rc[1].value="three";
		}
	  if(style_letter=="j" || style_letter=="m")
		{
		  document.getElementById("order4_radio1").style.top='35px';
	    document.getElementById("order4_radio2").style.top='55px';
		}
		else
		{
		  document.getElementById("order4_radio1").style.top='25px';
	    document.getElementById("order4_radio2").style.top='50px';
		}
	  document.getElementById("order4_bar1").style.top='75px';
	  document.getElementById("order4_radio3").style.top='80px';
	  document.getElementById("order4_bar2").style.visibility='visible';
	  document.getElementById("order4_frame").style.top='115px';
		document.getElementById("order4_frame").style.height='170px';
	}
	if(prlc!='ff'||style_letter=="o")
	{
	  for (var i=0;i<document.form1.front_rc.length;i++)
    {
      if (document.form1.front_rc[i].checked)
      {
        var rc = document.form1.front_rc[i].value;
      }
    }
	}
	else
	  var rc="false";
	document.getElementById("rc2").value=rc;
	/*end names and numbers page changes*/
	var player=document.getElementById("player");
	if(product=="j")
	{
	  color="0054A6";
	  color_name="royal blue / white";
	  product_name="NRV100";
		product_desc="reversible micromesh tank";
		player.innerHTML="Player Numbers?";
		document.getElementById("order1_reverse").style.visibility='visible';
		document.getElementById("front_print").style.top='160px';
		document.getElementById("right_chest").style.top='160px';
		document.form1.combo[1].checked=true;
		document.form2.combo2.value="nums";
		document.form1.combo[0].style.visibility="hidden";
		document.getElementById("order4_combo1").style.visibility="hidden";
		document.form1.combo[2].style.visibility="hidden";
		document.getElementById("order4_combo3").style.visibility="hidden";
		document.getElementById("order2_mstyle").style.visibility="hidden";
		document.getElementById("order2_mprice").style.visibility="hidden";
		document.getElementById("order2_mcolor").style.visibility="hidden";
		document.getElementById("order5_upload").style.visibility="hidden";
		document.getElementById("style_area").style.visibility="hidden";
		for (var i=0;i<document.form1.decide.length;i++)
    {
      if (document.form1.decide[i].checked)
      {
        var decide = document.form1.decide[i].value;
      }
    }
		for (var i=0;i<document.form1.nn_size.length;i++)
    {
      if (document.form1.nn_size[i].checked)
      {
        var nn_size = document.form1.nn_size[i].value;
      }
    }
		if(product=="j")
		  names_check(decide,'nums',nn_size);
	}
	else if(product=="m")
	{
	  color="BCBEC0";
	  color_name="to be assigned";
	  product_name="MMM100";
		product_desc="misc catalog jersey";
		player.innerHTML="Player Names or Numbers?";
		document.getElementById("order1_reverse").style.visibility='visible';
		document.getElementById("front_print").style.top='140px';
		document.getElementById("right_chest").style.top='140px';
		document.form1.combo[0].style.visibility="visible";
		document.getElementById("order4_combo1").style.visibility="visible";
		document.form1.combo[2].style.visibility="visible";
		document.getElementById("order4_combo3").style.visibility="visible";
	  document.getElementById("order2_mstyle").style.visibility="visible";
		document.getElementById("order2_mprice").style.visibility="visible";
		document.getElementById("order2_mcolor").style.visibility="visible";
		document.getElementById("order5_upload").style.visibility="visible";
		var spimagename=document.form2.spfilesent.value;
	  var spfilename=document.getElementById('spfilename').value;
		if(spimagename=="" && spfilename!="")
	    document.getElementById("style_area").style.visibility="visible";
		else
		  document.getElementById("style_area").style.visibility="hidden";
	}
	else
	{
	  player.innerHTML="Player Names or Numbers?";
	  document.getElementById("order2_mstyle").style.visibility="hidden";
		document.getElementById("order2_mprice").style.visibility="hidden";
		document.getElementById("order2_mcolor").style.visibility="hidden";
	  document.getElementById("order1_reverse").style.visibility='hidden';
		document.getElementById("order5_upload").style.visibility="hidden";
		document.getElementById("style_area").style.visibility="hidden";
		if(product!="d")
		{
		  document.getElementById("front_print").style.top='140px';
		  document.getElementById("right_chest").style.top='140px';
		}
		if(product!="o")
		{
		  document.form1.combo[0].style.visibility="visible";
		  document.getElementById("order4_combo1").style.visibility="visible";
		  document.form1.combo[2].style.visibility="visible";
		  document.getElementById("order4_combo3").style.visibility="visible";
		}
	}
	if(product=="o")
	{
	  color="0054A6";
	  color_name="royal blue";
	  product_name="B207";
		product_desc="7 inch mesh/tricot short";
		var xx=document.getElementById("price_name");
	  xx.innerHTML="/ short";
	  document.getElementById("order1_flip").style.visibility='hidden';
	}
	else
	{
	  var xx=document.getElementById("price_name");
	  xx.innerHTML="/ shirt";
	  document.getElementById("order1_flip").style.visibility='visible';
	}
	if(product=="k")
	{
	  color="ED1C24";
	  color_name="red";
	  product_name="H685";
		product_desc="birdseye poly air mesh hockey jersey";
	}
	document.getElementById("style_name").value=product_name;
	document.getElementById("style_name2").value=product_name;
	var x=document.getElementById("style_table").rows[2].cells;
	x[0].innerHTML=color_name;
	var y=document.getElementById("style_table").rows[3].cells;
	y[0].innerHTML=product_desc;
	/*refresh color and size input*/
	var c1r0=document.getElementById("color1_table").rows[0].cells;
	var c2r0=document.getElementById("color2_table").rows[0].cells;
	var sr1=document.getElementById("row1");
	var sr1a=document.getElementById("row1a");
	var sr2=document.getElementById("row2");
	var sr2a=document.getElementById("row2a");
	var sr3=document.getElementById("row3");
	var sr3a=document.getElementById("row3a");
	var sr4=document.getElementById("row4");
	var sr4b=document.getElementById("row4b");
	var sr5=document.getElementById("row5");
	var sr6=document.getElementById("row6");
  if(product=="rr" || product=="rb" || product=="rn" || product=="rk")
	{
		c1r0[0].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFFFFF','white','b');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxb.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[1].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFFFFF','white','n');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxn.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[2].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFFFFF','white','r');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxr.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[3].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFFFFF','white','k');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxk.gif' width='21px' height='20px' alt='' /></label>";
    c1r0[4].innerHTML="";
		c1r0[5].innerHTML="";
		c1r0[6].innerHTML="";
		c1r0[7].innerHTML="";
		c2r0[0].innerHTML="";
		c2r0[1].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('BCBEC0','heather','n');getprice();\"><img style='background-color:#BCBEC0;' src='images/order/colorboxn.gif' width='21px' height='20px' alt='' /></label>";
		c2r0[2].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('BCBEC0','heather','k');getprice();\"><img style='background-color:#BCBEC0;' src='images/order/colorboxk.gif' width='21px' height='20px' alt='' /></label>";
	  c2r0[3].innerHTML="";
		c2r0[4].innerHTML="";
		c2r0[5].innerHTML="";
		c2r0[6].innerHTML="";
		c2r0[7].innerHTML="";
		sr1.innerHTML="<input id='ysmall' name='ysmall' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth small</label>";
		sr1a.innerHTML="<input id='small' name='small' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult small</label>";
		sr2.innerHTML="<input id='ymed' name='ymed' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth medium</label>";
		sr2a.innerHTML="<input id='med' name='med' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult medium</label>";
		sr3.innerHTML="<input id='ylarge' name='ylarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth large</label>";
		sr3a.innerHTML="<input id='large' name='large' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult large</label>";
		sr4.innerHTML="<input id='xlarge' name='xlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XL</label>";
		sr4b.innerHTML="";
		sr5.innerHTML="<input id='xxlarge' name='xxlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XXL</label>";
		sr6.innerHTML="";
	}
	else if(product=="bo" || product=="bl" || product=="bp" || product=="bk" || product=="bn")
	{
	  c1r0[0].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFFFFF','white','l');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxl.gif' width='21px' height='20px' alt='' /></label>"; //"White/Baby Blue"
		c1r0[1].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFFFFF','white','p');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxp.gif' width='21px' height='20px' alt='' /></label>"; //"White/Pink"
		c1r0[2].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFFFFF','white','o');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxo.gif' width='21px' height='20px' alt='' /></label>"; //"White/Orange"
		c1r0[3].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFFFFF','white','k');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxk.gif' width='21px' height='20px' alt='' /></label>"; //"White/Black"
    c1r0[4].innerHTML="";
		c1r0[5].innerHTML="";
		c1r0[6].innerHTML="";
		c1r0[7].innerHTML="";
		c2r0[0].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('82D2E7','baby blue','n');getprice();\"><img style='background-color:#82D2E7;' src='images/order/colorboxn.gif' width='21px' height='20px' alt='' /></label>"; //"Baby Blue/Navy"
		c2r0[1].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FECCE4','pink','k');getprice();\"><img style='background-color:#FECCE4;' src='images/order/colorboxk.gif' width='21px' height='20px' alt='' /></label>"; //"Pink/Black"
		c2r0[2].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('ED1C24','red','k');getprice();\"><img style='background-color:#ED1C24;' src='images/order/colorboxk.gif' width='21px' height='20px' alt='' /></label>"; //"Red/Black"
		c2r0[3].innerHTML="";
	  c2r0[4].innerHTML="";
		c2r0[5].innerHTML="";
		c2r0[6].innerHTML="";
		c2r0[7].innerHTML="";
		sr1.innerHTML="";
		sr1a.innerHTML="<input id='small' name='small' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult small</label>";
		sr2.innerHTML="";
		sr2a.innerHTML="<input id='med' name='med' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult medium</label>";
		sr3.innerHTML="";
		sr3a.innerHTML="<input id='large' name='large' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult large</label>";
		sr4.innerHTML="<input id='xlarge' name='xlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XL</label>";
		sr4b.innerHTML="";
		sr5.innerHTML="";
		sr6.innerHTML="";
	}
	else if(product=="k")
	{
	  c1r0[0].innerHTML="";
		c1r0[1].innerHTML="";
		c1r0[2].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFFFFF','white','');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[3].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('0054A6','royal blue','');getprice();\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c1r0[4].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('28903A','kelly green','');getprice();\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c1r0[5].innerHTML="";
		c1r0[6].innerHTML="";
    c1r0[7].innerHTML="";
		c2r0[0].innerHTML="";
    c2r0[1].innerHTML="";
    c2r0[2].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFC20E','gold','');getprice();\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c2r0[3].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('ED1C24','red','');getprice();\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c2r0[4].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('000000','black','');getprice();\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c2r0[5].innerHTML="";
		c2r0[6].innerHTML="";
		c2r0[7].innerHTML="";
	  sr1.innerHTML="<input id='ysmall' name='ysmall' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth small</label>";
		sr1a.innerHTML="<input id='small' name='small' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult small</label>";
		sr2.innerHTML="<input id='ymed' name='ymed' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth medium</label>";
		sr2a.innerHTML="<input id='med' name='med' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult medium</label>";
		sr3.innerHTML="<input id='ylarge' name='ylarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth large</label>";
		sr3a.innerHTML="<input id='large' name='large' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult large</label>";
		sr4.innerHTML="<input id='xlarge' name='xlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XL</label>";
    sr4b.innerHTML="<input id='yxlarge' name='yxlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth XL</label>";
		sr5.innerHTML="<input id='xxlarge' name='xxlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XXL</label>";
		sr6.innerHTML="<input id='xxxlarge' name='xxxlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult Goalie</label>"; 	  
	}
	else if(product=="o")
	{
	  c1r0[0].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFFFFF','white','');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[1].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('DACEA6','vegas gold','');getprice();\"><img style='background-color:#DACEA6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[2].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('636466','silver','');getprice();\"><img style='background-color:#949698;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[3].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('82D2E7','light blue','');getprice();\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c1r0[4].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('0054A6','royal blue','');getprice();\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c1r0[5].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('160D5B','navy blue','');getprice();\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[6].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('28903A','kelly green','');getprice();\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c1r0[7].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('005C2F','forest green','');getprice();\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c2r0[0].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFC20E','gold','');getprice();\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c2r0[1].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('F26522','orange','');getprice();\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c2r0[2].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('ED1C24','red','');getprice();\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c2r0[3].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('af1b46','cardinal red','');getprice();\"><img style='background-color:#af1b46;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c2r0[4].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('6f1a37','maroon','');getprice();\"><img style='background-color:#6f1a37;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c2r0[5].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('662D91','purple','');getprice();\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c2r0[6].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('392325','dark brown','');getprice();\"><img style='background-color:#392325;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c2r0[7].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('000000','black','');getprice();\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
	  sr1.innerHTML="<input id='ysmall' name='ysmall' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth small</label>";
		sr1a.innerHTML="<input id='small' name='small' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult small</label>";
		sr2.innerHTML="<input id='ymed' name='ymed' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth medium</label>";
		sr2a.innerHTML="<input id='med' name='med' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult medium</label>";
		sr3.innerHTML="<input id='ylarge' name='ylarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth large</label>";
		sr3a.innerHTML="<input id='large' name='large' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult large</label>";
		sr4.innerHTML="<input id='xlarge' name='xlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XL</label>";
    sr4b.innerHTML="";
		sr5.innerHTML="<input id='xxlarge' name='xxlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XXL</label>";
		sr6.innerHTML="<input id='xxxlarge' name='xxxlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XXXL</label>"; 	  
	}
	else if(product=="m")
	{
	  c1r0[0].innerHTML="";
		c1r0[1].innerHTML="";
		c1r0[2].innerHTML="";//<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFFFFF','white','');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /><br />whites</label>";
		c1r0[3].innerHTML="";//<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('BCBEC0','light','');getprice();\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /><br />lights</label>";
    c1r0[4].innerHTML="";//<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('000000','dark','');getprice();\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /><br />darks</label>";
    c1r0[5].innerHTML="";
		c1r0[6].innerHTML="";
		c1r0[7].innerHTML="";
		c2r0[0].innerHTML="";
    c2r0[1].innerHTML="";
    c2r0[2].innerHTML="";
		c2r0[3].innerHTML="";
	  c2r0[4].innerHTML="";
		c2r0[5].innerHTML="";
		c2r0[6].innerHTML="";
		c2r0[7].innerHTML="";
		sr1.innerHTML="<input id='ysmall' name='ysmall' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth small</label>";
		sr1a.innerHTML="<input id='small' name='small' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult small</label>";
		sr2.innerHTML="<input id='ymed' name='ymed' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth medium</label>";
		sr2a.innerHTML="<input id='med' name='med' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult medium</label>";
		sr3.innerHTML="<input id='ylarge' name='ylarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth large</label>";
		sr3a.innerHTML="<input id='large' name='large' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult large</label>";
		sr4.innerHTML="<input id='xlarge' name='xlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XL</label>";
		sr4b.innerHTML="";
		sr5.innerHTML="<input id='xxlarge' name='xxlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XXL</label>";
		sr6.innerHTML="<input id='xxxlarge' name='xxxlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XXXL</label>"; 	  
	}
	else if(product=="j")
	{
	  c1r0[0].innerHTML="";
		c1r0[1].innerHTML="<div style='position:relative;left:-47px;'><label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('DACEA6','vegas gold','w');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxv.gif' width='21px' height='20px' alt='' /></label></div>";
		c1r0[2].innerHTML="<div style='position:relative;left:-47px;'><label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('82D2E7','col. blue','w');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxl.gif' width='21px' height='20px' alt='' /></label></div>";
		c1r0[3].innerHTML="<div style='position:relative;left:-47px;'><label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('0054A6','royal blue','w');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxb.gif' width='21px' height='20px' alt='' /></label></div>";
		c1r0[4].innerHTML="<div style='position:relative;left:-47px;'><label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('160D5B','navy blue','w');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxn.gif' width='21px' height='20px' alt='' /></label></div>";
		c1r0[5].innerHTML="<div style='position:relative;left:-47px;'><label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('28903A','kelly','w');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxy.gif' width='21px' height='20px' alt='' /></label></div>";
		c1r0[6].innerHTML="<div style='position:relative;left:-47px;'><label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('005C2F','dark green','w');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxf.gif' width='21px' height='20px' alt='' /></label></div>";
    c1r0[7].innerHTML="<div style='position:relative;left:-47px;width:175px;height:20px;text-align:left;'><input id='whiteside' name='whiteside' onclick='if(document.getElementById(\"inout\").value==\"in\")insideout(0);insideout(3);getprice();setcustomform();' type='checkbox' /><label style='font-weight:bold;width:155px;height:20px;'> print on white side only?</label></div>";
		c2r0[0].innerHTML="<div style='position:relative;left:-55px;top:-3px;'><label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFC20E','gold','w');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxg.gif' width='21px' height='20px' alt='' /></label></div>";
    c2r0[1].innerHTML="<div style='position:relative;left:-55px;top:-3px;'><label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('F26522','orange','w');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxo.gif' width='21px' height='20px' alt='' /></label></div>";
		c2r0[2].innerHTML="<div style='position:relative;left:-55px;top:-3px;'><label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('ED1C24','red','w');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxr.gif' width='21px' height='20px' alt='' /></label></div>";
    c2r0[3].innerHTML="<div style='position:relative;left:-55px;top:-3px;'><label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('AF1B46','cardinal red','w');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxc.gif' width='21px' height='20px' alt='' /></label></div>";
		c2r0[4].innerHTML="<div style='position:relative;left:-55px;top:-3px;'><label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('6F1A37','maroon','w');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxm.gif' width='21px' height='20px' alt='' /></label></div>";
    c2r0[5].innerHTML="<div style='position:relative;left:-55px;top:-3px;'><label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('662D91','purple','w');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxu.gif' width='21px' height='20px' alt='' /></label></div>";
		c2r0[6].innerHTML="<div style='position:relative;left:-55px;top:-3px;'><label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('000000','black','w');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorboxk.gif' width='21px' height='20px' alt='' /></label></div>";
		c2r0[7].innerHTML="<div style='position:relative;left:-40px;width:100px;height:27px;text-align:left;'><input id='girlscb' name='girlscb' onclick='girlsjerseys();getprice();setcustomform();' type='checkbox' /><label style='font-weight: bold'> girls jerseys?</label></div>";
		sr1.innerHTML="";
		sr1a.innerHTML="<input id='small' name='small' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult small</label>";
		sr2.innerHTML="<input id='ymed' name='ymed' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth medium</label>";
		sr2a.innerHTML="<input id='med' name='med' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult medium</label>";
		sr3.innerHTML="<input id='ylarge' name='ylarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth large</label>";
		sr3a.innerHTML="<input id='large' name='large' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult large</label>";
		sr4.innerHTML="<input id='xlarge' name='xlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XL</label>";
		sr4b.innerHTML="";
		sr5.innerHTML="<input id='xxlarge' name='xxlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XXL</label>";
		sr6.innerHTML="";
	}
	else if(product=="d")
	{
	  c1r0[0].innerHTML="";
		c1r0[1].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFFFFF','white','');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[2].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('BCBEC0','ash grey','');getprice();\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[3].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('636466','light steel','');getprice();\"><img style='background-color:#949698;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c1r0[4].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('82D2E7','light blue','');getprice();\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c1r0[5].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('0054A6','royal blue','');getprice();\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c1r0[6].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('160D5B','navy blue','');getprice();\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c1r0[7].innerHTML="";
    c2r0[0].innerHTML="";
		c2r0[1].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('005C2F','forest green','');getprice();\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c2r0[2].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFC20E','gold','');getprice();\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c2r0[3].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('F26522','orange','');getprice();\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c2r0[4].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('ED1C24','red','');getprice();\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c2r0[5].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('891618','maroon','');getprice();\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c2r0[6].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('000000','black','');getprice();\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c2r0[7].innerHTML="";
		sr1.innerHTML="";
		sr1a.innerHTML="<input id='small' name='small' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult small</label>";
		sr2.innerHTML="";
		sr2a.innerHTML="<input id='med' name='med' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult medium</label>";
		sr3.innerHTML="";
		sr3a.innerHTML="<input id='large' name='large' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult large</label>";
		sr4.innerHTML="<input id='xlarge' name='xlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XL</label>";
		sr4b.innerHTML="";
		sr5.innerHTML="<input id='xxlarge' name='xxlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XXL</label>";
		sr6.innerHTML=""; 	  
	}
	else if(product=="s")
	{
	  c1r0[0].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFFFFF','white','');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[1].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('c9c9c9','light oxford','');getprice();\"><img style='background-color:#c9c9c9;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[2].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('BCBEC0','ash grey','');getprice();\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[3].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('0054A6','royal blue','');getprice();\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c1r0[4].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('160D5B','navy blue','');getprice();\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c1r0[5].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFC20E','gold','');getprice();\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[6].innerHTML="";
		c1r0[7].innerHTML="";
		c2r0[0].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('ED1C24','red','');getprice();\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c2r0[1].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('000000','black','');getprice();\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c2r0[2].innerHTML="";
		c2r0[3].innerHTML="";
	  c2r0[4].innerHTML="";
		c2r0[5].innerHTML="";
		c2r0[6].innerHTML="";
		c2r0[7].innerHTML="";
		sr1.innerHTML="<input id='ysmall' name='ysmall' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth small</label>";
		sr1a.innerHTML="<input id='small' name='small' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult small</label>";
		sr2.innerHTML="<input id='ymed' name='ymed' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth medium</label>";
		sr2a.innerHTML="<input id='med' name='med' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult medium</label>";
		sr3.innerHTML="<input id='ylarge' name='ylarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth large</label>";
		sr3a.innerHTML="<input id='large' name='large' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult large</label>";
		sr4.innerHTML="<input id='xlarge' name='xlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XL</label>";
		sr4b.innerHTML="";
		sr5.innerHTML="<input id='xxlarge' name='xxlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XXL</label>";
		sr6.innerHTML="<input id='xxxlarge' name='xxxlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XXXL</label>"; 	  
	}
	else if(product=="l" || product=="p")
	{
	  c1r0[0].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFFFFF','white','');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[1].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('BCBEC0','ash grey','');getprice();\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[2].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('636466','light steel','');getprice();\"><img style='background-color:#949698;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[3].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('0054A6','royal blue','');getprice();\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c1r0[4].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('160D5B','navy blue','');getprice();\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c1r0[5].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('000000','black','');getprice();\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[6].innerHTML="";
    c1r0[7].innerHTML="";
		c2r0[0].innerHTML="";
		c2r0[1].innerHTML="";
		c2r0[2].innerHTML="";
		c2r0[3].innerHTML="";
	  c2r0[4].innerHTML="";
		c2r0[5].innerHTML="";
		c2r0[6].innerHTML="";
		c2r0[7].innerHTML="";
		sr1.innerHTML="<input id='ysmall' name='ysmall' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth small</label>";
		sr1a.innerHTML="<input id='small' name='small' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult small</label>";
		sr2.innerHTML="<input id='ymed' name='ymed' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth medium</label>";
		sr2a.innerHTML="<input id='med' name='med' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult medium</label>";
		sr3.innerHTML="<input id='ylarge' name='ylarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth large</label>";
		sr3a.innerHTML="<input id='large' name='large' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult large</label>";
		sr4.innerHTML="<input id='xlarge' name='xlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XL</label>";
		sr4b.innerHTML="";
		sr5.innerHTML="<input id='xxlarge' name='xxlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XXL</label>";
		if(product!="l")
		  sr6.innerHTML="<input id='xxxlarge' name='xxxlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XXXL</label>"; 	  
	  else
		  sr6.innerHTML="";
	}
	else if(product=="t" || product=="h")
	{
	  c1r0[0].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFFFFF','white','');getprice();\"><img style='background-color:#FFFFFF;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[1].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('BCBEC0','ash grey','');getprice();\"><img style='background-color:#BCBEC0;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[2].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('636466','light steel','');getprice();\"><img style='background-color:#949698;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[3].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('82D2E7','light blue','');getprice();\"><img style='background-color:#82D2E7;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c1r0[4].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('0054A6','royal blue','');getprice();\"><img style='background-color:#0054A6;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c1r0[5].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('160D5B','navy blue','');getprice();\"><img style='background-color:#160D5B;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c1r0[6].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('28903A','kelly green','');getprice();\"><img style='background-color:#28903A;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c1r0[7].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('005C2F','forest green','');getprice();\"><img style='background-color:#005C2F;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c2r0[0].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFF200','yellow','');getprice();\"><img style='background-color:#FFF200;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c2r0[1].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('FFC20E','gold','');getprice();\"><img style='background-color:#FFC20E;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c2r0[2].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('F26522','orange','');getprice();\"><img style='background-color:#F26522;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c2r0[3].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('ED1C24','red','');getprice();\"><img style='background-color:#ED1C24;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c2r0[4].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('891618','maroon','');getprice();\"><img style='background-color:#891618;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
    c2r0[5].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('662D91','purple','');getprice();\"><img style='background-color:#662D91;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c2r0[6].innerHTML="<label style='cursor:pointer;width:21px;height:20px;' onclick=\"background('000000','black','');getprice();\"><img style='background-color:#000000;' src='images/order/colorbox.gif' width='21px' height='20px' alt='' /></label>";
		c2r0[7].innerHTML="";
		sr1.innerHTML="<input id='ysmall' name='ysmall' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth small</label>";
		sr1a.innerHTML="<input id='small' name='small' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult small</label>";
		sr2.innerHTML="<input id='ymed' name='ymed' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth medium</label>";
		sr2a.innerHTML="<input id='med' name='med' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult medium</label>";
		sr3.innerHTML="<input id='ylarge' name='ylarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> youth large</label>";
		sr3a.innerHTML="<input id='large' name='large' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult large</label>";
		sr4.innerHTML="<input id='xlarge' name='xlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XL</label>";
		sr4b.innerHTML="";
		sr5.innerHTML="<input id='xxlarge' name='xxlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XXL</label>";
		sr6.innerHTML="<input id='xxxlarge' name='xxxlarge' onchange='textboxes();getprice();setcustomform();' type='text' style='width: 30px; font-size:9px;' value='0' /><label style='font-weight: bold'> adult XXXL</label>";
	}
	/*end refresh color and size input*/
	document.getElementById("screen").style.backgroundColor = "#"+color;
	document.getElementById("color").value = color;
	document.getElementById("color_name").value = color_name;
	document.getElementById("color2").value = color;
	document.getElementById("color_name2").value = color_name;
	var x=document.getElementById("flip_table").rows[0].cells;
	if(product!="j")
	  x[0].innerHTML=side;
	refreshinkcolors(color_name);
	inkcolorstatus();
}

function girlsjerseys(){
  var product_name=document.getElementById("style_name").value;
	if(product_name=='NRV100'){
	  var girls=document.form1.girlscb.checked;
    var product_desc;
	  if(girls==true){
 	    product_desc='girls reversible micromesh tank';
	    document.form2.girlscb2.value="true";
	  }else{
	    product_desc='reversible micromesh tank';
		  document.form2.girlscb2.value="false";
	  }
    var y=document.getElementById("style_table").rows[3].cells;
	  y[0].innerHTML=product_desc;
	}else{
	  document.form2.girlscb2.value="false";
	}
}

function changeside()
{
  var side = document.getElementById("flipit").value;
	var style_letter=document.getElementById("style_letter").value;
	var browser = navigator.appName;
	var filename=document.getElementById("filename").value;
	for (var i=0;i<document.form1.prlc.length;i++)
  {
    if (document.form1.prlc[i].checked)
    {
      var prlc = document.form1.prlc[i].value;
    }
  }
	if(prlc!='ff'||style_letter=="o")
	{
	  for (var i=0;i<document.form1.front_rc.length;i++)
    {
      if (document.form1.front_rc[i].checked)
      {
        var rc = document.form1.front_rc[i].value;
      }
    }
	}
	else
	  var rc="false";		
	var category=document.form1.category.options[document.form1.category.selectedIndex].value;
	var ink_color=document.getElementById("ink_color").value;
	var product=document.getElementById("style_letter").value;
	/*start insideout detect*/
	var product=document.getElementById("style_letter").value;
	var inout;
	var revs;
	if(product=="j" || product=="m")
	{
	  var jj=1;
	  var colorbox;
		var color_name=document.getElementById("color_name").value;
	  inout=document.getElementById("inout").value;
		revs=document.form1.revs.checked;
		var whiteside=document.form1.whiteside.checked;
	  if(inout=="in"||(whiteside==true&&inout=="out"))
	  { 
	    if(inout=="in")
			  ink_color=document.getElementById("rink_color").value;
		  if(color_name=="red / white" || color_name=="red/white")
        colorbox='r';
	    if(color_name=="black / white" || color_name=="black/white" || color_name=="dark")
        colorbox='k';
	    if(color_name=="dark green / white" || color_name=="dark green/white")
        colorbox='f';
	    if(color_name=="navy blue / white" || color_name=="navy blue/white")
        colorbox='n';
	    if(color_name=="royal blue / white" || color_name=="royal blue/white")
        colorbox='b';
	    if(color_name=="vegas gold / white" || color_name=="vegas gold/white")
        colorbox='v';
			if(color_name=="col. blue / white" || color_name=="col. blue/white")
        colorbox='l';
			if(color_name=="kelly / white" || color_name=="kelly/white")
        colorbox='y';
			if(color_name=="gold / white" || color_name=="gold/white")
        colorbox='g';
			if(color_name=="orange / white" || color_name=="orange/white")
        colorbox='o';
			if(color_name=="cardinal red / white" || color_name=="cardinal red/white")
        colorbox='c';
			if(color_name=="maroon / white" || color_name=="maroon/white")
        colorbox='m';
			if(color_name=="purple / white" || color_name=="purple/white")
        colorbox='u';
			if(color_name=="light")
        colorbox='h';
			if(color_name=="white")
        colorbox='w';
	    if(product=="j")  
				product="j"+colorbox;
			else if(product=="m")
				product="mh";
	  }
	}	
	else
	  var jj=0;
	/*end insideout detect*/
	var num=parseInt(document.getElementById("print_num").value);
	var result=document.form1.decide[0].checked;
	var p=1;
	for (var i=0;i<document.form1.combo.length;i++)
  {
    if (document.form1.combo[i].checked)
    {
      var combo = document.form1.combo[i].value;
    }
  }
	if(prlc=="ff"&&product!="o")
    var lc="";
  else if(prlc=="lc"||product=="o")
    var lc="lc";
		
	if (side=='front')
	{
	  side='back';
	  if(combo=="names")
	    p=0;
	  if(combo=="nums")
	    p=1;
		if(combo=="both")
	    p=1;	
		if(p==1)
		{
		  var checksix=document.form1.nn_size[0].checked;
	    if(checksix==true)
	    {
	      var num_size="sixinch";
	    }
	    else
	    {
		    var num_size="eightinch";
	    }
		}
		if(product=="j")
		{
		  document.form1.combo[1].checked=true;
			document.form2.combo2.value="nums";
		  combo="nums";
		}
		else
		{
		  if(combo=="names")
		  {  document.form1.combo[0].checked=true;
			  document.form2.combo2.value="names";}
			else if(combo=="nums")
		  {  document.form1.combo[1].checked=true;
			  document.form2.combo2.value="nums";}
			else if(combo=="both")
		  {  document.form1.combo[2].checked=true;
			  document.form2.combo2.value="both";}
		}
		if(p==1)
		{
		  if(num_size=="sixinch")
		  {  document.form1.nn_size[0].checked=true;
			  document.form2.nn_size2.value="sixinch";}
		  else if(num_size=="eightinch")
		  {  document.form1.nn_size[1].checked=true;
			  document.form2.nn_size2.value="eightinch";}
		}
	if((jj==1 && ((inout=="in" && revs==true) || inout=="out")) || jj==0)
	{
		if(browser=="Microsoft Internet Explorer")
	  {
		  document.rc_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
	    document.rc_print.src="images/order/blank.gif";
		  document.custom_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
	    document.custom_print.src="images/order/blank.gif";
		  document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
			document.display_print.src="images/order/blank.gif";
		  if(result==true)
	    {		
				if(combo=="nums")
				{
				  document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
					document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+num_size+"_"+ink_color+"_jerseys.png');";
				}
				if(combo=="names")
				{
				  document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/name_"+ink_color+"_jerseys.png');";
				  document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
			  }
				if(combo=="both")
		    {
				  document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/name_"+ink_color+"_jerseys.png');";
				  document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+num_size+"_"+ink_color+"_jerseys.png');";
		    }
			}
		}
		else
		{
		  document.rc_print.style.visibility="hidden";
		  document.custom_print.style.visibility="hidden";
			document.display_print.style.visibility="hidden";
		  if(result==true) 
		  { 
			  if(combo=="nums")
		    {
				  document.name_on.src="images/order/blank.gif";
					document.number_on.src="prodimages/"+num_size+"_"+ink_color+"_jerseys.png";
		    }
				if(combo=="names")
		    {
				  document.name_on.src="prodimages/name_"+ink_color+"_jerseys.png";
				  document.number_on.src="images/order/blank.gif";
		    }
				if(combo=="both")
				{
				  document.name_on.src="prodimages/name_"+ink_color+"_jerseys.png";
		      document.number_on.src="prodimages/"+num_size+"_"+ink_color+"_jerseys.png";
		    }
			}
		}
	}
	}
	else if (side=='back')
	{
	  side='front';
	if((jj==1 && ((inout=="in" && revs==true) || inout=="out")) || jj==0)
	{
		if(browser=="Microsoft Internet Explorer")
	 	{
		  document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
			document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
 	    if(category=="select_category" && prlc!="np")
			{
			  if(filename=="")
				  document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/order/question_mark"+lc+".png')";
			  else
				  document.custom_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='customimages/"+filename+"',sizingMethod='scale')";
			}
			else
				document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+category+"_"+ink_color+"_0"+num+lc+"_jerseys.png')";
		  if(rc!="false")
			  document.rc_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/rc"+rc+"_"+ink_color+"_jerseys.png')";		  
			else
			{
		    document.rc_print.style.filter="";
			  document.rc_print.src="images/order/blank.gif";
	    }
		}
		else 
		{
		  document.name_on.src="images/order/blank.gif";
		  document.number_on.src="images/order/blank.gif";
			if(category=="select_category" && prlc!="np")
			{
			  if(filename=="")
				{
				  document.display_print.src="images/order/question_mark"+lc+".png";
		      document.display_print.style.visibility="visible";
				}
				else
				{
				  document.custom_print.src="customimages/"+filename;
		      document.custom_print.style.visibility="visible";
				}
			}
			else
			{
			  document.display_print.src="prodimages/"+category+"_"+ink_color+"_0"+num+lc+"_jerseys.png";
			  document.display_print.style.visibility="visible"; //setTimeout("document.display_print.style.visibility="visible"",1000)
			}
			if(rc!="false")
			{
			  document.rc_print.src="prodimages/rc"+rc+"_"+ink_color+"_jerseys.png";
			  document.rc_print.style.visibility="visible";
			}
			else
			  document.rc_print.src="images/order/blank.gif";
		}
	}
	}
	document.getElementById("flipit").value=side;
	var x=document.getElementById("flip_table").rows[0].cells;
	if(jj==1)
	{
	  if(inout=="out")
	    x[0].innerHTML=side;
	  else if(inout=="in")
	    x[0].innerHTML="reverse "+side;
	}
	else
	  x[0].innerHTML=side;
	if(browser=="Microsoft Internet Explorer")
	{
	  document.getElementById("main_img").src = "images/order/blank.gif";
	  document.main_img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/order/"+product+side+".png')";
	}
	else
	{  document.getElementById("main_img").src = "images/order/"+product+side+".png";}
}

function insideout(type)
{
	var browser=navigator.appName;
  var category=document.form1.category.options[document.form1.category.selectedIndex].value;
	var color=document.getElementById("color").value;
	var colorbox="";
	var color_name=document.getElementById("color_name").value;
	var filename=document.getElementById("filename").value;
	var ink_color=document.getElementById("ink_color").value;
	var inout=document.getElementById("inout").value;
	if(type==1)
	  inout="in";
	if(type==2)
	  inout="out";
	if(type==3){
	  var whiteside=document.form1.whiteside.checked;
		if(whiteside==false)
		  inout="in";
	}
	var num=parseInt(document.getElementById("print_num").value);
	var p=1;
	var product=document.getElementById("style_letter").value;
	var result=document.form1.decide[0].checked;
	var revs=document.form1.revs.checked;
	var revs2=document.form2.revs2.value;
	if(document.form1.revs.checked)
	  document.form2.revs2.value="true";
	else
	  document.form2.revs2.value="false";
	var rink_color;
	var side=document.getElementById("flipit").value;
	var vis_revs=document.getElementById("order1_reverse").style.visibility;
	if(type==3&&vis_revs=="visible")
	  document.getElementById("order1_reverse").style.visibility="hidden";
	else
	  document.getElementById("order1_reverse").style.visibility="visible";
	for (var i=0;i<document.form1.combo.length;i++)
  {
    if (document.form1.combo[i].checked)
    {
      var combo = document.form1.combo[i].value;
    }
  }
	for (var i=0;i<document.form1.prlc.length;i++)
  {
    if (document.form1.prlc[i].checked)
    {
      var prlc = document.form1.prlc[i].value;
    }
  }
	if(prlc!='ff'||product=="o")
	{
	  for (var i=0;i<document.form1.front_rc.length;i++)
    {
      if (document.form1.front_rc[i].checked)
      {
        var rc = document.form1.front_rc[i].value;
      }
    }
	}
	else
	  var rc="false";		
	
	if(prlc=="ff"&&product!="o")
    var lc="";
  else if(prlc=="lc"||product=="o")
    var lc="lc";
	
	if(color_name=="red / white" || color_name=="red/white")
  {  colorbox='r';rink_color='scarletred'; }
	if(color_name=="black / white" || color_name=="black/white" || color_name=="dark")
  {  colorbox='k';if(color_name=="dark")rink_color='dark';else rink_color='black'; }
	if(color_name=="dark green / white" || color_name=="dark green/white")
  {  colorbox='f';rink_color='forestgreen'; }
	if(color_name=="navy blue / white" || color_name=="navy blue/white")
  {  colorbox='n';rink_color='navyblue'; }
	if(color_name=="royal blue / white" || color_name=="royal blue/white")
  {  colorbox='b';rink_color='royalblue'; }
	if(color_name=="vegas gold / white" || color_name=="vegas gold/white")
  {  colorbox='v';rink_color='black';}
	if(color_name=="col. blue / white" || color_name=="col. blue/white")
  {  colorbox='l';rink_color='aquablue';} 
	if(color_name=="kelly / white" || color_name=="kelly/white")
  {  colorbox='y';rink_color='kellygreen';}
	if(color_name=="gold / white" || color_name=="gold/white")
  {  colorbox='g';rink_color='peach';}
	if(color_name=="orange / white" || color_name=="orange/white")
  {  colorbox='o';rink_color='orange'; }
	if(color_name=="cardinal red / white" || color_name=="cardinal red/white")
  {  colorbox='c';rink_color='black'; }
	if(color_name=="maroon / white" || color_name=="maroon/white")
  {  colorbox='m';rink_color='maroon'; }
	if(color_name=="purple / white" || color_name=="purple/white")
  {  colorbox='u';rink_color='purple'; }
	if(color_name=="light")
  {  colorbox='h';rink_color='black'; }
	if(product=="m")
	{  colorbox='h';rink_color='black'; }
	if(color_name=="white")
  {  colorbox='w';rink_color='white'; }
	if(document.getElementById("rink_color").value!="")
	  rink_color=document.getElementById("rink_color").value;
		
	switch (inout)
  {
    case "out":
      if(type!=3)
	      inout="in";
			if(product=="j")
		    product="j"+colorbox;
			else if(product=="m")
			  product="mh";
		  document.getElementById("screen").style.backgroundColor = "#FFFFFF";
		  if(type!=3||(type==3&&revs2=="true"&&rink_color!=""))
	      ink_color=rink_color;
			if(type==3&&revs2=="true"&&rink_color!=""){
	      document.getElementById("ink_color").value=ink_color;
				document.getElementById("ink_color2").value=ink_color;
			}
      break;
    case "in":
      if(type!=3||whiteside==false)
	      inout="out";
			if(type==3&&revs2=="true"&&rink_color!="")
	      ink_color=rink_color;
			if(type==3&&revs2=="true"&&rink_color!=""){
	      document.getElementById("ink_color").value=ink_color;
				document.getElementById("ink_color2").value=ink_color;
			}
		  document.getElementById("screen").style.backgroundColor = "#"+color;
      break;
  }	
	document.getElementById("inout").value=inout;
	document.getElementById("rink_color").value=rink_color;
	document.getElementById("rink_color2").value=rink_color;
	if((inout=="in" && revs==true) || inout=="out")
  {		
	  if (side=='front')
	  {
	    if(browser=="Microsoft Internet Explorer")
	 	  {
		    document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
			  document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
 	      if(category=="select_category" && prlc!="np")
		  	{
			    if(filename=="")
				    document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/order/question_mark"+lc+".png')";
			    else
				    document.custom_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='customimages/"+filename+"',sizingMethod='scale')";
			  }
			  else
				  document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+category+"_"+ink_color+"_0"+num+lc+"_jerseys.png')";
		    if(rc!="false")
			    document.rc_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/rc"+rc+"_"+ink_color+"_jerseys.png')";		  
			  else
			  {
		      document.rc_print.style.filter="";
			    document.rc_print.src="images/order/blank.gif";
	      }
		  }
		  else 
		  {
		    document.name_on.src="images/order/blank.gif";
		    document.number_on.src="images/order/blank.gif";
			  if(category=="select_category" && prlc!="np")
			  {
			    if(filename=="")
				  {
				    document.display_print.src="images/order/question_mark"+lc+".png";
		        document.display_print.style.visibility="visible";
				  }
				  else
				  {
				    document.custom_print.src="customimages/"+filename;
		        document.custom_print.style.visibility="visible";
				  }
			  }
			  else
			  {
			    document.display_print.src="prodimages/"+category+"_"+ink_color+"_0"+num+lc+"_jerseys.png";
			    document.display_print.style.visibility="visible"; //setTimeout("document.display_print.style.visibility="visible"",1000)
			  }
			  if(rc!="false")
			  {
			    document.rc_print.src="prodimages/rc"+rc+"_"+ink_color+"_jerseys.png";
			    document.rc_print.style.visibility="visible";
			  }
			  else
			    document.rc_print.src="images/order/blank.gif";
		  }
	  }
	  else if (side=='back')
	  {
	    if(combo=="names")
	      p=0;
	    if(combo=="nums")
	      p=1;
		  if(combo=="both")
	      p=1;	
		  if(p==1)
		  {
		    var checksix=document.form1.nn_size[0].checked;
	      if(checksix==true)
	      {
	        var num_size="sixinch";
	      }
	      else
	      {
		      var num_size="eightinch";
	      }
		  }
		  if(product=="j")
		  {
		    document.form1.combo[1].checked=true;
			  document.form2.combo2.value="nums";
		    combo="nums";
		  }
		  else
		  {
		    if(combo=="names")
		    {  document.form1.combo[0].checked=true;
			    document.form2.combo2.value="names";}
			  else if(combo=="nums")
		    {  document.form1.combo[1].checked=true;
			    document.form2.combo2.value="nums";}
			  else if(combo=="both")
		    {  document.form1.combo[2].checked=true;
			    document.form2.combo2.value="both";}
		  }
		  if(p==1)
		  {
		    if(num_size=="sixinch")
		    {  document.form1.nn_size[0].checked=true;
			    document.form2.nn_size2.value="sixinch";}
		    else if(num_size=="eightinch")
		    {  document.form1.nn_size[1].checked=true;
			    document.form2.nn_size2.value="eightinch";}
		  }
		  if(browser=="Microsoft Internet Explorer")
	    {
		    document.rc_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
	      document.rc_print.src="images/order/blank.gif";
		    document.custom_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
	      document.custom_print.src="images/order/blank.gif";
		    document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
			  document.display_print.src="images/order/blank.gif";
		    if(result==true)
	      {		
				  if(combo=="nums")
				  {
				    document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
					  document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+num_size+"_"+ink_color+"_jerseys.png');";
				  }
				  if(combo=="names")
				  {
				    document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/name_"+ink_color+"_jerseys.png');";
				    document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
			    }
				  if(combo=="both")
		      {
				    document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/name_"+ink_color+"_jerseys.png');";
				    document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+num_size+"_"+ink_color+"_jerseys.png');";
		      }
			  }
		  }
		  else
		  {
		    document.rc_print.style.visibility="hidden";
		    document.custom_print.style.visibility="hidden";
			  document.display_print.style.visibility="hidden";
		    if(result==true) 
		    { 
			    if(combo=="nums")
		      {
				    document.name_on.src="images/order/blank.gif";
					  document.number_on.src="prodimages/"+num_size+"_"+ink_color+"_jerseys.png";
		      }
				  if(combo=="names")
		      {
				    document.name_on.src="prodimages/name_"+ink_color+"_jerseys.png";
				    document.number_on.src="images/order/blank.gif";
		      }
				  if(combo=="both")
				  {
				    document.name_on.src="prodimages/name_"+ink_color+"_jerseys.png";
		        document.number_on.src="prodimages/"+num_size+"_"+ink_color+"_jerseys.png";
		      }
			  }
		  }
	  }
  }
  else if(inout=="in" && revs==false)
  {
    if(browser=="Microsoft Internet Explorer")
	  {
	    document.rc_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
	    document.rc_print.src="images/order/blank.gif";
	 	  document.custom_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
	    document.custom_print.src="images/order/blank.gif";
		  document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
		  document.display_print.src="images/order/blank.gif";
      document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
	    document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
	  }
	  else
	  {
	    document.rc_print.style.visibility="hidden";
		  document.custom_print.style.visibility="hidden";
		  document.display_print.style.visibility="hidden";
	    document.name_on.src="images/order/blank.gif";
	    document.number_on.src="images/order/blank.gif";
	  }
  }	
	var x=document.getElementById("flip_table").rows[0].cells;
	if(type!=3){
	  if(inout=="out")
	    x[0].innerHTML=side;
	  else if(inout=="in")
	    x[0].innerHTML="reverse "+side;
	}
  if(browser=="Microsoft Internet Explorer")
	{
	  document.getElementById("main_img").src = "images/order/blank.gif";
	  document.main_img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/order/"+product+side+".png')";
	}
	else
	{  document.getElementById("main_img").src = "images/order/"+product+side+".png";}
	
	refreshinkcolors(color_name);
	inkcolorstatus();
}

  /*Graphics*/
function checkprlc()
{
  var category=document.form1.category.options[document.form1.category.selectedIndex].value;
	var color=document.getElementById("ink_color").value;
	var browser=navigator.appName;
	//var imgname=document.form2.filesent.value;
	var filename=document.getElementById('filename').value;
	var num=parseInt(document.getElementById("print_num").value);
	var prev_num=num;
	var next_num=num;
	var style_letter=document.getElementById("style_letter").value;
	for (var i=0;i<document.form1.prlc.length;i++)
  {
    if (document.form1.prlc[i].checked)
    {
      var prlc = document.form1.prlc[i].value;
    }
  }
	document.getElementById("pr2lc").value=prlc;
	var lc="";
	if(prlc=="ff"&&style_letter!="o")
    lc="";
  else if(prlc=="lc"||style_letter=="o")
    lc="lc";
	/*start reset insideout*/
	var inout=document.getElementById("inout").value;
	var ioletter=document.getElementById("style_letter").value;
	if(inout=="in" && (ioletter=="j" || ioletter=="m"))
	  insideout(1);
	/*end reset insideout*/
	/*Set Custom Image Location*/
	var wt=parseInt(document.getElementById('width').value);
	var wtlc=parseInt(document.getElementById('widthlc').value);
	var ht=parseInt(document.getElementById('height').value);
	var htlc=parseInt(document.getElementById('heightlc').value);
	if(prlc=="ff")
	{
	  if(style_letter=="j")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="bl" || style_letter=="bp" || style_letter=="bo" || style_letter=="bk" || style_letter=="bn")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="d")
		  document.getElementById('front_custom').style.top='180px';
		else if(style_letter=="o")
		  document.getElementById('front_custom').style.top='250px';
		else
		  document.getElementById('front_custom').style.top='140px';
		if(style_letter=="o")
		{
		  document.getElementById('front_custom').style.left='88px';
		  document.getElementById('front_custom').style.width=wtlc+'px';
		  document.getElementById('front_custom').style.height=htlc+'px';
		  document.getElementById('custom_print').width=wtlc;
		  document.getElementById('custom_print').height=htlc;
		}
		else
		{
		  document.getElementById('front_custom').style.left='109px';
		  document.getElementById('front_custom').style.width=wt+'px';
		  document.getElementById('front_custom').style.height=ht+'px';
		  document.getElementById('custom_print').width=wt;
		  document.getElementById('custom_print').height=ht;
		}
	}
	else if(prlc=="lc")
	{
	  if(style_letter=="j")
		  document.getElementById('front_custom').style.top='170px';
		else if(style_letter=="bl" || style_letter=="bp" || style_letter=="bo" || style_letter=="bk" || style_letter=="bn")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="d")
		  document.getElementById('front_custom').style.top='185px';
		else if(style_letter=="o")
		  document.getElementById('front_custom').style.top='250px';
		else
		  document.getElementById('front_custom').style.top='150px';
		if(style_letter=="o")
		  document.getElementById('front_custom').style.left='223px';
		else
		  document.getElementById('front_custom').style.left='203px';
		document.getElementById('front_custom').style.width=wtlc+'px';
		document.getElementById('front_custom').style.height=htlc+'px';
		document.getElementById('custom_print').width=wtlc;
		document.getElementById('custom_print').height=htlc;
	}
	/*End Set Custom Image Location*/
	/*Shorts Print Location Changes*/
	if(style_letter=="o"){
	  if(prlc=="ff"){
		  document.getElementById('front_print').style.top='240px';
			document.getElementById('front_print').style.left='-9px';
	    document.getElementById('right_chest').style.top='243px';
		  document.getElementById('right_chest').style.left='213px';
	    document.form1.front_sh[1].checked=true;
		  document.getElementById("sh2").value="left";
		}else if(prlc=="lc"){
		  document.getElementById('front_print').style.top='240px';
		  document.getElementById('front_print').style.left='137px';
	    document.getElementById('right_chest').style.top='243px';
		  document.getElementById('right_chest').style.left='79px';
	    document.form1.front_sh[0].checked=true;
		  document.getElementById("sh2").value="right";
		}else{
		  document.getElementById('front_print').style.top='240px';
			document.getElementById('front_print').style.left='137px';
	    document.getElementById('right_chest').style.top='243px';
			for (var i=0;i<document.form1.front_rc.length;i++){
        if (document.form1.front_rc[i].checked){
          var rc = document.form1.front_rc[i].value;
        }
      }
			if(rc!="false"){
			  for (var i=0;i<document.form1.front_sh.length;i++){
          if (document.form1.front_sh[i].checked){
            var sh = document.form1.front_sh[i].value;
          }
        }
			}
			else var sh="right";
			if(sh=="right")
		    document.getElementById('right_chest').style.left='79px';
			else if(sh=="left")
			  document.getElementById('right_chest').style.left='213px';
		}		  
	}else{
		document.getElementById('front_print').style.left='109px';
		document.getElementById('right_chest').style.left='109px';
	}
	/*End Shorts Print Location Changes*/
	/*change side to front*/
	var side=document.getElementById("flipit").value;
  var product=document.getElementById("style_letter").value;
	var x=document.getElementById("flip_table").rows[0].cells;
	if(side=="back")
	{
	  side="front";
		document.getElementById("flipit").value=side;
		x[0].innerHTML=side;
	  if(browser=="Microsoft Internet Explorer")
	  {
	    document.getElementById("main_img").src = "images/order/blank.gif";
	    document.main_img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/order/"+product+side+".png')";
	  }
	  else
	  {  document.getElementById("main_img").src = "images/order/"+product+side+".png";}		
    if(browser=="Microsoft Internet Explorer")
	  {
		  document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
			document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
 	  }
		else 
		{
		  document.name_on.src="images/order/blank.gif";
		  document.number_on.src="images/order/blank.gif";
		}
	}
	/*end change side to front*/
	/*Set Right Chest Image*/
	if(prlc!='ff'||style_letter=="o")
	{
	  for (var i=0;i<document.form1.front_rc.length;i++)
    {
      if (document.form1.front_rc[i].checked)
      {
        var rc = document.form1.front_rc[i].value;
      }
    }
	}
	else
	  var rc="false";
	if(browser=="Microsoft Internet Explorer")
	{
	  if(rc!="false" && (prlc!="ff"||style_letter=="o"))
		{
		  document.rc_print.src="images/order/blank.gif";
 	    document.rc_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/rc"+rc+"_"+color+"_jerseys.png')";
		}
		else
		{
		  document.rc_print.src="images/order/blank.gif";
 	    document.rc_print.style.filter="";
		}
	}
	else
	{
		if(rc!="false" && (prlc!="ff"||style_letter=="o"))
		{
		  document.rc_print.src="prodimages/rc"+rc+"_"+color+"_jerseys.png";
			document.rc_print.style.visibility="visible";
		}
		else
		{
		  document.rc_print.src="images/order/blank.gif";
		}
	}
	/*End Set Right Chest Image*/
	/*names and numbers page changes*/
	if(prlc=="lc" || prlc=="np" || style_letter=="o")
	{
	  document.getElementById("order4_rc").style.visibility='visible';
	  document.getElementById("order4_bar1").style.top='60px';
	  document.getElementById("order4_bar2").style.visibility='hidden';
	  if(style_letter=="o")
	  {
		  document.getElementById("order4_back").style.visibility='visible';
	    document.getElementById("order4_shorts").style.visibility='visible';
	    document.getElementById("order4_radio1").style.visibility='hidden';
	    document.getElementById("order4_radio2").style.visibility='hidden';
	    document.getElementById("order4_radio3").style.visibility='hidden';
		  document.form1.combo[0].style.visibility="hidden";
		  document.getElementById("order4_combo1").style.visibility="hidden";
		  document.form1.combo[2].style.visibility="hidden";
		  document.getElementById("order4_combo3").style.visibility="hidden";
	    document.getElementById("order4_frame").style.top='95px';
	    document.getElementById("order4_frame").style.height='190px';
			var p1=document.getElementById("order3_ff");
	    p1.innerHTML="RIGHT LEG";
		  var p2=document.getElementById("order3_lc");
	    p2.innerHTML="LEFT LEG";
		  var p3=document.getElementById("order3_np");
	    p3.innerHTML="NO PRINT";
			document.form1.category.options[9].innerHTML="1\" number layouts";
			document.form1.category.options[10].innerHTML="2\" number layouts";
			var f1=document.getElementById("order4_front");
	    f1.innerHTML="Numbers-";
		  var b1=document.getElementById("order4_back");
	    b1.innerHTML="Location-";
			var r1=document.getElementById("rclabel1");
	    r1.innerHTML="3\" #'s";
		  var r2=document.getElementById("rclabel2");
	    r2.innerHTML="4\" #'s";
		  var r3=document.getElementById("rclabel3");
	    r3.innerHTML="No #'s";
		  if(prlc!='ff'||style_letter=="o"){
		    document.form1.front_rc[0].value="three";
		    document.form1.front_rc[1].value="four";
		  }
		}else{
		  document.getElementById("order4_back").style.visibility='visible';
	    document.getElementById("order4_shorts").style.visibility='hidden';
	    document.getElementById("order4_radio1").style.visibility='visible';
	    document.getElementById("order4_radio2").style.visibility='visible';
	    document.getElementById("order4_radio3").style.visibility='visible';
	    document.getElementById("order4_radio1").style.top='70px';
	    document.getElementById("order4_radio2").style.top='90px';
	    document.getElementById("order4_radio3").style.top='110px';
	    document.getElementById("order4_frame").style.top='135px';
	    document.getElementById("order4_frame").style.height='150px';
			var p1=document.getElementById("order3_ff");
	    p1.innerHTML="FULL FRONT";
		  var p2=document.getElementById("order3_lc");
	    p2.innerHTML="LEFT CHEST";
		  var p3=document.getElementById("order3_np");
	    p3.innerHTML="NO FRONT PRINT";
			document.form1.category.options[9].innerHTML="3\" number layouts";
			document.form1.category.options[10].innerHTML="4\" number layouts";
			var f1=document.getElementById("order4_front");
	    f1.innerHTML="Front-";
		  var b1=document.getElementById("order4_back");
	    b1.innerHTML="Back-";
		  var r1=document.getElementById("rclabel1");
	    r1.innerHTML="2\" Right Chest #'s";
		  var r2=document.getElementById("rclabel2");
	    r2.innerHTML="3\" Right Chest #'s";
		  var r3=document.getElementById("rclabel3");
	    r3.innerHTML="No Front #'s";
		  if(prlc!='ff'||style_letter=="o"){
		    document.form1.front_rc[0].value="two";
		    document.form1.front_rc[1].value="three";
		  }
		}
	}
	else
	{
	  document.getElementById("order4_rc").style.visibility='hidden';
	  document.getElementById("order4_back").style.visibility='hidden';
	  document.getElementById("order4_shorts").style.visibility='hidden';
	  document.getElementById("order4_radio1").style.visibility='visible';
	  document.getElementById("order4_radio2").style.visibility='visible';
	  document.getElementById("order4_radio3").style.visibility='visible';
		var p1=document.getElementById("order3_ff");
	  p1.innerHTML="FULL FRONT";
		var p2=document.getElementById("order3_lc");
	  p2.innerHTML="LEFT CHEST";
		var p3=document.getElementById("order3_np");
	  p3.innerHTML="NO FRONT PRINT";
		document.form1.category.options[9].innerHTML="3\" number layouts";
		document.form1.category.options[10].innerHTML="4\" number layouts";
		var f1=document.getElementById("order4_front");
	  f1.innerHTML="Front-";
		var b1=document.getElementById("order4_back");
	  b1.innerHTML="Back-";
		var r1=document.getElementById("rclabel1");
	  r1.innerHTML="2\" Right Chest #'s";
		var r2=document.getElementById("rclabel2");
	  r2.innerHTML="3\" Right Chest #'s";
		var r3=document.getElementById("rclabel3");
	  r3.innerHTML="No Front #'s";
		if(prlc!='ff'||style_letter=="o"){
		  document.form1.front_rc[0].value="two";
		  document.form1.front_rc[1].value="three";
		}
	  if(style_letter=="j" || style_letter=="m")
		{
		  document.getElementById("order4_radio1").style.top='35px';
	    document.getElementById("order4_radio2").style.top='55px';
		}
		else
		{
		  document.getElementById("order4_radio1").style.top='25px';
	    document.getElementById("order4_radio2").style.top='50px';
		}
	  document.getElementById("order4_bar1").style.top='75px';
	  document.getElementById("order4_radio3").style.top='80px';
	  document.getElementById("order4_bar2").style.visibility='visible';
	  document.getElementById("order4_frame").style.top='115px';
		document.getElementById("order4_frame").style.height='170px';
	}
	if(prlc!='ff'||style_letter=="o")
	{
	  for (var i=0;i<document.form1.front_rc.length;i++)
    {
      if (document.form1.front_rc[i].checked)
      {
        var rc = document.form1.front_rc[i].value;
      }
    }
	}
	else
	  var rc="false";
	document.getElementById("rc2").value=rc;
	/*end names and numbers page changes*/
	if(category!="select_category" && prlc!="np")
	{
	  if(browser=="Microsoft Internet Explorer")
	  {
 	    document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+category+"_"+color+"_0"+num+lc+"_jerseys.png')";
	  }
	  else
	  {
	    document.display_print.src="prodimages/"+category+"_"+color+"_0"+num+lc+"_jerseys.png";
      document.display_print.style.visibility="visible";
		}  
	}
	else
	{	  
		document.form1.category.selectedIndex=0;
		document.form1.category.options[0].selected=true;
		if(prlc=="np")
		{
		  document.getElementById("cat_pic_prev").src="images/order/question_cat.gif";
  	  document.getElementById("cat_pic").src="images/order/question_cat.gif";
      document.getElementById("cat_pic_next").src="images/order/question_cat.gif";
			document.getElementById("cline1").value="";
		  document.getElementById("cline2").value="";
			document.getElementById("order3_custom").style.visibility='hidden';
			document.getElementById("order3_custom2").style.visibility='hidden';
		  document.getElementById("order3_note").style.visibility='hidden';
		  document.getElementById("order3_or").style.top='158px';
		  document.getElementById("order3_upload").style.top='167px';
		  document.getElementById("up").style.top='178px';
		  document.getElementById("order3_bar2").style.top='205px';
		  document.getElementById("order3_ink").style.top='225px';
		  document.getElementById("order3_ink2").style.top='249px';
      /*refresh file input
		  var bDiv=document.getElementById("order3_upload");
	    nextB=document.createElement("input"); 
      nextB.setAttribute("type", "file"); 
      nextB.setAttribute("id", "filesent"); 
      nextB.setAttribute("name", "filesent");
		  if(browser=="Microsoft Internet Explorer")
	    {
 	      nextB["onchange"]=new Function("document.getElementById('page2').value=1;showLocalImage();getprice();setcustomform();");
	      nextB.style.setAttribute("width", "170px");
		    nextB.style.setAttribute("fontSize", "9px");
		    nextB.style.setAttribute("marginTop", "6px"); 
      }
	    else
	    {
	      nextB.setAttribute("onchange", "document.getElementById('page2').value=1;showLocalImage();getprice();setcustomform();");
	      nextB.setAttribute("style", "width:170px;font-size:9px;margin-top:6px;");
      } 
	    nextB.setAttribute("size", "1");
	    nextB.setAttribute("width", "170px");  
      nextB.setAttribute("value", ""); 
	    bDiv.replaceChild(nextB,bDiv.childNodes[1]);
		  end refresh file input*/
			var browser=navigator.appName
		  if(browser=="Microsoft Internet Explorer")
	    {
		    document.display_print.style.filter="";
				document.display_print.src="images/order/blank.gif";
				document.custom_print.style.filter="";
				document.custom_print.src="images/order/blank.gif";
		  }
		  else 
			{
			  document.display_print.src="images/order/blank.gif";
				document.custom_print.src="images/order/blank.gif";
			}
		}
		else if(filename=="")
		{
		  document.cat_pic_prev.src="images/order/question_small.gif";
	    document.cat_pic.src="images/order/question_small.gif";
      document.cat_pic_next.src="images/order/question_small.gif";
		  if(side=="front")
			{
			  if(browser=="Microsoft Internet Explorer")
		    {
		      document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/order/question_mark"+lc+".png')";
	        document.display_print.src="images/order/blank.gif";
		    }
		    else
		    {
		      document.display_print.style.visibility="visible";
					document.display_print.src="images/order/question_mark"+lc+".png";
		    }
			}
		}
		else
		{
		  document.cat_pic_prev.src="images/order/question_small.gif";
	    document.cat_pic.src="images/order/question_small.gif";
      document.cat_pic_next.src="images/order/question_small.gif";
			if(side=="front")
			{
			  if(browser=="Microsoft Internet Explorer")
		    {
				  document.display_print.style.filter="";
				  document.display_print.src="images/order/blank.gif";
		      document.custom_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='customimages/"+filename+"',sizingMethod='scale')";
	        document.custom_print.src="images/order/blank.gif";
		    }
		    else
		    {
				  document.display_print.src="images/order/blank.gif";
		      document.custom_print.style.visibility="visible";
				  document.custom_print.src="customimages/"+filename;
		    }
			}
		}
	}
	inkcolorstatus();
}

function switch_pic(category)
{
	document.getElementById("cat_pic").src="images/order/"+category+"_small_01.png";
	
  var browser=navigator.appName;
	var filename=document.getElementById('filename').value;
	var style_letter=document.getElementById("style_letter").value;
	for (var i=0;i<document.form1.prlc.length;i++)
  {
    if (document.form1.prlc[i].checked)
    {
      var prlc = document.form1.prlc[i].value;
    }
  }
	if(prlc!='ff'||style_letter=="o")
	{
	  for (var i=0;i<document.form1.front_rc.length;i++)
    {
      if (document.form1.front_rc[i].checked)
      {
        var rc = document.form1.front_rc[i].value;
      }
    }
	}
	else
	  var rc="false";
	var color=document.getElementById("ink_color").value;
	var side=document.getElementById("flipit").value;
	var lc="";
	var cat_num=1;
	if(prlc=="ff"&&style_letter!="o")
	  lc="";
	else if(prlc=="lc"||style_letter=="o")
	  lc="lc";
	/*start reset insideout*/
	var inout=document.getElementById("inout").value;
	var ioletter=document.getElementById("style_letter").value;
	if(inout=="in" && (ioletter=="j" || ioletter=="m"))
	  insideout(1);
	/*end reset insideout*/
	/*Set Custom Image Location*/
	var wt=parseInt(document.getElementById('width').value);
	var wtlc=parseInt(document.getElementById('widthlc').value);
	var ht=parseInt(document.getElementById('height').value);
	var htlc=parseInt(document.getElementById('heightlc').value);
	if(prlc=="ff")
	{
	  if(style_letter=="j")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="bl" || style_letter=="bp" || style_letter=="bo" || style_letter=="bk" || style_letter=="bn")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="d")
		  document.getElementById('front_custom').style.top='180px';
		else if(style_letter=="o")
		  document.getElementById('front_custom').style.top='250px';
		else
		  document.getElementById('front_custom').style.top='140px';
		if(style_letter=="o")
		{
		  document.getElementById('front_custom').style.left='88px';
		  document.getElementById('front_custom').style.width=wtlc+'px';
		  document.getElementById('front_custom').style.height=htlc+'px';
		  document.getElementById('custom_print').width=wtlc;
		  document.getElementById('custom_print').height=htlc;
		}
		else
		{
		  document.getElementById('front_custom').style.left='109px';
		  document.getElementById('front_custom').style.width=wt+'px';
		  document.getElementById('front_custom').style.height=ht+'px';
		  document.getElementById('custom_print').width=wt;
		  document.getElementById('custom_print').height=ht;
		}
	}
	else if(prlc=="lc")
	{
	  if(style_letter=="j")
		  document.getElementById('front_custom').style.top='170px';
		else if(style_letter=="bl" || style_letter=="bp" || style_letter=="bo" || style_letter=="bk" || style_letter=="bn")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="d")
		  document.getElementById('front_custom').style.top='185px';
		else if(style_letter=="o")
		  document.getElementById('front_custom').style.top='250px';
		else
		  document.getElementById('front_custom').style.top='150px';
		if(style_letter=="o")
		  document.getElementById('front_custom').style.left='223px';
		else
		  document.getElementById('front_custom').style.left='203px';
		document.getElementById('front_custom').style.width=wtlc+'px';
		document.getElementById('front_custom').style.height=htlc+'px';
		document.getElementById('custom_print').width=wtlc;
		document.getElementById('custom_print').height=htlc;
	}
	/*End Set Custom Image Location*/
	/*Shorts Print Location Changes*/
	if(style_letter=="o"){
	  if(prlc=="ff"){
		  document.getElementById('front_print').style.top='240px';
			document.getElementById('front_print').style.left='-9px';
	    document.getElementById('right_chest').style.top='243px';
		  document.getElementById('right_chest').style.left='213px';
	    document.form1.front_sh[1].checked=true;
		  document.getElementById("sh2").value="left";
		}else if(prlc=="lc"){
		  document.getElementById('front_print').style.top='240px';
		  document.getElementById('front_print').style.left='137px';
	    document.getElementById('right_chest').style.top='243px';
		  document.getElementById('right_chest').style.left='79px';
	    document.form1.front_sh[0].checked=true;
		  document.getElementById("sh2").value="right";
		}else{
		  document.getElementById('front_print').style.top='240px';
			document.getElementById('front_print').style.left='137px';
	    document.getElementById('right_chest').style.top='243px';
			for (var i=0;i<document.form1.front_rc.length;i++){
        if (document.form1.front_rc[i].checked){
          var rc = document.form1.front_rc[i].value;
        }
      }
			if(rc!="false"){
			  for (var i=0;i<document.form1.front_sh.length;i++){
          if (document.form1.front_sh[i].checked){
            var sh = document.form1.front_sh[i].value;
          }
        }
			}
			else var sh="right";
			if(sh=="right")
		    document.getElementById('right_chest').style.left='79px';
			else if(sh=="left")
			  document.getElementById('right_chest').style.left='213px';
		}		  
	}else{
		document.getElementById('front_print').style.left='109px';
		document.getElementById('right_chest').style.left='109px';
	}
	/*End Shorts Print Location Changes*/
	/*change side to front*/	
	var side=document.getElementById("flipit").value;
  var product=document.getElementById("style_letter").value;
	var x=document.getElementById("flip_table").rows[0].cells;
	if(side=="back")
	{
	  side="front";
		document.getElementById("flipit").value=side;
		x[0].innerHTML=side;
	  if(browser=="Microsoft Internet Explorer")
	  {
	    document.getElementById("main_img").src = "images/order/blank.gif";
	    document.main_img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/order/"+product+side+".png')";
	  }
	  else
	  {  document.getElementById("main_img").src = "images/order/"+product+side+".png";}		
    if(browser=="Microsoft Internet Explorer")
	  {
		  document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
			document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
 	  }
		else 
		{
		  document.name_on.src="images/order/blank.gif";
		  document.number_on.src="images/order/blank.gif";
		}
	}
	/*end change side to front*/
	if(category!="select_category")
	{
	  document.getElementById("filename").value='';
		document.getElementById("order3_custom").style.visibility='visible';
		document.getElementById("order3_custom2").style.visibility='visible';
		document.getElementById("order3_note").style.visibility='visible';
		document.getElementById("order3_or").style.top='213px';
		document.getElementById("order3_upload").style.top='222px';
		document.getElementById("up").style.top='233px';
		document.getElementById("order3_bar2").style.top='250px';
		document.getElementById("order3_ink").style.top='268px';
		document.getElementById("order3_ink2").style.top='292px'; 
		if(prlc=="lc")
		{
		  document.getElementById("order4_rc").style.visibility='visible';
		  document.getElementById("order4_back").style.visibility='visible';
		  document.getElementById("order4_radio1").style.top='70px';
		  document.getElementById("order4_radio2").style.top='90px';
		  document.getElementById("order4_bar1").style.top='60px';
		  document.getElementById("order4_radio3").style.top='110px';
		  document.getElementById("order4_bar2").style.visibility='hidden';
		  document.getElementById("order4_frame").style.top='135px';
			document.getElementById("order4_frame").style.height='150px';
		}
		else
		{
		  document.getElementById("order4_rc").style.visibility='hidden';
		  document.getElementById("order4_back").style.visibility='hidden';
			if(style_letter=="j")
		  {
		    document.getElementById("order4_radio1").style.top='35px';
	      document.getElementById("order4_radio2").style.top='55px';
		  }
		  else
		  {
		    document.getElementById("order4_radio1").style.top='25px';
	      document.getElementById("order4_radio2").style.top='50px';
		  }
		  document.getElementById("order4_bar1").style.top='75px';
		  document.getElementById("order4_radio3").style.top='80px';
		  document.getElementById("order4_bar2").style.visibility='visible';
		  document.getElementById("order4_frame").style.top='115px';
			document.getElementById("order4_frame").style.height='170px';
		}
		if((category=="threenumber" || category=="fournumber") && product!="o")
		{
		  document.form1.prlc[0].checked=true;
			document.form2.pr2lc.value="ff";
			prlc="ff";
			lc=""; 
		  document.form1.prlc[1].style.visibility='hidden';
		  document.getElementById('order3_lc').style.visibility='hidden';
		}
		else
		{
		  document.form1.prlc[1].style.visibility='visible';		
		  document.getElementById('order3_lc').style.visibility='visible';
		}
		if(prlc=="np"&&style_letter!="o")
	  {
			prlc="ff";
		  lc="";
 		  document.form1.prlc[0].checked=true;
			document.form2.pr2lc.value="ff";			
		}
		else if(prlc=="np"&&style_letter=="o")
		{
		  prlc="lc";
		  lc="";
 		  document.form1.prlc[1].checked=true;
			document.form2.pr2lc.value="lc";
		}
	  if(category=="basketball")
	    {cat_num=5;
			 document.getElementById("order3_custom2").style.visibility='visible';
		   document.getElementById("cline2").value="BASKETBALL";}
	  else if(category=="baseball")
	    {cat_num=5;
			 document.getElementById("order3_custom2").style.visibility='visible';
		   document.getElementById("cline2").value="BASEBALL";}
	  else if(category=="soccer")
	    {cat_num=4;
			 document.getElementById("order3_custom2").style.visibility='visible';
		   document.getElementById("cline2").value="SOCCER";}
	  else if(category=="lacrosse")
	    {cat_num=2;
			 document.getElementById("order3_custom2").style.visibility='visible';
		   document.getElementById("cline2").value="LACROSSE";}
	  else if(category=="football")
	    {cat_num=1;
			 document.getElementById("order3_custom2").style.visibility='visible';
		   document.getElementById("cline2").value="FOOTBALL";}
	  else if(category=="hockey")
	    {cat_num=2;
			 document.getElementById("order3_custom2").style.visibility='visible';
		   document.getElementById("cline2").value="HOCKEY";}
	  else if(category=="volleyball")
	    {cat_num=1;
			 document.getElementById("order3_custom2").style.visibility='visible';
		   document.getElementById("cline2").value="VOLLEYBALL";}
	  else if(category=="softball")
	    {cat_num=3;
			 document.getElementById("order3_custom2").style.visibility='visible';
		   document.getElementById("cline2").value="SOFTBALL";}
		else if(category=="threenumber")
	    {cat_num=2;
			 document.getElementById("order3_custom2").style.visibility='hidden';}
		else if(category=="fournumber")
	    {cat_num=2;
			 document.getElementById("order3_custom2").style.visibility='hidden';}
		
		document.getElementById("cline1").value="YOUR TEAM";
	  document.getElementById("cat_num").value=cat_num;
		document.getElementById("print_num").value=1;
	  if(browser=="Microsoft Internet Explorer")
	  {
		  document.custom_print.style.filter="";
			document.custom_print.src="images/order/blank.gif";
	    document.display_print.src="images/order/blank.gif";
 	    document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+category+"_"+color+"_01"+lc+"_jerseys.png')";
      if(rc!="false" && (prlc!="ff"||product=="o"))
			{
			  document.rc_print.src="images/order/blank.gif";
 	      document.rc_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/rc"+rc+"_"+color+"_jerseys.png')";
			}
			else
			{
			  document.rc_print.src="images/order/blank.gif";
 	      document.rc_print.style.filter="";
			}
		}
		else
	  {
			document.custom_print.src="images/order/blank.gif";
	    document.display_print.src="prodimages/"+category+"_"+color+"_01"+lc+"_jerseys.png";
			document.display_print.style.visibility="visible";  //setTimeout("document.display_print.style.visibility="visible"",1000)
      if(rc!="false" && (prlc!="ff"||product=="o"))
			{
			  document.rc_print.src="prodimages/rc"+rc+"_"+color+"_jerseys.png";
				document.rc_print.style.visibility="visible";
			}
			else
			{
			  document.rc_print.src="images/order/blank.gif";
			}
		}
	  
	  if(cat_num!=1)
  	  {document.cat_pic_prev.src="images/order/"+category+"_small_0"+cat_num+".png";
  	   document.cat_pic_next.src="images/order/"+category+"_small_02.png";}
	  else
	    {document.cat_pic_prev.src="images/order/"+category+"_small_01.png";
		   document.cat_pic_next.src="images/order/"+category+"_small_01.png";}
  }
	else
	{
	  if(prlc!="np")
	  {
	    if(filename=="")
		  { 
		    if(browser=="Microsoft Internet Explorer")
		    {
		      document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/order/question_mark"+lc+".png')";
	        document.display_print.src="images/order/blank.gif";
					if(rc!="false" && (prlc!="ff"||product=="o"))
			    {
			      document.rc_print.src="images/order/blank.gif";
 	          document.rc_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/rc"+rc+"_"+color+"_jerseys.png')";
			    }
					else
					{
					  document.rc_print.style.filter="";
					  document.rc_print.src="images/order/blank.gif";
					}
		    }
		    else
		    {
		      document.display_print.src="images/order/question_mark"+lc+".png";
			    document.display_print.style.visibility="visible";
					if(rc!="false" && (prlc!="ff"||product=="o"))
			    {
			      document.rc_print.src="prodimages/rc"+rc+"_"+color+"_jerseys.png";
				    document.rc_print.style.visibility="visible";
			    }
					else
					  document.rc_print.src="";
		    }
		  }
		  else
		  {
		    if(browser=="Microsoft Internet Explorer")
		    {
				  document.rc_print.style.filter="";
					document.rc_print.src="images/order/blank.gif";
			    document.display_print.style.filter="";
				  document.display_print.src="images/order/blank.gif";
		      document.custom_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='customimages/"+filename+"',sizingMethod='scale')"
	        document.custom_print.src="images/order/blank.gif"
		    }
		    else
		    {
				  document.rc_print.src="";
		      document.display_print.src="images/order/blank.gif";
		      document.custom_print.src="customimages/"+filename;
			    document.custom_print.style.visibility="visible"
		    }
		  }
		  document.cat_pic_prev.src="images/order/question_small.gif"
		  document.cat_pic.src="images/order/question_small.gif"
      document.cat_pic_next.src="images/order/question_small.gif"
	  }
	  else
	  {
	    document.cat_pic_prev.src="images/order/question_cat.gif"
		  document.cat_pic.src="images/order/question_cat.gif"
      document.cat_pic_next.src="images/order/question_cat.gif"
	  }
		document.form1.prlc[1].style.visibility='visible';
		document.getElementById('order3_lc').style.visibility='visible';
		
		document.getElementById("cline1").value="";
		document.getElementById("cline2").value="";
		document.getElementById("order3_custom").style.visibility='hidden';
		document.getElementById("order3_custom2").style.visibility='hidden';
		document.getElementById("order3_note").style.visibility='hidden';
		document.getElementById("order3_or").style.top='158px';
		document.getElementById("order3_upload").style.top='167px';
		document.getElementById("up").style.top='178px';
		document.getElementById("order3_bar2").style.top='205px';
		document.getElementById("order3_ink").style.top='225px';
		document.getElementById("order3_ink2").style.top='249px';
		if(prlc!="ff")
		{
		  document.getElementById("order4_rc").style.visibility='visible';
		  document.getElementById("order4_back").style.visibility='visible';
		  document.getElementById("order4_radio1").style.top='70px';
		  document.getElementById("order4_radio2").style.top='90px';
		  document.getElementById("order4_bar1").style.top='60px';
		  document.getElementById("order4_radio3").style.top='110px';
		  document.getElementById("order4_bar2").style.visibility='hidden';
		  document.getElementById("order4_frame").style.top='135px';
		  document.getElementById("order4_frame").style.height='150px';
		}
	}
	/*refresh file input
	var bDiv=document.getElementById("order3_upload");
	nextB=document.createElement("input"); 
  nextB.setAttribute("type", "file"); 
  nextB.setAttribute("id", "filesent"); 
  nextB.setAttribute("name", "filesent");
	if(browser=="Microsoft Internet Explorer")
	{
 	  nextB["onchange"]=new Function("document.getElementById('page2').value=1;showLocalImage();getprice();setcustomform();");
	  nextB.style.setAttribute("width", "170px");
		nextB.style.setAttribute("fontSize", "9px");
		nextB.style.setAttribute("marginTop", "6px"); 
  }
	else
	{
	  nextB.setAttribute("onchange", "document.getElementById('page2').value=1;showLocalImage();getprice();setcustomform();");
	  nextB.setAttribute("style", "width:170px;font-size:9px;margin-top:6px;");
  } 
	nextB.setAttribute("size", "1");
	nextB.setAttribute("width", "170px");  
  nextB.setAttribute("value", ""); 
	bDiv.replaceChild(nextB,bDiv.childNodes[1]);
	end refresh file input*/
}

function decrease()
{
  var category=document.form1.category.options[document.form1.category.selectedIndex].value;
	for (var i=0;i<document.form1.prlc.length;i++)
  {
    if (document.form1.prlc[i].checked)
    {
      var prlc = document.form1.prlc[i].value;
    }
  }
	var lc="";
  var product=document.getElementById("style_letter").value;
	if(prlc=="ff"&&product!="o")
    lc="";
  else if(prlc=="lc"||product=="o")
    lc="lc";
	var num=parseInt(document.getElementById("print_num").value);
	var cat_num=parseInt(document.getElementById("cat_num").value);
	var color=document.getElementById("ink_color").value;
	var prev_num=1;
	var next_num=1;
	var browser=navigator.appName;
	/*start reset insideout*/
	var inout=document.getElementById("inout").value;
	var ioletter=document.getElementById("style_letter").value;
	if(inout=="in" && (ioletter=="j" || ioletter=="m"))
	  insideout(1);
	/*end reset insideout*/
	/*change side to front*/	
	var side=document.getElementById("flipit").value;
	var x=document.getElementById("flip_table").rows[0].cells;
	if(side=="back")
	{
	  side="front";
		document.getElementById("flipit").value=side;
		x[0].innerHTML=side;
	  if(browser=="Microsoft Internet Explorer")
	  {
	    document.getElementById("main_img").src = "images/order/blank.gif";
	    document.main_img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/order/"+product+side+".png')";
  	}
	  else
	  {  document.getElementById("main_img").src = "images/order/"+product+side+".png";}	
    if(browser=="Microsoft Internet Explorer")
	  {
		  document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
			document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
 	  }
		else 
		{
		  document.name_on.src="images/order/blank.gif";
		  document.number_on.src="images/order/blank.gif";
		}
	}
	/*end change side to front*/	
	if(category!="select_category" && prlc!="np")
	{ 
	  if(cat_num==1)
		{
		  next_num=cat_num;
			num=cat_num;
			prev_num=cat_num;
		}
		else
		{
		  if(num>2)
		  {
		    next_num=num;
			  num--;
			  prev_num=num-1;
		  }
		  else if(num==2)
		  {
		    next_num=num;
			  num--;
			  prev_num=cat_num;
	 	  }
		  else if(num==1)
		  {
		    next_num=num;
			  num=cat_num;
			  prev_num=cat_num-1;
		  }
		}
    document.getElementById("print_num").value=num;
	  
		if(category=="basketball" && (num==1 || num==5))
	    {document.getElementById("cline2").value="BASKETBALL";
			 document.getElementById("order3_custom2").style.visibility='visible';}
		else if(category=="basketball" && (num==2 || num==3))
	    {document.getElementById("cline2").value="HOOPS";
			 document.getElementById("order3_custom2").style.visibility='visible';}
		else if(category=="basketball" && num==4)
	    {document.getElementById("cline2").value="";
			 document.getElementById("order3_custom2").style.visibility='hidden';}
	  else if(category=="baseball" && num!=2)
	    {document.getElementById("cline2").value="BASEBALL";
			 document.getElementById("order3_custom2").style.visibility='visible';}
    else if(category=="baseball" && num==2)
	    {document.getElementById("cline2").value="";
			 document.getElementById("order3_custom2").style.visibility='hidden';}
	  else if(category=="soccer")
	    {document.getElementById("cline2").value="SOCCER";
			 document.getElementById("order3_custom2").style.visibility='visible';}
	  else if(category=="lacrosse")
	    {document.getElementById("cline2").value="LACROSSE";
			 document.getElementById("order3_custom2").style.visibility='visible';}
	  else if(category=="football")
	    {document.getElementById("cline2").value="FOOTBALL";
			 document.getElementById("order3_custom2").style.visibility='visible';}
	  else if(category=="hockey")
	    {document.getElementById("cline2").value="HOCKEY";
			 document.getElementById("order3_custom2").style.visibility='visible';}
	  else if(category=="volleyball")
	    {document.getElementById("cline2").value="VOLLEYBALL";
			 document.getElementById("order3_custom2").style.visibility='visible';}
		else if(category=="softball" && (num==2 || num==3))
	    {document.getElementById("cline2").value="";
			 document.getElementById("order3_custom2").style.visibility='hidden';}
		else if(category=="softball" && num==1)
	    {document.getElementById("cline2").value="SOFTBALL";
			 document.getElementById("order3_custom2").style.visibility='visible';}
		else if(category=="threenumber" && num==1)
	    {document.getElementById("cline2").value="";
			 document.getElementById("order3_custom2").style.visibility='hidden';}
		else if(category=="threenumber" && num==2)
	    {document.getElementById("cline2").value="YOUR SPORT";
			 document.getElementById("order3_custom2").style.visibility='visible';}
		else if(category=="fournumber" && num==1)
	    {document.getElementById("cline2").value="";
			 document.getElementById("order3_custom2").style.visibility='hidden';}
		else if(category=="fournumber" && num==2)
	    {document.getElementById("cline2").value="YOUR SPORT";
			 document.getElementById("order3_custom2").style.visibility='visible';}
		document.getElementById("cline1").value="YOUR TEAM";
		
		if(browser=="Microsoft Internet Explorer")
	  {
 	    document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+category+"_"+color+"_0"+num+lc+"_jerseys.png')";
    }
		else
	  {
	    document.display_print.src="prodimages/"+category+"_"+color+"_0"+num+lc+"_jerseys.png";
			document.display_print.style.visibility="visible";
    }
	  document.cat_pic_prev.src="images/order/"+category+"_small_0"+prev_num+".png";
	  document.cat_pic.src="images/order/"+category+"_small_0"+num+".png";
	  document.cat_pic_next.src="images/order/"+category+"_small_0"+next_num+".png";
		/*refresh file input
		var bDiv=document.getElementById("order3_upload");
	  nextB=document.createElement("input"); 
    nextB.setAttribute("type", "file"); 
    nextB.setAttribute("id", "filesent"); 
    nextB.setAttribute("name", "filesent");
		if(browser=="Microsoft Internet Explorer")
	  {
 	    nextB["onchange"]=new Function("document.getElementById('page2').value=1;showLocalImage();getprice();setcustomform();");
	    nextB.style.setAttribute("width", "170px");
		  nextB.style.setAttribute("fontSize", "9px");
		  nextB.style.setAttribute("marginTop", "6px"); 
    }
	  else
	  {
	    nextB.setAttribute("onchange", "document.getElementById('page2').value=1;showLocalImage();getprice();setcustomform();");
	    nextB.setAttribute("style", "width:170px;font-size:9px;margin-top:6px;");
    } 
	  nextB.setAttribute("size", "1");
	  nextB.setAttribute("width", "170px");  
    nextB.setAttribute("value", ""); 
	  bDiv.replaceChild(nextB,bDiv.childNodes[1]);
		end refresh file input*/
	}
}

function increase()
{
  var category=document.form1.category.options[document.form1.category.selectedIndex].value;
	for (var i=0;i<document.form1.prlc.length;i++)
  {
    if (document.form1.prlc[i].checked)
    {
      var prlc = document.form1.prlc[i].value;
    }
  }
	var lc="";
  var product=document.getElementById("style_letter").value;
	if(prlc=="ff"&&product!="o")
    lc="";
  else if(prlc=="lc"||product=="o")
    lc="lc";
	var num=parseInt(document.getElementById("print_num").value);
	var cat_num=parseInt(document.getElementById("cat_num").value);
	var color=document.getElementById("ink_color").value;
	var prev_num=1;
	var next_num=1;
	var browser=navigator.appName;
	/*start reset insideout*/
	var inout=document.getElementById("inout").value;
	var ioletter=document.getElementById("style_letter").value;
	if(inout=="in" && (ioletter=="j" || ioletter=="m"))
	  insideout(1);
	/*end reset insideout*/
	/*change side to front*/	
	var side=document.getElementById("flipit").value;	
	var x=document.getElementById("flip_table").rows[0].cells;
	if(side=="back")
	{
	  side="front";
		document.getElementById("flipit").value=side;
		x[0].innerHTML=side;
	  if(browser=="Microsoft Internet Explorer")
	  {
	    document.getElementById("main_img").src = "images/order/blank.gif";
	    document.main_img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/order/"+product+side+".png')";
	  }
	  else
	  {  document.getElementById("main_img").src = "images/order/"+product+side+".png";}
    if(browser=="Microsoft Internet Explorer")
	  {
		  document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
			document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
 	  }
		else 
		{
		  document.name_on.src="images/order/blank.gif";
		  document.number_on.src="images/order/blank.gif";
		}
	}
	/*end change side to front*/	
	if(category!="select_category" && prlc!="np")
	{
	  if(cat_num==1)
		{
		  next_num=cat_num;
			num=cat_num;
			prev_num=cat_num;
		}
		else
		{
		  switch (num)
      {
        case (cat_num-1):
          prev_num=num;
			    num=num+1;
				  next_num=1;
          break;
        case cat_num:
          prev_num=num;
				  num=1;
				  next_num=2; 
          break;
        default:
          prev_num=num;
				  next_num=num+2;
				  num=num+1;
      }
		}
    document.getElementById("print_num").value=num;
		
		if(category=="basketball" && (num==1 || num==5))
	    {document.getElementById("cline2").value="BASKETBALL";
			 document.getElementById("order3_custom2").style.visibility='visible';}
		else if(category=="basketball" && (num==2 || num==3))
	    {document.getElementById("cline2").value="HOOPS";
			 document.getElementById("order3_custom2").style.visibility='visible';}
		else if(category=="basketball" && num==4)
	    {document.getElementById("cline2").value="";
			 document.getElementById("order3_custom2").style.visibility='hidden';}
	  else if(category=="baseball" && num!=2)
	    {document.getElementById("cline2").value="BASEBALL";
			 document.getElementById("order3_custom2").style.visibility='visible';}
    else if(category=="baseball" && num==2)
	    {document.getElementById("cline2").value="";
			 document.getElementById("order3_custom2").style.visibility='hidden';}
	  else if(category=="soccer")
	    {document.getElementById("cline2").value="SOCCER";
			 document.getElementById("order3_custom2").style.visibility='visible';}
	  else if(category=="lacrosse")
	    {document.getElementById("cline2").value="LACROSSE";
			 document.getElementById("order3_custom2").style.visibility='visible';}
	  else if(category=="football")
	    {document.getElementById("cline2").value="FOOTBALL";
			 document.getElementById("order3_custom2").style.visibility='visible';}
	  else if(category=="hockey")
	    {document.getElementById("cline2").value="HOCKEY";
			 document.getElementById("order3_custom2").style.visibility='visible';}
	  else if(category=="volleyball")
	    {document.getElementById("cline2").value="VOLLEYBALL";
			 document.getElementById("order3_custom2").style.visibility='visible';}
		else if(category=="softball" && (num==2 || num==3))
	    {document.getElementById("cline2").value="";
			 document.getElementById("order3_custom2").style.visibility='hidden';}
		else if(category=="softball" && num==1)
	    {document.getElementById("cline2").value="SOFTBALL";
			 document.getElementById("order3_custom2").style.visibility='visible';}
		else if(category=="threenumber" && num==1)
	    {document.getElementById("cline2").value="";
			 document.getElementById("order3_custom2").style.visibility='hidden';}
		else if(category=="threenumber" && num==2)
	    {document.getElementById("cline2").value="YOUR SPORT";
			 document.getElementById("order3_custom2").style.visibility='visible';}
		else if(category=="fournumber" && num==1)
	    {document.getElementById("cline2").value="";
			 document.getElementById("order3_custom2").style.visibility='hidden';}
		else if(category=="fournumber" && num==2)
	    {document.getElementById("cline2").value="YOUR SPORT";
			 document.getElementById("order3_custom2").style.visibility='visible';}
		document.getElementById("cline1").value="YOUR TEAM";
		
	  if(browser=="Microsoft Internet Explorer")
	  {
 	    document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+category+"_"+color+"_0"+num+lc+"_jerseys.png')";
    }
	  else
	  {
	    document.display_print.src="prodimages/"+category+"_"+color+"_0"+num+lc+"_jerseys.png";
			document.display_print.style.visibility="visible";
    }
	  document.cat_pic_prev.src="images/order/"+category+"_small_0"+prev_num+".png";
	  document.cat_pic.src="images/order/"+category+"_small_0"+num+".png";
	  document.cat_pic_next.src="images/order/"+category+"_small_0"+next_num+".png";
		/*refresh file input
		var bDiv=document.getElementById("order3_upload");
	  nextB=document.createElement("input"); 
    nextB.setAttribute("type", "file"); 
    nextB.setAttribute("id", "filesent"); 
    nextB.setAttribute("name", "filesent");
		if(browser=="Microsoft Internet Explorer")
	  {
 	    nextB["onchange"]=new Function("document.getElementById('page2').value=1;showLocalImage();getprice();setcustomform();");
	    nextB.style.setAttribute("width", "170px");
		  nextB.style.setAttribute("fontSize", "9px");
		  nextB.style.setAttribute("marginTop", "6px"); 
    }
	  else
	  {
	    nextB.setAttribute("onchange", "document.getElementById('page2').value=1;showLocalImage();getprice();setcustomform();");
	    nextB.setAttribute("style", "width:170px;font-size:9px;margin-top:6px;");
    } 
	  nextB.setAttribute("size", "1");
	  nextB.setAttribute("width", "170px");  
    nextB.setAttribute("value", ""); 
	  bDiv.replaceChild(nextB,bDiv.childNodes[1]);
		end refresh file input*/
	}
}

function detect(ink_color)
{
  var browser=navigator.appName;
	var category=document.form1.category.options[document.form1.category.selectedIndex].value;
	var inout=document.getElementById("inout").value;
	var lc="";
	var num=parseInt(document.getElementById("print_num").value);
	var revs=document.form1.revs.checked;
	var side = document.getElementById("flipit").value;
	var style_letter=document.getElementById("style_letter").value;
	
	for (var i=0;i<document.form1.prlc.length;i++)
  {
    if (document.form1.prlc[i].checked)
    {
      var prlc = document.form1.prlc[i].value;
    }
  }
	if(prlc!='ff'||style_letter=="o")
	{
	  for (var i=0;i<document.form1.front_rc.length;i++)
    {
      if (document.form1.front_rc[i].checked)
      {
        var rc = document.form1.front_rc[i].value;
      }
    }
	}
	else
	  var rc="false";
	for (var i=0;i<document.form1.decide.length;i++)
  {
    if (document.form1.decide[i].checked)
    {
      var result = document.form1.decide[i].value;
    }
  }
	for (var i=0;i<document.form1.combo.length;i++)
  {
    if (document.form1.combo[i].checked)
    {
      var combo = document.form1.combo[i].value;
    }
  }
	for (var i=0;i<document.form1.nn_size.length;i++)
  {
    if (document.form1.nn_size[i].checked)
    {
      var num_size = document.form1.nn_size[i].value;
    }
  }
	
	if(prlc=="ff"&&style_letter!="o")
    lc="";
  else if(prlc=="lc"||style_letter=="o")
    lc="lc";
	if(browser=="Microsoft Internet Explorer")
	{
	  if(inout=="out" || (inout=="in" && revs==true))
		{
	    if(side=="front")
	    {
		    if(category!="select_category")
			    document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+category+"_"+ink_color+"_0"+num+lc+"_jerseys.png')";
	      if(rc!="false")
			    document.rc_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/rc"+rc+"_"+ink_color+"_jerseys.png')";
		  }
		}
		if(result=="true" && side=="back")
	  {		
			if(combo=="nums")
			{
			  document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
				document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+num_size+"_"+ink_color+"_jerseys.png');";
			}
			if(combo=="names")
			{
			  document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/name_"+ink_color+"_jerseys.png');";
			  document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
		  }
			if(combo=="both")
		  {
			  document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/name_"+ink_color+"_jerseys.png');";
			  document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+num_size+"_"+ink_color+"_jerseys.png');";
		  }
		}
		else
		{
		  document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
 	    document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
		}
	}
	else
	{
	  if(inout=="out" || (inout=="in" && revs==true))
		{
	    if(side=="front")
	    {
		    if(category!="select_category")
			    document.display_print.src="prodimages/"+category+"_"+ink_color+"_0"+num+lc+"_jerseys.png";
	      if(rc!="false")
			    document.rc_print.src="prodimages/rc"+rc+"_"+ink_color+"_jerseys.png";
		  }
		  else if(result=="true" && side=="back") 
		  { 
		    if(combo=="nums")
		    {
			    document.name_on.src="images/order/blank.gif";
				  document.number_on.src="prodimages/"+num_size+"_"+ink_color+"_jerseys.png";
		    }
			  if(combo=="names")
		    {
			    document.name_on.src="prodimages/name_"+ink_color+"_jerseys.png";
			    document.number_on.src="images/order/blank.gif";
		    }
			  if(combo=="both")
			  {
		      document.name_on.src="prodimages/name_"+ink_color+"_jerseys.png";
		      document.number_on.src="prodimages/"+num_size+"_"+ink_color+"_jerseys.png";
		    }
			}
		}
	}
	if(inout=="out")
	{
	  document.getElementById("ink_color").value=ink_color;
	  document.getElementById("ink_color2").value=ink_color;
		inkcolorstatus();
  }
	else if(inout=="in")
	{
	  document.getElementById("rink_color").value=ink_color;
	  document.getElementById("rink_color2").value=ink_color;
		inkcolorstatus();
	}
}

function showLocalImage()
{   
  var imgname="";//document.form2.filesent.value;
	var filename=document.getElementById('filename').value;
	var browser=navigator.appName;
	var lc="";
	var extension;
	var style_letter=document.getElementById("style_letter").value;
	for (var i=0;i<document.form1.prlc.length;i++)
  {
    if (document.form1.prlc[i].checked)
    {
      var prlc = document.form1.prlc[i].value;
    }
  }
	if(prlc=="ff"&&style_letter!="o")
    lc="";
  else if(prlc=="lc")
    lc="lc";
	else if((prlc=="np" || prlc=="") && filename!="" && style_letter!="o")
	{
	  prlc="ff";
	  document.form1.prlc[0].checked=true;
		document.form2.pr2lc.value="ff";
	}
	else if((prlc=="np" || prlc=="") && filename!="" && style_letter=="o")
	{
	  prlc="lc";
	  document.form1.prlc[1].checked=true;
		document.form2.pr2lc.value="lc";
		lc="lc";
	}
	if(style_letter=="o")
	  lc="lc";
	/*Set Custom Image Location*/
	var wt=parseInt(document.getElementById('width').value);
	var wtlc=parseInt(document.getElementById('widthlc').value);
	var ht=parseInt(document.getElementById('height').value);
	var htlc=parseInt(document.getElementById('heightlc').value);
	if(prlc=="ff")
	{
	  if(style_letter=="j")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="bl" || style_letter=="bp" || style_letter=="bo" || style_letter=="bk" || style_letter=="bn")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="d")
		  document.getElementById('front_custom').style.top='180px';
		else if(style_letter=="o")
		  document.getElementById('front_custom').style.top='250px';
		else
		  document.getElementById('front_custom').style.top='140px';
		if(style_letter=="o")
		{
		  document.getElementById('front_custom').style.left='88px';
		  document.getElementById('front_custom').style.width=wtlc+'px';
		  document.getElementById('front_custom').style.height=htlc+'px';
		  document.getElementById('custom_print').width=wtlc;
		  document.getElementById('custom_print').height=htlc;
		}
		else
		{
		  document.getElementById('front_custom').style.left='109px';
		  document.getElementById('front_custom').style.width=wt+'px';
		  document.getElementById('front_custom').style.height=ht+'px';
		  document.getElementById('custom_print').width=wt;
		  document.getElementById('custom_print').height=ht;
		}
	}
	else if(prlc=="lc")
	{
	  if(style_letter=="j")
		  document.getElementById('front_custom').style.top='170px';
		else if(style_letter=="bl" || style_letter=="bp" || style_letter=="bo" || style_letter=="bk" || style_letter=="bn")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="d")
		  document.getElementById('front_custom').style.top='185px';
		else if(style_letter=="o")
		  document.getElementById('front_custom').style.top='250px';
		else
		  document.getElementById('front_custom').style.top='150px';
		if(style_letter=="o")
		  document.getElementById('front_custom').style.left='223px';
		else
		  document.getElementById('front_custom').style.left='203px';
		document.getElementById('front_custom').style.width=wtlc+'px';
		document.getElementById('front_custom').style.height=htlc+'px';
		document.getElementById('custom_print').width=wtlc;
		document.getElementById('custom_print').height=htlc;
	}
	/*End Set Custom Image Location*/
	/*Shorts Print Location Changes*/
	if(style_letter=="o"){
	  if(prlc=="ff"){
		  document.getElementById('front_print').style.top='240px';
			document.getElementById('front_print').style.left='-9px';
	    document.getElementById('right_chest').style.top='243px';
		  document.getElementById('right_chest').style.left='213px';
	    document.form1.front_sh[1].checked=true;
		  document.getElementById("sh2").value="left";
		}else if(prlc=="lc"){
		  document.getElementById('front_print').style.top='240px';
		  document.getElementById('front_print').style.left='137px';
	    document.getElementById('right_chest').style.top='243px';
		  document.getElementById('right_chest').style.left='79px';
	    document.form1.front_sh[0].checked=true;
		  document.getElementById("sh2").value="right";
		}else{
		  document.getElementById('front_print').style.top='240px';
			document.getElementById('front_print').style.left='137px';
	    document.getElementById('right_chest').style.top='243px';
			for (var i=0;i<document.form1.front_rc.length;i++){
        if (document.form1.front_rc[i].checked){
          var rc = document.form1.front_rc[i].value;
        }
      }
			if(rc!="false"){
			  for (var i=0;i<document.form1.front_sh.length;i++){
          if (document.form1.front_sh[i].checked){
            var sh = document.form1.front_sh[i].value;
          }
        }
			}
			else var sh="right";
			if(sh=="right")
		    document.getElementById('right_chest').style.left='79px';
			else if(sh=="left")
			  document.getElementById('right_chest').style.left='213px';
		}		  
	}else{
		document.getElementById('front_print').style.left='109px';
		document.getElementById('right_chest').style.left='109px';
	}
	/*End Shorts Print Location Changes*/
	if(imgname!="")
  {  
    extension = imgname.substring(imgname.length - 3, imgname.length);
    if (extension.toUpperCase() != 'JPG' && extension.toUpperCase() != 'GIF' && extension.toUpperCase() != 'PNG' && extension.toUpperCase() != 'BMP')
    {
      valid = false;
      alert("The file must be an image file with extension JPG, GIF, PNG, or BMP.");
      /*refresh file input
		  var bDiv=document.getElementById("order3_upload");
	    nextB=document.createElement("input"); 
      nextB.setAttribute("type", "file"); 
      nextB.setAttribute("id", "filesent"); 
      nextB.setAttribute("name", "filesent");
		  if(browser=="Microsoft Internet Explorer")
	    {
 	      nextB["onchange"]=new Function("document.getElementById('page2').value=1;showLocalImage();getprice();setcustomform();");
	      nextB.style.setAttribute("width", "170px");
		    nextB.style.setAttribute("fontSize", "9px");
		    nextB.style.setAttribute("marginTop", "6px"); 
      }
	    else
	    {
	      nextB.setAttribute("onchange", "document.getElementById('page2').value=1;showLocalImage();getprice();setcustomform();");
	      nextB.setAttribute("style", "width:170px;font-size:9px;margin-top:6px;");
      } 
	    nextB.setAttribute("size", "1");
	    nextB.setAttribute("width", "170px");  
      nextB.setAttribute("value", ""); 
	    bDiv.replaceChild(nextB,bDiv.childNodes[1]);
		  end refresh file input*/
		}
	}
	if(imgname=="" && filename!="")
	{	
	    /*start reset insideout*/
	    var inout=document.getElementById("inout").value;
	    var ioletter=document.getElementById("style_letter").value;
	    if(inout=="in" && (ioletter=="j" || ioletter=="m"))
	    insideout(1);
	    /*end reset insideout*/
	  	/*change side to front*/	
	    var side=document.getElementById("flipit").value;
      var product=document.getElementById("style_letter").value;
	    var x=document.getElementById("flip_table").rows[0].cells;
	    if(side=="back")
	    {
	      side="front";
		    document.getElementById("flipit").value=side;
		    x[0].innerHTML=side;
	      if(browser=="Microsoft Internet Explorer")
	      {
	        document.getElementById("main_img").src = "images/order/blank.gif";
	        document.main_img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/order/"+product+side+".png')";
	      }
	      else
	      {  document.getElementById("main_img").src = "images/order/"+product+side+".png";}		
        if(browser=="Microsoft Internet Explorer")
	      {
		      document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
			    document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
 	      }
		    else 
		    {
		      document.name_on.src="images/order/blank.gif";
		      document.number_on.src="images/order/blank.gif";
		    }
	    }
	    /*end change side to front*/	
      if(browser=="Microsoft Internet Explorer")
		  {
		    document.custom_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='customimages/"+filename+"',sizingMethod='scale')";
	      document.custom_print.src="images/order/blank.gif";
		  }
		  else
		  {
		    document.custom_print.style.visibility="visible";
			  document.custom_print.src="customimages/"+filename;
		  }
	} 
}

function checkmprice()
{
  var mprice=document.getElementById('mprice').value;
	if(!(mprice>=0 && mprice<9999))
	{
	  document.getElementById('mprice').value=0;
		alert("Please enter a valid number in the base price field.");
	}
}

function checkcsv()
{
  var trfilename=document.form2.trfilesent.value;
	var browser=navigator.appName;
	var extension;
	if(trfilename!="")
  {  
    extension = trfilename.substring(trfilename.length - 3, trfilename.length);
    if (extension.toUpperCase() != 'CSV')
    {
      valid = false;
      alert("The file must be a comma separated value file with extension CSV.");
      /*refresh trfile input*/
		  var bDiv=document.getElementById("order4_upload");
	    nextB=document.createElement("input"); 
      nextB.setAttribute("type", "file"); 
      nextB.setAttribute("id", "trfilesent"); 
      nextB.setAttribute("name", "trfilesent");
		  if(browser=="Microsoft Internet Explorer")
	    {
			  nextB["onchange"]=new Function("document.getElementById('page2').value=2;checkcsv();getprice();setcustomform();");
	      nextB.style.setAttribute("width", "170px");
		    nextB.style.setAttribute("fontSize", "9px");
		    nextB.style.setAttribute("marginTop", "6px"); 
      }
	    else
	    {
	      nextB.setAttribute("onchange", "document.getElementById('page2').value=2;checkcsv();getprice();setcustomform();");
	      nextB.setAttribute("style", "width:170px;font-size:9px;margin-top:6px;");
      } 
	    nextB.setAttribute("size", "1");
	    nextB.setAttribute("width", "170px");  
      nextB.setAttribute("value", ""); 
	    bDiv.replaceChild(nextB,bDiv.childNodes[1]);
		  /*end refresh trfile input*/
		}
	}
}

function checkpic()
{
  var spimagename=document.form2.spfilesent.value;
	var spfilename=document.getElementById('spfilename').value;
	var browser=navigator.appName;
	var extension;
	/*Set Style Image Location*/
	var style_letter=document.getElementById("style_letter").value;
	var spwt=parseInt(document.getElementById('spwidth').value);
	var spht=parseInt(document.getElementById('spheight').value);
	document.getElementById('style_area').style.width=spwt+'px';
	document.getElementById('style_area').style.height=spht+'px';
	document.getElementById('style_pic').width=spwt;
	document.getElementById('style_pic').height=spht;
	/*End Set Style Image Location*/
	if(spimagename!="")
  {  
    extension = spimagename.substring(spimagename.length - 3, spimagename.length);
    if (extension.toUpperCase() != 'JPG' && extension.toUpperCase() != 'GIF' && extension.toUpperCase() != 'PNG' && extension.toUpperCase() != 'BMP')
    {
      valid = false;
      alert("The file must be an image file with extension JPG, GIF, PNG, or BMP.");
			/*refresh spfile input*/
		  var bDiv=document.getElementById("order5_upload");
	    nextB=document.createElement("input"); 
      nextB.setAttribute("type", "file"); 
      nextB.setAttribute("id", "spfilesent"); 
      nextB.setAttribute("name", "spfilesent");
		  if(browser=="Microsoft Internet Explorer")
	    {	
			  nextB["onchange"]=new Function("document.getElementById('page2').value=3;checkpic();getprice();setcustomform();");
	      nextB.style.setAttribute("width", "170px");
		    nextB.style.setAttribute("fontSize", "9px");
		    nextB.style.setAttribute("marginTop", "6px"); 
      }
	    else
	    {
	      nextB.setAttribute("onchange", "document.getElementById('page2').value=3;checkpic();getprice();setcustomform();");
	      nextB.setAttribute("style", "width:170px;font-size:9px;margin-top:6px;");
      } 
	    nextB.setAttribute("size", "1");
	    nextB.setAttribute("width", "170px");  
      nextB.setAttribute("value", ""); 
	    bDiv.replaceChild(nextB,bDiv.childNodes[1]);
		  /*end refresh spfile input*/
		}
	}
	if(spimagename=="" && spfilename!="")
	{	
	  if(browser=="Microsoft Internet Explorer")
		{
		  document.style_pic.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='styleimages/"+spfilename+"',sizingMethod='scale')";
	    document.style_pic.src="images/order/blank.gif";
		}
		else
		{
		  document.style_pic.style.visibility="visible";
		  document.style_pic.src="styleimages/"+spfilename;
		}
		document.getElementById("style_area").style.visibility="visible";
	}
	else
	  document.getElementById("style_area").style.visibility="hidden";
}

function setcustomform()
{
	var letter=document.getElementById('style_letter').value;
  for (var i=0;i<document.form1.prlc.length;i++)
  {
    if (document.form1.prlc[i].checked)
    {
      var prlc = document.form1.prlc[i].value;
    }
  }	
	if(prlc!="ff"||letter=="o")
	{
	  for (var i=0;i<document.form1.front_rc.length;i++)
    {
      if (document.form1.front_rc[i].checked)
      {
        var rc = document.form1.front_rc[i].value;
      }
    }
	}
	else
	  var rc="false";
	if(rc!="false"&&letter=="o")
	{
	  for (var i=0;i<document.form1.front_sh.length;i++)
    {
      if (document.form1.front_sh[i].checked)
      {
        var sh = document.form1.front_sh[i].value;
      }
    }
	}
	else
	  var sh="right";
	for (var i=0;i<document.form1.decide.length;i++)
  {
    if (document.form1.decide[i].checked)
    {
      var decide = document.form1.decide[i].value;
    }
  }
	for (var i=0;i<document.form1.combo.length;i++)
  {
    if (document.form1.combo[i].checked)
    {
      var combo = document.form1.combo[i].value;
    }
  }	
	if(combo!="names")
	{
	  for (var i=0;i<document.form1.nn_size.length;i++)
    {
      if (document.form1.nn_size[i].checked)
      {
        var nn_size = document.form1.nn_size[i].value;
      }
    }
	}
	var nam_text="";
	var num_text="";
	var c=document.getElementById('c').value;
	if(decide=="true")
	{
	  for(var a=1;a<=c;a++)
	  {
	    if(combo!="nums")
		  {
		    var nn=document.getElementById('name'+a).value;
	      nam_text+=nn+"|";
		  }
	    if(combo!="names")
	    {
		    var na=document.getElementById('number'+a).value;
		    num_text+=na+"|"; 
		  }
	  
		}
	}	
	
	document.getElementById('style_letter2').value=document.getElementById('style_letter').value;
	document.getElementById('style_name2').value=document.getElementById('style_name').value;
	document.getElementById('color2').value=document.getElementById('color').value;
	document.getElementById('color_name2').value=document.getElementById('color_name').value;
	var style_name=document.getElementById('style_name').value;
	if(style_name=='NRV100'){
	  if(document.form1.whiteside.checked==true)
	    document.form2.whiteside2.value="true";
	  if(document.form1.girlscb.checked==true)
	    document.form2.girlscb2.value="true";
	}else{
	  document.form2.whiteside2.value="false";
	  document.form2.girlscb2.value="false";
	}
	document.getElementById("ink_color2").value=document.getElementById("ink_color").value;
	document.getElementById('price2').value=document.getElementById('price').value;
	document.getElementById('pr2lc').value=prlc;
	document.getElementById('rc2').value=rc;
	document.getElementById('sh2').value=sh;
	
	var cat_num=0;
	var category=document.getElementById('category').value;
	if(category=="select_category")
    cat_num=0;
  if(category=="basketball")
    cat_num=1;
  if(category=="baseball")
    cat_num=2;
  if(category=="soccer")
    cat_num=3;
  if(category=="football")
    cat_num=4;
  if(category=="lacrosse")
    cat_num=5;
  if(category=="hockey")
    cat_num=6;
  if(category=="volleyball")
    cat_num=7;
  if(category=="softball")
    cat_num=8;
  if(category=="threenumber")
    cat_num=9;
  if(category=="fournumber")
    cat_num=10;
	document.getElementById('cat2').value=cat_num;
	document.getElementById('pnum2').value=document.getElementById('print_num').value;
	document.getElementById('cline1_2').value=document.getElementById('cline1').value;
	document.getElementById('cline2_2').value=document.getElementById('cline2').value;
	
	document.getElementById('decide2').value=decide;
	if(document.form1.revs.checked)
	  document.form2.revs2.value="true";
	else
	  document.form2.revs2.value="false";
	document.getElementById('combo2').value=combo;
	if(combo!="names")
	  document.getElementById('nn_size2').value=nn_size;
	document.getElementById('nam_text').value=nam_text;
	document.getElementById('num_text').value=num_text;
  var style_name=document.getElementById("style_name").value;
	if(style_name=="RGT100" || style_name=="LST100")
	{
	  document.getElementById('ysmall2').value=document.getElementById('ysmall').value;
	  document.getElementById('ymed2').value=document.getElementById('ymed').value;
	  document.getElementById('ylarge2').value=document.getElementById('ylarge').value;
	  document.getElementById('small2').value=document.getElementById('small').value;
	  document.getElementById('med2').value=document.getElementById('med').value;
	  document.getElementById('large2').value=document.getElementById('large').value;
	  document.getElementById('xlarge2').value=document.getElementById('xlarge').value;
	  document.getElementById('xxlarge2').value=document.getElementById('xxlarge').value;
	}
	else if(style_name=="BRC100")
	{
	  document.getElementById('small2').value=document.getElementById('small').value;
	  document.getElementById('med2').value=document.getElementById('med').value;
	  document.getElementById('large2').value=document.getElementById('large').value;
	  document.getElementById('xlarge2').value=document.getElementById('xlarge').value;
	}
	else if(style_name=="HDS9_5")
	{
	  document.getElementById('small2').value=document.getElementById('small').value;
	  document.getElementById('med2').value=document.getElementById('med').value;
	  document.getElementById('large2').value=document.getElementById('large').value;
	  document.getElementById('xlarge2').value=document.getElementById('xlarge').value;
		document.getElementById('xxlarge2').value=document.getElementById('xxlarge').value;
	}
	else if(style_name=="NRV100")
	{
	  document.getElementById('ymed2').value=document.getElementById('ymed').value;
	  document.getElementById('ylarge2').value=document.getElementById('ylarge').value;
	  document.getElementById('small2').value=document.getElementById('small').value;
	  document.getElementById('med2').value=document.getElementById('med').value;
	  document.getElementById('large2').value=document.getElementById('large').value;
	  document.getElementById('xlarge2').value=document.getElementById('xlarge').value;
	  document.getElementById('xxlarge2').value=document.getElementById('xxlarge').value;
	}
	else
	{
	  document.getElementById('ysmall2').value=document.getElementById('ysmall').value;
	  document.getElementById('ymed2').value=document.getElementById('ymed').value;
	  document.getElementById('ylarge2').value=document.getElementById('ylarge').value;
	  if(style_name=="H685")
		  document.getElementById('yxlarge2').value=document.getElementById('yxlarge').value;
		document.getElementById('small2').value=document.getElementById('small').value;
	  document.getElementById('med2').value=document.getElementById('med').value;
	  document.getElementById('large2').value=document.getElementById('large').value;
	  document.getElementById('xlarge2').value=document.getElementById('xlarge').value;
	  document.getElementById('xxlarge2').value=document.getElementById('xxlarge').value;
	  document.getElementById('xxxlarge2').value=document.getElementById('xxxlarge').value;
	}
	if(style_name=="MMM100")
	{
	  document.getElementById('mstyle2').value=document.getElementById('mstyle').value;
		document.getElementById('mprice2').value=document.getElementById('mprice').value;
		document.getElementById('mcolor2').value=document.getElementById('mcolor').value;
	}
} 

/*Names and Numbers*/
function frontnum()
{
  var browser=navigator.appName;
	var category=document.form1.category.options[document.form1.category.selectedIndex].value;
	var filename=document.getElementById("filename").value;
	var ink_color=document.getElementById("ink_color").value;
	var inout=document.getElementById("inout").value;
	var num=parseInt(document.getElementById("print_num").value);
	var product=document.getElementById("style_letter").value;
	for (var i=0;i<document.form1.prlc.length;i++)
  {
    if (document.form1.prlc[i].checked)
    {
      var prlc = document.form1.prlc[i].value;
    }
  }	
	if(prlc!="ff"||product=="o")
	{
	  for (var i=0;i<document.form1.front_rc.length;i++)
    {
      if (document.form1.front_rc[i].checked)
      {
        var rc = document.form1.front_rc[i].value;
      }
    }
	}
	else
	  var rc="false";
	document.getElementById("rc2").value=rc;
	/*Shorts FrontNum Details*/
	if(rc!=false&&product=="o"){
	  for (var i=0;i<document.form1.front_sh.length;i++)
    {
      if (document.form1.front_sh[i].checked)
      {
        var sh = document.form1.front_sh[i].value;
      }
    }
		if(sh!="right"&&sh!="left"&&prlc=="lc"){
	    document.form1.front_sh[0].checked=true;
		  document.getElementById("sh2").value="right";
		}else if(sh!="right"&&sh!="left"&&prlc!="lc"){
		  document.form1.front_sh[1].checked=true;
		  document.getElementById("sh2").value="left";
		}else if(sh=="left"&&prlc!="np"){ 
	    document.form1.prlc[0].checked=true;
		  document.getElementById("pr2lc").value="ff";
			prlc="ff";
		}else if(sh=="right"&&prlc!="np"){
	    document.form1.prlc[1].checked=true;
		  document.getElementById("pr2lc").value="lc";
			prlc="lc";
		}
	}
	/*End Shorts FrontNum Details*/
	if(prlc=="ff"&&product!="o")
    var lc="";
  else if(prlc=="lc"||product=="o")
    var lc="lc";
	/*start reset insideout*/
	var inout=document.getElementById("inout").value;
	var ioletter=document.getElementById("style_letter").value;
	if(inout=="in" && (ioletter=="j" || ioletter=="m"))
	  insideout(1);
	/*end reset insideout*/
	var style_letter=document.getElementById("style_letter").value;
	/*Set Custom Image Location*/
	var wt=parseInt(document.getElementById('width').value);
	var wtlc=parseInt(document.getElementById('widthlc').value);
	var ht=parseInt(document.getElementById('height').value);
	var htlc=parseInt(document.getElementById('heightlc').value);
	if(prlc=="ff")
	{
	  if(style_letter=="j")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="bl" || style_letter=="bp" || style_letter=="bo" || style_letter=="bk" || style_letter=="bn")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="d")
		  document.getElementById('front_custom').style.top='180px';
		else if(style_letter=="o")
		  document.getElementById('front_custom').style.top='250px';
		else
		  document.getElementById('front_custom').style.top='140px';
		if(style_letter=="o")
		{
		  document.getElementById('front_custom').style.left='88px';
		  document.getElementById('front_custom').style.width=wtlc+'px';
		  document.getElementById('front_custom').style.height=htlc+'px';
		  document.getElementById('custom_print').width=wtlc;
		  document.getElementById('custom_print').height=htlc;
		}
		else
		{
		  document.getElementById('front_custom').style.left='109px';
		  document.getElementById('front_custom').style.width=wt+'px';
		  document.getElementById('front_custom').style.height=ht+'px';
		  document.getElementById('custom_print').width=wt;
		  document.getElementById('custom_print').height=ht;
		}
	}
	else if(prlc=="lc")
	{
	  if(style_letter=="j")
		  document.getElementById('front_custom').style.top='170px';
		else if(style_letter=="bl" || style_letter=="bp" || style_letter=="bo" || style_letter=="bk" || style_letter=="bn")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="d")
		  document.getElementById('front_custom').style.top='185px';
		else if(style_letter=="o")
		  document.getElementById('front_custom').style.top='250px';
		else
		  document.getElementById('front_custom').style.top='150px';
		if(style_letter=="o")
		  document.getElementById('front_custom').style.left='223px';
		else
		  document.getElementById('front_custom').style.left='203px';
		document.getElementById('front_custom').style.width=wtlc+'px';
		document.getElementById('front_custom').style.height=htlc+'px';
		document.getElementById('custom_print').width=wtlc;
		document.getElementById('custom_print').height=htlc;
	}
	/*End Set Custom Image Location*/
	/*Shorts Print Location Changes*/
	if(style_letter=="o"){
	  if(prlc=="ff"){
		  document.getElementById('front_print').style.top='240px';
			document.getElementById('front_print').style.left='-9px';
	    document.getElementById('right_chest').style.top='243px';
		  document.getElementById('right_chest').style.left='213px';
	    document.form1.front_sh[1].checked=true;
		  document.getElementById("sh2").value="left";
		}else if(prlc=="lc"){
		  document.getElementById('front_print').style.top='240px';
		  document.getElementById('front_print').style.left='137px';
	    document.getElementById('right_chest').style.top='243px';
		  document.getElementById('right_chest').style.left='79px';
	    document.form1.front_sh[0].checked=true;
		  document.getElementById("sh2").value="right";
		}else{
		  document.getElementById('front_print').style.top='240px';
			document.getElementById('front_print').style.left='137px';
	    document.getElementById('right_chest').style.top='243px';
			for (var i=0;i<document.form1.front_rc.length;i++){
        if (document.form1.front_rc[i].checked){
          var rc = document.form1.front_rc[i].value;
        }
      }
			if(rc!="false"){
			  for (var i=0;i<document.form1.front_sh.length;i++){
          if (document.form1.front_sh[i].checked){
            var sh = document.form1.front_sh[i].value;
          }
        }
			}
			else var sh="right";
			if(sh=="right")
		    document.getElementById('right_chest').style.left='79px';
			else if(sh=="left")
			  document.getElementById('right_chest').style.left='213px';
		}		  
	}else{
		document.getElementById('front_print').style.left='109px';
		document.getElementById('right_chest').style.left='109px';
	}
	/*End Shorts Print Location Changes*/
	/*change side to front*/	
	var side=document.getElementById("flipit").value;	
  var product=document.getElementById("style_letter").value;
	var x=document.getElementById("flip_table").rows[0].cells;
	if(side=="back")
	{
	  side="front";
		document.getElementById("flipit").value=side;
		x[0].innerHTML=side;
	  if(browser=="Microsoft Internet Explorer")
	  {
	    document.getElementById("main_img").src = "images/order/blank.gif";
	    document.main_img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/order/"+product+side+".png')";
	  }
	  else
	  {  document.getElementById("main_img").src = "images/order/"+product+side+".png";}
    if(browser=="Microsoft Internet Explorer")
	  {
		  document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
			document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
 	  }
		else 
		{
		  document.name_on.src="images/order/blank.gif";
		  document.number_on.src="images/order/blank.gif";
		}
	}
	/*end change side to front*/	
	  if(browser=="Microsoft Internet Explorer")
	 	{
		  if(category=="select_category" && prlc!="np")
			{
			  if(filename=="")
				  document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/order/question_mark"+lc+".png')";
			  else
				  document.custom_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='customimages/"+filename+"',sizingMethod='scale')";
			}
			else
				document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+category+"_"+ink_color+"_0"+num+lc+"_jerseys.png')";
			if(rc!="false" && (prlc!="ff"||product=="o"))
			  document.rc_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/rc"+rc+"_"+ink_color+"_jerseys.png')";		  
			else
			{
		    document.rc_print.style.filter="";
			  document.rc_print.src="images/order/blank.gif";
	    }
		}
		else 
		{
		  if(category=="select_category" && prlc!="np")
			{
			  if(filename=="")
				{
				  document.display_print.src="images/order/question_mark"+lc+".png";
		      document.display_print.style.visibility="visible";
				}
				else
				{
				  document.custom_print.src="customimages/"+filename;
		      document.custom_print.style.visibility="visible";
				}
			}
			else
			{
			  document.display_print.src="prodimages/"+category+"_"+ink_color+"_0"+num+lc+"_jerseys.png";
			  document.display_print.style.visibility="visible"; //setTimeout("document.display_print.style.visibility="visible"",1000)
			}
			if(rc!="false" && (prlc!="ff"||product=="o"))
			{
			  document.rc_print.src="prodimages/rc"+rc+"_"+ink_color+"_jerseys.png";
			  document.rc_print.style.visibility="visible";
			}
			else
			  document.rc_print.src="images/order/blank.gif";
		}
	inkcolorstatus();
}

function names_check(result,combo,num_size)
{
  var browser=navigator.appName;
	var filename=document.getElementById('filename').value;
	var ink_color = document.getElementById("ink_color").value;
	var note=document.getElementById('order4_note');
	var obj="order4_radio3";
	var p=1;
	var style_letter = document.getElementById("style_letter").value;
	for (var i=0;i<document.form1.prlc.length;i++)
  {
    if (document.form1.prlc[i].checked)
    {
      var prlc = document.form1.prlc[i].value;
    }
  }
	if(prlc!='ff'||style_letter=="o")
	{
	  for (var i=0;i<document.form1.front_rc.length;i++)
    {
      if (document.form1.front_rc[i].checked)
      {
        var rc = document.form1.front_rc[i].value;
      }
    }
	}
	else
	  var rc="false";
  if(prlc=="ff"&&style_letter!="o")
    var lc="";
  else if(prlc=="lc"||style_letter=="o")
    var lc="lc";
	for (var i=0;i<document.form1.combo.length;i++)
  {
    if (document.form1.combo[i].checked)
    {
      var combo = document.form1.combo[i].value;
    }
  }
	/*start reset insideout*/
	var inout=document.getElementById("inout").value;
	var ioletter=document.getElementById("style_letter").value;
	if(inout=="in" && (ioletter=="j" || ioletter=="m"))
	  insideout(1);
	/*end reset insideout*/
	if(combo=="names")
	{
	  document.getElementById("order4_radio3").style.visibility="hidden";
		p=0	;
	}
	else if(combo=="nums")
	{
	  document.getElementById("order4_radio3").style.visibility="visible";
	  p=1;
	}
	else if(combo=="both")
	{
	  document.getElementById("order4_radio3").style.visibility="visible";
	  p=1;
	}
	if(p==1)
	{
	  var checksix=document.form1.nn_size[0].checked;
	  if(checksix==true)
	  {
	    num_size="sixinch";
	  }
	  else
	  {  
	    num_size="eightinch";
	  }
	}
	if(result=="true")
	{
	  var side="back";
		if(prlc=="np" || filename!="")
		  note.innerHTML="to change color go<br />back to graphics tab";
		else
		  note.innerHTML="";
		if(style_letter=="j")
		{
		  document.form1.combo[1].checked=true;
			document.form2.combo2.value="nums";
			document.getElementById("order4_radio3").style.visibility="visible";
			document.form1.combo[0].style.visibility="hidden";
			document.getElementById("order4_combo1").style.visibility="hidden";
			document.form1.combo[2].style.visibility="hidden";
			document.getElementById("order4_combo3").style.visibility="hidden";
			combo="nums";
		}
		else
		{
			document.form1.combo[0].style.visibility="visible";
			document.getElementById("order4_combo1").style.visibility="visible";
			document.form1.combo[2].style.visibility="visible";
			document.getElementById("order4_combo3").style.visibility="visible";
		  if(combo=="names")
		  {  document.form1.combo[0].checked=true;
			  document.form2.combo2.value="names";}
			else if(combo=="nums")
			{  document.form1.combo[1].checked=true;
			  document.form2.combo2.value="nums";}
			else if(combo=="both")
			{  document.form1.combo[2].checked=true;
			  document.form2.combo2.value="both";}
		}
	  if(p==1)
		{
		  if(num_size=="sixinch")
	    {  document.form1.nn_size[0].checked=true;
			  document.form2.nn_size2.value="sixinch";}
	    else if(num_size=="eightinch")
	    {  document.form1.nn_size[1].checked=true;
			  document.form2.nn_size2.value="eightinch";}
    }
    if(browser=="Microsoft Internet Explorer")
		{
		  document.rc_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
			document.custom_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
			document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
			if(combo=="names")
			{
			  document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/name_"+ink_color+"_jerseys.png');";
			  document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
		  }
			if(combo=="nums")
			{
			  document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0);";
        document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+num_size+"_"+ink_color+"_jerseys.png');";
			}
			if(combo=="both")
			{
			  document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/name_"+ink_color+"_jerseys.png');";
			  document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+num_size+"_"+ink_color+"_jerseys.png');";
	    }
		}
		else 
		{
		  document.rc_print.style.visibility="hidden";
		  document.custom_print.style.visibility="hidden";
		  document.display_print.style.visibility="hidden";
			if(combo=="names")
			{
			  document.name_on.src="prodimages/name_"+ink_color+"_jerseys.png";
			  document.number_on.src="images/order/blank.gif";
			}
			if (combo=="nums")
		  {
			  document.name_on.src="images/order/blank.gif";
				document.number_on.src="prodimages/"+num_size+"_"+ink_color+"_jerseys.png";
			}
			if(combo=="both")
			{
			  document.name_on.src="prodimages/name_"+ink_color+"_jerseys.png";
			  document.number_on.src="prodimages/"+num_size+"_"+ink_color+"_jerseys.png";
			}
		}
		document.form1.decide[0].checked=true;
		document.form2.decide2.value="true";
	}
	else if(result=="false")
	{
	  var category=document.form1.category.options[document.form1.category.selectedIndex].value;
		var filename=document.getElementById("filename").value;
	  var num=parseInt(document.getElementById("print_num").value);
		var side="front";
		note.innerHTML="";
	var style_letter=document.getElementById("style_letter").value;
	/*Set Custom Image Location*/
	var wt=parseInt(document.getElementById('width').value);
	var wtlc=parseInt(document.getElementById('widthlc').value);
	var ht=parseInt(document.getElementById('height').value);
	var htlc=parseInt(document.getElementById('heightlc').value);
	if(prlc=="ff")
	{
	  if(style_letter=="j")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="bl" || style_letter=="bp" || style_letter=="bo" || style_letter=="bk" || style_letter=="bn")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="d")
		  document.getElementById('front_custom').style.top='180px';
		else if(style_letter=="o")
		  document.getElementById('front_custom').style.top='250px';
		else
		  document.getElementById('front_custom').style.top='140px';
		if(style_letter=="o")
		{
		  document.getElementById('front_custom').style.left='88px';
		  document.getElementById('front_custom').style.width=wtlc+'px';
		  document.getElementById('front_custom').style.height=htlc+'px';
		  document.getElementById('custom_print').width=wtlc;
		  document.getElementById('custom_print').height=htlc;
		}
		else
		{
		  document.getElementById('front_custom').style.left='109px';
		  document.getElementById('front_custom').style.width=wt+'px';
		  document.getElementById('front_custom').style.height=ht+'px';
		  document.getElementById('custom_print').width=wt;
		  document.getElementById('custom_print').height=ht;
		}
	}
	else if(prlc=="lc")
	{
	  if(style_letter=="j")
		  document.getElementById('front_custom').style.top='170px';
		else if(style_letter=="bl" || style_letter=="bp" || style_letter=="bo" || style_letter=="bk" || style_letter=="bn")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="d")
		  document.getElementById('front_custom').style.top='185px';
		else if(style_letter=="o")
		  document.getElementById('front_custom').style.top='250px';
		else
		  document.getElementById('front_custom').style.top='150px';
		if(style_letter=="o")
		  document.getElementById('front_custom').style.left='223px';
		else
		  document.getElementById('front_custom').style.left='203px';
		document.getElementById('front_custom').style.width=wtlc+'px';
		document.getElementById('front_custom').style.height=htlc+'px';
		document.getElementById('custom_print').width=wtlc;
		document.getElementById('custom_print').height=htlc;
	}
	/*End Set Custom Image Location*/
	/*Shorts Print Location Changes*/
	if(style_letter=="o"){
	  if(prlc=="ff"){
		  document.getElementById('front_print').style.top='240px';
			document.getElementById('front_print').style.left='-9px';
	    document.getElementById('right_chest').style.top='243px';
		  document.getElementById('right_chest').style.left='213px';
	    document.form1.front_sh[1].checked=true;
		  document.getElementById("sh2").value="left";
		}else if(prlc=="lc"){
		  document.getElementById('front_print').style.top='240px';
		  document.getElementById('front_print').style.left='137px';
	    document.getElementById('right_chest').style.top='243px';
		  document.getElementById('right_chest').style.left='79px';
	    document.form1.front_sh[0].checked=true;
		  document.getElementById("sh2").value="right";
		}else{
		  document.getElementById('front_print').style.top='240px';
			document.getElementById('front_print').style.left='137px';
	    document.getElementById('right_chest').style.top='243px';
			for (var i=0;i<document.form1.front_rc.length;i++){
        if (document.form1.front_rc[i].checked){
          var rc = document.form1.front_rc[i].value;
        }
      }
			if(rc!="false"){
			  for (var i=0;i<document.form1.front_sh.length;i++){
          if (document.form1.front_sh[i].checked){
            var sh = document.form1.front_sh[i].value;
          }
        }
			}
			else var sh="right";
			if(sh=="right")
		    document.getElementById('right_chest').style.left='79px';
			else if(sh=="left")
			  document.getElementById('right_chest').style.left='213px';
		}		  
	}else{
		document.getElementById('front_print').style.left='109px';
		document.getElementById('right_chest').style.left='109px';
	}
	/*End Shorts Print Location Changes*/
	  
		if(browser=="Microsoft Internet Explorer")
	 	{
		  document.name_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
			document.number_on.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(opacity=0)";
 	    if(category=="select_category" && prlc!="np")
			{
			  if(filename=="")
				  document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/order/question_mark"+lc+".png')";
			  else
				  document.custom_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='customimages/"+filename+"',sizingMethod='scale')";
			}
			else
				document.display_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/"+category+"_"+ink_color+"_0"+num+lc+"_jerseys.png')";
		  if(rc!="false" && prlc!="ff")
			  document.rc_print.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='prodimages/rc"+rc+"_"+ink_color+"_jerseys.png')";		  
			else
			{
		    document.rc_print.style.filter="";
			  document.rc_print.src="images/order/blank.gif";
	    }
		}
		else 
		{
		  document.name_on.src="images/order/blank.gif";
		  document.number_on.src="images/order/blank.gif";
			if(category=="select_category" && prlc!="np")
			{
			  if(filename=="")
				{
				  document.display_print.src="images/order/question_mark"+lc+".png";
		      document.display_print.style.visibility="visible";
				}
				else
				{
				  document.custom_print.src="customimages/"+filename;
		      document.custom_print.style.visibility="visible";
				}
			}
			else
			{
			  document.display_print.src="prodimages/"+category+"_"+ink_color+"_0"+num+lc+"_jerseys.png";
			  document.display_print.style.visibility="visible"; //setTimeout("document.display_print.style.visibility="visible"",1000)
			}
			if(rc!="false" && prlc!="ff")
			{
			  document.rc_print.src="prodimages/rc"+rc+"_"+ink_color+"_jerseys.png";
			  document.rc_print.style.visibility="visible";
			}
			else
			  document.rc_print.src="images/order/blank.gif";
		}
		document.form1.decide[1].checked=true;
		document.form2.decide2.value="false";
	}
	document.getElementById("flipit").value=side;
  var y=document.getElementById("flip_table").rows[0].cells;
	y[0].innerHTML=side;
	var product=document.getElementById("style_letter").value;
	if(browser=="Microsoft Internet Explorer")
	{
	  document.getElementById("main_img").src = "images/order/blank.gif";
	  document.main_img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/order/"+product+side+".png')";
	}
	else
	{  document.getElementById("main_img").src = "images/order/"+product+side+".png";}
	
	inkcolorstatus();
}

function textboxes()
{
	var browser=navigator.appName;
	var category=document.form1.category.options[document.form1.category.selectedIndex].value;
	var style_letter=document.getElementById("style_letter").value;
	for (var i=0;i<document.form1.prlc.length;i++)
  {
    if (document.form1.prlc[i].checked)
    {
      var prlc = document.form1.prlc[i].value;
    }
  }
	if(prlc!='ff'||style_letter=="o")
	{
	  for (var i=0;i<document.form1.front_rc.length;i++)
    {
      if (document.form1.front_rc[i].checked)
      {
        var rc = document.form1.front_rc[i].value;
      }
    }
	}
	else
	  var rc="false";
	var style_name=document.getElementById("style_name").value;
	if(style_name=="RGT100" || style_name=="LST100")
	{
	  var size=new Array(8); 
	  size[0]=document.getElementById('ysmall').value;
	  size[1]=document.getElementById('ymed').value;
	  size[2]=document.getElementById('ylarge').value;
	  size[3]=document.getElementById('small').value;
	  size[4]=document.getElementById('med').value;
	  size[5]=document.getElementById('large').value;
	  size[6]=document.getElementById('xlarge').value;
	  size[7]=document.getElementById('xxlarge').value;
		var sname=new Array(8);
	  sname[0]="YS";
	  sname[1]="YM";
	  sname[2]="YL";
	  sname[3]="AS";
	  sname[4]="AM";
	  sname[5]="AL";
	  sname[6]="XL";
	  sname[7]="XXL";
	}
	else if(style_name=="BRC100")
	{
	  var size=new Array(4); 
	  size[0]=document.getElementById('small').value;
	  size[1]=document.getElementById('med').value;
	  size[2]=document.getElementById('large').value;
	  size[3]=document.getElementById('xlarge').value;
		var sname=new Array(4);
	  sname[0]="AS";
	  sname[1]="AM";
	  sname[2]="AL";
	  sname[3]="XL";
	}
	else if(style_name=="HDS9_5")
	{
	  var size=new Array(5);
		size[0]=document.getElementById('small').value;
	  size[1]=document.getElementById('med').value;
	  size[2]=document.getElementById('large').value;
	  size[3]=document.getElementById('xlarge').value;
	  size[4]=document.getElementById('xxlarge').value;
		var sname=new Array(5);
	  sname[0]="AS";
	  sname[1]="AM";
	  sname[2]="AL";
	  sname[3]="XL";
	  sname[4]="XXL";
	}
	else if(style_name=="NRV100")
	{
	  var size=new Array(7); 
	  size[0]=document.getElementById('ymed').value;
	  size[1]=document.getElementById('ylarge').value;
	  size[2]=document.getElementById('small').value;
	  size[3]=document.getElementById('med').value;
	  size[4]=document.getElementById('large').value;
	  size[5]=document.getElementById('xlarge').value;
	  size[6]=document.getElementById('xxlarge').value;
		var sname=new Array(7);
	  sname[0]="YM";
	  sname[1]="YL";
	  sname[2]="AS";
	  sname[3]="AM";
	  sname[4]="AL";
	  sname[5]="XL";
	  sname[6]="XXL";
	}
	else if(style_name=="H685")
	{
	  var size=new Array(10); 
	  size[0]=document.getElementById('ysmall').value;
	  size[1]=document.getElementById('ymed').value;
	  size[2]=document.getElementById('ylarge').value;
		size[3]=document.getElementById('yxlarge').value;
		size[4]=document.getElementById('small').value;
	  size[5]=document.getElementById('med').value;
	  size[6]=document.getElementById('large').value;
	  size[7]=document.getElementById('xlarge').value;
	  size[8]=document.getElementById('xxlarge').value;
	  size[9]=document.getElementById('xxxlarge').value;
		var sname=new Array(10);
	  sname[0]="YS";
	  sname[1]="YM";
	  sname[2]="YL";
		sname[3]="YXL";
	  sname[4]="AS";
	  sname[5]="AM";
	  sname[6]="AL";
	  sname[7]="XL";
	  sname[8]="XXL";
	  sname[9]="XXXL";
	}
	else
	{
	  var size=new Array(9); 
	  size[0]=document.getElementById('ysmall').value;
	  size[1]=document.getElementById('ymed').value;
	  size[2]=document.getElementById('ylarge').value;
		size[3]=document.getElementById('small').value;
	  size[4]=document.getElementById('med').value;
	  size[5]=document.getElementById('large').value;
	  size[6]=document.getElementById('xlarge').value;
	  size[7]=document.getElementById('xxlarge').value;
	  size[8]=document.getElementById('xxxlarge').value;
		var sname=new Array(9);
	  sname[0]="YS";
	  sname[1]="YM";
	  sname[2]="YL";
	  sname[3]="AS";
	  sname[4]="AM";
	  sname[5]="AL";
	  sname[6]="XL";
	  sname[7]="XXL";
	  sname[8]="XXXL";
	}
	var size_count=size.length;
	
	/*Set Custom Image Location*/
	var wt=parseInt(document.getElementById('width').value);
	var wtlc=parseInt(document.getElementById('widthlc').value);
	var ht=parseInt(document.getElementById('height').value);
	var htlc=parseInt(document.getElementById('heightlc').value);
	if(prlc=="ff")
	{
	  if(style_letter=="j")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="bl" || style_letter=="bp" || style_letter=="bo" || style_letter=="bk" || style_letter=="bn")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="d")
		  document.getElementById('front_custom').style.top='180px';
		else if(style_letter=="o")
		  document.getElementById('front_custom').style.top='250px';
		else
		  document.getElementById('front_custom').style.top='140px';
		if(style_letter=="o")
		{
		  document.getElementById('front_custom').style.left='88px';
		  document.getElementById('front_custom').style.width=wtlc+'px';
		  document.getElementById('front_custom').style.height=htlc+'px';
		  document.getElementById('custom_print').width=wtlc;
		  document.getElementById('custom_print').height=htlc;
		}
		else
		{
		  document.getElementById('front_custom').style.left='109px';
		  document.getElementById('front_custom').style.width=wt+'px';
		  document.getElementById('front_custom').style.height=ht+'px';
		  document.getElementById('custom_print').width=wt;
		  document.getElementById('custom_print').height=ht;
		}
	}
	else if(prlc=="lc")
	{
	  if(style_letter=="j")
		  document.getElementById('front_custom').style.top='170px';
		else if(style_letter=="bl" || style_letter=="bp" || style_letter=="bo" || style_letter=="bk" || style_letter=="bn")
		  document.getElementById('front_custom').style.top='160px';
		else if(style_letter=="d")
		  document.getElementById('front_custom').style.top='185px';
		else if(style_letter=="o")
		  document.getElementById('front_custom').style.top='250px';
		else
		  document.getElementById('front_custom').style.top='150px';
		if(style_letter=="o")
		  document.getElementById('front_custom').style.left='223px';
		else
		  document.getElementById('front_custom').style.left='203px';
		document.getElementById('front_custom').style.width=wtlc+'px';
		document.getElementById('front_custom').style.height=htlc+'px';
		document.getElementById('custom_print').width=wtlc;
		document.getElementById('custom_print').height=htlc;
	}
	/*End Set Custom Image Location*/
	/*Shorts Print Location Changes*/
	if(style_letter=="o"){
	  if(prlc=="ff"){
		  document.getElementById('front_print').style.top='240px';
			document.getElementById('front_print').style.left='-9px';
	    document.getElementById('right_chest').style.top='243px';
		  document.getElementById('right_chest').style.left='213px';
	    document.form1.front_sh[1].checked=true;
		  document.getElementById("sh2").value="left";
		}else if(prlc=="lc"){
		  document.getElementById('front_print').style.top='240px';
		  document.getElementById('front_print').style.left='137px';
	    document.getElementById('right_chest').style.top='243px';
		  document.getElementById('right_chest').style.left='79px';
	    document.form1.front_sh[0].checked=true;
		  document.getElementById("sh2").value="right";
		}else{
		  document.getElementById('front_print').style.top='240px';
			document.getElementById('front_print').style.left='137px';
	    document.getElementById('right_chest').style.top='243px';
			for (var i=0;i<document.form1.front_rc.length;i++){
        if (document.form1.front_rc[i].checked){
          var rc = document.form1.front_rc[i].value;
        }
      }
			if(rc!="false"){
			  for (var i=0;i<document.form1.front_sh.length;i++){
          if (document.form1.front_sh[i].checked){
            var sh = document.form1.front_sh[i].value;
          }
        }
			}
			else var sh="right";
			if(sh=="right")
		    document.getElementById('right_chest').style.left='79px';
			else if(sh=="left")
			  document.getElementById('right_chest').style.left='213px';
		}		  
	}else{
		document.getElementById('front_print').style.left='109px';
		document.getElementById('right_chest').style.left='109px';
	}
	/*End Shorts Print Location Changes*/
	
	for(var g=0;g<size_count;g++)
	{if(!(size[g]>=0 && size[g]<9999)){alert("Please enter a valid number in the size field.");}}	
	
	
	var x="";
	var text="";
	var text2="";
	var obj="inside";
	var obj2="inside";
	for (var i=0;i<document.form1.decide.length;i++)
  {
    if (document.form1.decide[i].checked)
    {
      result = document.form1.decide[i].value;
    }
  }
	for (i=0;i<document.form1.combo.length;i++)
  {
    if (document.form1.combo[i].checked)
    {
      combo = document.form1.combo[i].value;
    }
  }
	if(style_letter=="j")
	{
	  combo="nums";
	}
	var text="<span style='font-size:9px;font-family:Arial;'></span>";
	if(result=="true" || category=="threenumber" || category=="fournumber" || rc!="false")
	{
	  if(category=="threenumber" || category=="fournumber" || rc!="false")
		  text="<tr><td width='25px'>size</td><td width='30px'>front number</td></tr>";
		if(result=="true" && combo=="names")
	    text="<tr><td width='25px'>size</td><td width='181px'>player name</td></tr>";
		if(result=="true" && combo=="names" && (category=="threenumber" || category=="fournumber"  || rc!="false"))
		  text="<tr><td width='25px'>size</td><td width='181px'>player name</td><td width='30px'>front number</td></tr>";
		if(result=="true" && combo=="nums")
		  text="<tr><td width='25px'>size</td><td width='30px'>number</td></tr>";			  
    if(result=="true" && combo=="both")
	    text="<tr><td width='25px'>size</td><td width='181px'>player name</td><td width='30px'>number</td></tr>";
	  text="<table>"+text+"</table>";
	}
	else
	{
	  text="";
	}
	if (document.getElementById)
	{
	  x = document.getElementById(obj);
	  x.innerHTML = "";
	  x.innerHTML = text;
	}
	else if (document.all)
	{
	  x = document.all[obj];
	  x.innerHTML = text;
	}
	else if (document.layers)
	{
	  x = document.layers[obj];
	  x.document.open();
	  x.document.write("<span style='font-size:9px;font-family:Arial;'>"+text+"</span>");
	  x.document.close();
	}
	
	var c=0;
	var bDiv = document.getElementById("order4_frame");
	var rim=bDiv.childNodes.length;
	if(browser=="Microsoft Internet Explorer")
	{
	  for (var i=(rim-1);i>=1;i--)
	  {
	    bDiv.removeChild(bDiv.childNodes[i]);
	  }
	}
	else
	{
	  for (var i=(rim-1);i>1;i--)
	  {
	    bDiv.removeChild(bDiv.childNodes[i]);
	  }
	}
	for(a=0;a<size_count;a++)
	{ 
	  for(b=0;b<size[a];b++)
	  {
	    c++;
			if(result=="true" || category=="threenumber" || category=="fournumber" || rc!="false")
	    {
			  if(category=="threenumber" || category=="fournumber" || rc!="false")
				  text2="<tr><td width='25px'>"+sname[a]+"</td><td><input type='text' onchange='setcustomform();' name='number"+c+"' id='number"+c+"' size='1' style='width:30px;font-size:9px;' maxlength='2' /></td></tr>";
			  if(result=="true" && combo=="names")
	        text2="<tr><td width='25px'>"+sname[a]+"</td><td><input type='text' onchange='setcustomform();' name='name"+c+"' id='name"+c+"' size='1' style='width:175px;font-size:9px;' maxlength='14' /></td></tr>";
		    if(result=="true" && combo=="names" && (category=="threenumber" || category=="fournumber" || rc!="false"))
		      text2="<tr><td width='25px'>"+sname[a]+"</td><td><input type='text' onchange='setcustomform();' name='name"+c+"' id='name"+c+"' size='1' style='width:175px;font-size:9px;' maxlength='14' /></td><td><input type='text' onchange='setcustomform();' name='number"+c+"' id='number"+c+"' size='1' style='width:30px;font-size:9px;' maxlength='2' /></td></tr>";
		    if(result=="true" && combo=="nums")
		      text2="<tr><td width='25px'>"+sname[a]+"</td><td><input type='text' onchange='setcustomform();' name='number"+c+"' id='number"+c+"' size='1' style='width:30px;font-size:9px;' maxlength='2' /></td></tr>";			  
        if(result=="true" && combo=="both")
	        text2="<tr><td width='25px'>"+sname[a]+"</td><td><input type='text' onchange='setcustomform();' name='name"+c+"' id='name"+c+"' size='1' style='width:175px;font-size:9px;' maxlength='14' /></td><td><input type='text' onchange='setcustomform();' name='number"+c+"' id='number"+c+"' size='1' style='width:30px;font-size:9px;' maxlength='2' /></td></tr>";
				nextB=document.createElement("b"); 
        nextB.setAttribute("id", "b"+c+"num");
		    nextB.setAttribute("style", "font-size:9px;font-family:Arial;"); 
			  bDiv.appendChild(nextB); 
        obj2="b"+c+"num";
				text2="<table>"+text2+"</table>";
	    }
	    else
	    {
	      text2="";
	      obj2="inside";
			}
			if (document.getElementById)
	    {
		    x = document.getElementById(obj2);
		    x.innerHTML = "";
		    x.innerHTML = text2;
	    }
	    else if (document.all)
	    {
		    x = document.all[obj2];
		    x.innerHTML = text2;
	    }
	    else if (document.layers)
	    {
		    x = document.layers[obj2];
		    x.document.open();
		    x.document.write("<span style='font-size:9px;font-family:Arial;'>"+text2+"</span>");
		    x.document.close();
	    }
	  }
	}
	document.getElementById('c').value=c;
}


