function ResetForm()
{
	document.forms[0].reset();
	ResetPageValidators();
	return false;
}

function ResetPageValidators()
{
  if ((typeof(Page_Validators) != "undefined") && (Page_Validators != null))
	{
		for (var index = 0; index < Page_Validators.length; index++)
		{
			var validator = Page_Validators[index];
			validator.isvalid = true;
			ValidatorUpdateDisplay(validator);
		}
	}
}

function getWindowWidth()
{		
	var width = 0;
	if (window.innerWidth)
	{
		if (width == 0 || width > window.innerWidth)
		{
			width = window.innerWidth;
		}
	}
	if (document.documentElement)
	{
		if (width == 0 || width > document.documentElement.clientWidth)
		{
			width = document.documentElement.clientWidth;
		}
	}
	if (document.body)
	{
		if (width == 0 || width > document.body.clientWidth)
		{
			width = document.body.clientWidth;
		}
	}
	return width;
}
function getWindowHeight()
{		
	var height = 0;
	if (window.innerHeight)
	{
		if (height == 0 || height > window.innerHeight)
		{
			height = window.innerHeight;
		}
	}
	if (document.documentElement)
	{
		if (height == 0 || height > document.documentElement.clientHeight)
		{
			height = document.documentElement.clientHeight;
		}
	}
	if (document.body)
	{
		if (height == 0 || height > document.body.clientHeight)
		{
			height = document.body.clientHeight;
		}
	}
	return height;
}
function getOperatingSystemName()
{
	var osName = "Unknown OS";
	if (navigator.appVersion.indexOf("Win")!=-1)
	{
		osName = "Windows";
	}
	if (navigator.appVersion.indexOf("Mac")!=-1)
	{
		osName = "MacOS";
	}
	if (navigator.appVersion.indexOf("X11")!=-1)
	{
		osName = "UNIX";
	}
	if (navigator.appVersion.indexOf("Linux")!=-1)
	{
		osName = "Linux";
	}
	return osName;
}