function popup(name,URL,width,height) {
    name = window.open(URL,name,'left=0,top=0,width='+width+',height='+height+',resizable=no,titlebar=yes,menubar=no,status=no,scrollbars=yes,toolbars=no,location=no');
    name.focus();
    return false;
}

function opener_location(URL) {
    window.opener.location = URL;
    return false;
}

//  Funzioni di utilità per le stringhe
//  Utilizzo: myString.trim();
String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
	return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
	return this.replace(/\s+$/,"");
}