// JavaScript Document
// * GENERICO
// TRIM
function trim(s)
{
	return s.replace(/^\s*|\s*$/g,"");
}
// Alias trim();
function Trim(s) { return trim(s); }

//By JavaScript Kit (http://www.javascriptkit.com)
function isEmail(str)
{
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
	if (filter.test(trim(str)))
		return true
	else
		return false
}
// Alias isEmail()
function IsEmail(str){ return isEmail(str); }

function popup(mylink, windowname)
{
	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	   	href=mylink;
	else
   		href=mylink.href;
	window.open(href, windowname, 'width=550,height=400,scrollbars=no');
	window.focus;
	return false;
}
/*
var message = ""; 

function clickIE()
{ 
	if (document.all)
	{ 
    	(message); 
    	return false; 
    } 
} 

function clickNS(e)
{ 
	if (document.layers || (document.getElementById && !document.all))
	{ 
    	if (e.which == 2 || e.which == 3)
		{ 
      		(message); 
      		return false; 
     	} 
    } 
} 

if (document.layers)
{ 
	document.captureEvents(Event.MOUSEDOWN); 
    document.onmousedown = clickNS; 
}
else
{ 
    document.onmouseup = clickNS; 
    document.oncontextmenu = clickIE; 
} 
document.oncontextmenu = new Function("return false") 
*/