function _gel( id )
{
	return document.getElementById( id );
}

function isSet( variable )
{
	return variable != null && typeof( variable ) != 'undefined';
}

String.prototype.trim=function()
{
    return this.replace(/^\s*|\s*$/g,'');
}

String.prototype.replaceAll=function(s1, s2) 
{ 
    return this.replace(new RegExp(s1,"g"), s2); 
}
