﻿function FindControlById(ctlId)
{
	if (ctlId == null)
	{
		return null;
	}
	else
	{
		return document.getElementById(ctlId);
	}
}

function GetSelectedValueById(ctlId)
{
	var sel = FindControlById(ctlId);
	if (sel == null || sel.options == null || sel.options.length < 1)
	{
		return null;
	}
	else
	{
		for (var i = 0; i < sel.options.length; i++)
		{
			var opt = sel.options[i];
			if (opt.selected == true)
			{
				return opt.value;
			}
		}
	}
}



function ShowWarningMessage(title, content)
{
	alert(content);
}
function ShowWarning(title, content)
{
	alert(content);
}



function ShowServerWarningMessage(content)
{
	ShowWarningMessage("", content);
}
function ShowServerWarning(content)
{
	ShowWarning("", content);
}



function ShowClientWarningMessage(content)
{
	ShowWarningMessage("", content);
}
function ShowClientWarning(content)
{
	ShowWarning("", content);
}



function ShowConfirm(title, content)
{
	return window.confirm(content);
}



function ShowClientConfirm(content)
{
	return ShowConfirm("", content);
}
