/**
 * Simple dropdown box jumper, taken from the original careline forms
 *
 * @param targ 		Frame/Window target
 * @param selObj	The selected object
 * @param restore	Restore a dropdown box
 * @param target	If a new window should be opened
 */
function jump(targ,selObj,restore, target){ //v3.0
	
	
	if (selObj.options[selObj.selectedIndex].value != "#")
	{
		if (!target)
		{
			if (selObj.options[selObj.selectedIndex].value != '')
			{
			  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
			  if (restore) selObj.selectedIndex=0;
			}
		} else {
			window.open(selObj.options[selObj.selectedIndex].value);
		}
	}
}
	
/**
 * Changes a hidden frmProductName with the innerHTML of a form label
 *
 * @param sel 		The radio button
 * @param isLabel	Used on a label, if is set to true just use the object as the label
 */	
function chgProductName(sel, isLabel)
{
	if (!isLabel)
	{
		object 		= "label_" + sel.value;
		contents 	= document.getElementById(object).innerHTML;
		document.getElementById('frmProductname').value = contents;
	} else {
		document.getElementById('frmProductname').value =  sel.innerHTML;
	}
}

