function _stopEvent(event)
{
	if (event == null)
	{
		event = window.event;
	}
	
	if (event.stopPropagation)
	{
		event.stopPropagation();
		event.preventDefault();
	}
	else
	{
		window.event.cancelBubble = true;
	}
}

function _stopEventPropagation(event)
{
	if (event == null)
	{
		event = window.event;
	}
	
	if (event.stopPropagation)
	{
		event.stopPropagation();
	}
	else
	{
		window.event.cancelBubble = true;
	}
}

function _navigateTo(url)
{
	window.location = url;
}

String.prototype.lpad = function(padString, length)
{
	var str = this;
	while (str.length < length) str = padString + str;
	return str;
}
 
String.prototype.rpad = function(padString, length)
{
	var str = this;
	while (str.length < length) str = str + padString;
	return str;
}
