function resetValue(obj)
{
	var value = obj.value;
	if (value=="Keyword Or Item #")
	{
		obj.value="";
	}
}

	function checkcolor(x)
	{
		var alertit = false;
		if (x=="0")
		{
			alertit = true;
			for (i=0;i<20;i++)
			{
				obj = document.getElementById("div_option_colorh_"+i);
				if (obj)
				{
					if (obj.style.display=='block')
					{
						if (document.getElementById("color_id_"+i).options.length==1)
							alertit = false;
					}
				}
			}
		}

		if (alertit == true)
		{
			alert('Please select a color option');
			return false;
		}
		else
			return true;
	}


	function checkfinish(x)
	{
		var alertit = false;
		if (x=="0")
		{
			alertit = true;
			for (i=0;i<20;i++)
			{
				obj = document.getElementById("div_option_finish_"+i);
				if (obj)
				{
					if (obj.style.display=='block')
					{
						if (document.getElementById("finish_id_"+i).options.length==1)
							alertit = false;
					}
				}
			}
		}

		if (alertit == true)
		{
			alert('Please select a finish option');
			return false;
		}
		else
			return true;
	}


  function dofillOrder1(f)
  {
    if (f.chk_order_a.checked)
	{
      f.txt_1_7.value=document.frm_order1.txt_1_4.value;
      f.txt_1_8.value=document.frm_order1.txt_1_5.value;
      f.txt_1_9.value=document.frm_order1.txt_1_6.value;
      f.combo_6.selectedIndex=document.frm_order1.combo_4.selectedIndex;
      f.combo_7.selectedIndex=document.frm_order1.combo_5.selectedIndex;

	  myOption=0;
	  for (i=f.rad_adr_billing.length-1; i > -1; i--) 
	  {
		if (f.rad_adr_billing[i].checked) 
		{
			myOption = i; i = -1;
		}
	  }

	  
	  f.rad_adr_shipping[myOption].checked = true;
	}
  }
