
	String.prototype.trim  = trim;
	String.prototype.ltrim = ltrim;
	String.prototype.rtrim = rtrim;

	function trim()
	{
		var Str = this.ltrim();
			Str = Str.rtrim();
		return Str;
	}

	function ltrim()
	{
		var strRegExp = /^\s+/;
		var Str = this.replace(strRegExp,'');
		return Str;
	}

	function rtrim()
	{
		var strRegExp = /\s+$/;
		var Str = this.replace(strRegExp,'');
		return Str;
	}
	
	function requerido(campo,nome){
		if(document.frm[campo].value.toString().trim()==""){
			if(nome!=""){
				alert("O campo \"" + nome + "\" é requerido." );
			}else{
				alert("O campo \"" + campo + "\" é requerido." );
			}
			document.frm[campo].value="";
			document.frm[campo].focus();
			return false;
		}else{
			return true;
		}
	}
	
	function LoadDemo()
{
	var href = "http://www.justi2i.com/demo";
//	var w = (window.screen.availWidth * 1.0) / 2.0
//	var h = w * (PPTSld.g_origH * 1.0) / PPTSld.g_origW
	window.open( href,null,"fullscreen=yes,toolbar=0" );
//	win = window.open( href,null,"toolbar=0,resizable=1,top=0,left=0," + "width="+ w + ",height=" + h );
//	if( PPTSld.g_animUseRuntime )
	//		win.document.body.PPTSldFrameset=window;
//	}
//	else
//	{
//		win = window.open( href,null,"fullscreen=yes" );
//		if( PPTSld.g_animUseRuntime )
//			win.document.body.PPTSldFrameset=window;
//	}
}
