/* Collezione di funzioni per JavaScript1.2
 * Programmed by Dmitri Sologoubenko
 * Copyright (c) 1999 by MediaCoop a.r.l.
 * Gall. L. Da Vinci, 33 54100 Massa (MS) Italy
 * http://www.mediacoop.com/
 * info@mediacoop.com
 */

/*****************************************
 * UsatoGratuito - Sistema Annunci       *
 *****************************************
 * Written by Dmitri Sologoubenko        *
 *---------------------------------------*
 * Copyright (C) 1999 by MediaCoop a.r.l.*
 * Tutti i diritti riservati.            *
 * Ogni tentativo di copia, modifica o   *
 * ditribuzione dei sorgenti sottostanti *
 * senza esplicito consenso della        *
 * MediaCoop a.r.l. e' considerato come  *
 * violazione della legge sui diritti    *
 * d'autore.                             *
 *****************************************/

/* FUNCTION Chop(str)
 * Desc: 	strips initial and final spaces from a given string.
 * Parm: 
 * 			str = string to chop
 * RetVal: 	the chopped string
 * Note: 	the string passed is not modified.
 */
function Chop(str) {
	str = str.replace("(^\\s*)(\\S+)(\\s*$)", "$2");
	return str;
}

function IsVoid(str) {
	if (str.match("\\S")) return false;
	else return true;
}

/* FUNCTION GetBrowser()
 * Desc:	returns the browser name and version
 * Parm:	none
 * RetVal:	the associative array containig the following info
 *				"Name"		=> ex. "Microsoft Internet Explorer", "Netscape" 	- string
 *				"Version"	=> ex. 4.05			- double
 * Note:	none
 */
 function GetBrowser() {
 	var arr = new Array();
	arr["Name"] = navigator.appName;
	arr["Version"] = parseFloat(navigator.appVersion);
	return arr;
 }
