
function getCheckedValue(radioObj) {
	if(!radioObj)
		return "";
	var radioLength = radioObj.length;
	if(radioLength == undefined)
		if(radioObj.checked)
			return radioObj.value;
		else
			return "";
	for(var i = 0; i < radioLength; i++) {
		if(radioObj[i].checked) {
			return radioObj[i].value;
		}
	}
	return "";
}



function flagFill()
{
//alert("flagFill()");
var urgency_flg="";
//For Drop Down timing
	var time1=document.GEForm.timing.value;
	//alert("Combo_timing=="+time1);
	//alert();
//For  Fund radio button
	var fund=getCheckedValue(document.GEForm.radio2);
	
	if ( fund== "Y"){
	//alert("Radio fund yes = "+fund)
	}
	else
	{
	//alert("Radio fund no = "+fund)
	}
//For Check Box sales person
	var sales =document.GEForm.checkbox.checked;
	if ( sales== true){
		sales=document.GEForm.checkbox.value;
		//alert("Sale=="+sales);
		}
		else{
		//alert("Sale=="+sales);
		
		}
	////	
	if(time1=="0-3" || time1=="'3-6" || (time1=="" && sales=="Y" && fund=="Y"))
	{
		urgency_flg="H";
		document.GEForm.UF.value=urgency_flg;
		//alert("In H");
		return true;
	}
	if(time1=="'6-12" || (time1==">12" && sales=="Y") || (time1=="" && sales=="Y") || (time1==">12" && fund=="Y") )//|| (fund=="0" && sales=="Y")
	{
		urgency_flg="M";
		document.GEForm.UF.value=urgency_flg;
		//alert("In M");
		return true;
	}
	if(time1==">12")
	{
		urgency_flg="L";
		document.GEForm.UF.value=urgency_flg;
		//alert("In L");
		return true;
	}
	if(time1=="" && sales!="Y" && fund!="Y")
	{
		urgency_flg="HL";
		document.GEForm.UF.value=urgency_flg;
		//alert("In HL");
		return true;
	}
		/////////
}
