function confirmAction(question, url)
{
	if(confirm(question))
	{
		document.location.href = url;	
	}
}


function confirmSelectAction(select, question)
{
	var url = select.options[select.options.selectedIndex].value;

	if (url == "0") {
		return false;
	} else {
		if (question != '') {
			if(confirm(question)) {
				document.location.href = url;	
			}	
		} else {
			document.location.href = url;
		}
	}
}


function onChangeSelect(formId, select)
{
	var Value = select.options[select.options.selectedIndex].value;

	if (Value == "0") {
		return false;
	} else {
		document.getElementById(formId).submit();
	}
}
