function taskWindow(incURL, incWidth, incHeight)          // open_new_win()
{
		if (incWidth != 'undefined' && incWidth != "")
    {
      theWidth = incWidth;
		}
		else
    {
      theWidth = 600;
		}
		if (incHeight != 'undefined' && incHeight != "")
    {
      theHeight = incHeight;
		}
		else
    {
      theHeight = 550;
		}
		newWindParamsStr = "toolbar=no,width=" + theWidth + ";,height=" + theHeight + ";,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no";
		newWindow =   window.open(incURL,"taskWindow",newWindParamsStr);
}
function taskSubWindow(url)          // open_new_win()
{
	taskSubWindow =   window.open(url,"taskSubWindow","toolbar=no,width=300;,height=400;,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no");
}
function closeAndRefreshOpener()          // close this window and refresh opening window so new 
{
	opener.location.reload()
	this.close()
} 
function getRadioValue(ref)
{
	for (var i = 0; i < ref.length; i++)
		if (ref[i].checked)
			return ref[i].value;
}