String.prototype.Trim = function () 
{
	return (this.replace(/\s+$/,"").replace(/^\s+/,""));
};

function CancelProp(myevent)
{
	/* this script is used to stop eventpropagation */
	if(myevent.stopPropagation)
	{
		myevent.stopPropagation();
	}else
	{
		myevent.cancelBubble=true;
	}
}
