<!--


function _IsOK(obj, obj_type)
{
	if (obj_type == "TEXT" || obj_type == "PASSWORD")
	{
		if (obj.value.length == 0)
		{
			return false;
		}
		else
		{
			return true;
		}
	}
	if (obj_type == "EMAIL")
	{
		if (obj.value.indexOf("@") == -1 || obj.value.length == 0)
		{
			return false;
		}
		else
		{
			return true;
		}
	}
	if (obj_type == "SELECT")
	{
        for (i=0; i < obj.length; i++)
	    {
			if (obj.options[i].selected && obj.options[i].value != "-1")
			{
				return true;
			}
		}
       	return false;
	}
	if (obj_type == "RADIO" || obj_type == "CHECKBOX")
	{
		for (i=0; i < obj.length; i++)
		{
			if (obj[i].checked)
				return true;
		}
		return false;
	}
}

function _IsOKDate(objDay, objMonth, objYear)
{
	var aDaysInMonth = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
	// don't forget that, in javascript, january is month 0, december is 11.
	var oContinued;
	if ((objDay > 0) && (objMonth > 0) && (objYear > 0))
	{
		oContinued = true;
	}
	else
	{
		oContinued = false;
	}
	if (oContinued)
	{
		if (objMonth == 2)
		{
			if (((objYear % 4 == 0) && (objYear % 100 != 0)) || (objYear % 400 == 0))
			{
				aMaxDaysInMonth = 29;
			}
			else
			{
				aMaxDaysInMonth = 28;
			}
		}
		else
		{
			aMaxDaysInMonth = (aDaysInMonth)[objMonth-1];
		}
		if (aMaxDaysInMonth >= objDay)
		{
			oContinued = true;
		}
		else
		{
			oContinued = false;
		}
	}
	return oContinued;
}


function confirmDelete(oMessage, oURL)
{
	var ans = window.confirm(oMessage + "\n\nPress OK to continue.");
	if(ans)
	{
		document.location = oURL;
	}
}

//-->
