
function setFieldValue(chkBox, fileName) {
	sField = fileName + "__" + chkBox.name
	formField = document.getElementById(sField);
	
	if(chkBox.checked) { formField.value = "Y"; }
	else { formField.value = ""; }

}

function OpenInfoWindow(sUrl, iWidth, iHeight)
{
	window.open(sUrl,'','status=no,scrollbars=yes,location=no,menubar=no,toolbar=no,resizable=yes,width='+iWidth+',height='+iHeight+',top=10,left=100');
	}
function Hilight(oObj, bState)
{
  if (bState)
  { 
    oObj.className="Hilite"; 
  }
  else 
  {
    oObj.className="Data"; 
  }
}

function RefreshClose()
	{
		opener.location.reload(true);
		window.close();
	}
	
function CheckPopupAllowed ()
	{
		winHandle=window.open('zzPopuptest.htm' + "?newwin=true", "_top", "width="+wwidth+",height="+wheight+",location=0,menubar=0,resizable=no,scrollbars=no,status=yes,titlebar=no,dependent=yes");
		if(winHandle==null){
			alert("Error: While Launching New Window...nYour browser maybe blocking up Popup windows. nn  Please check your Popup Blocker Settings");
		}
	}

function confirmAction(sMsg) {
	input_box = confirm(sMsg);
	return input_box;
}

