function openWindow(url,windowname,width,height,scroll) {
	window.open(url,windowname,'width='+width+',height='+height+',scrollbars='+scroll+',status=yes');
}

function openMapHome() {
	var width = screen.width;
	var height = screen.height;
	maps = window.open('http://www.concertosolutions.com/sites/jdoe/index.php?page=site&site=254&nomenu=yes&noheader=yes&group=search','maps','resizable=yes,status=no,width='+width+',height='+height);
	maps.focus();
}

function windowOpenFlyer() {
	window.open('http://www.concertosolutions.com/documents/flyer_sc_agent_9_711_2978.html','','width=800,height=480,scrollbars=yes,resizable=yes');
}

function windowOpenText(text_page) {
	window.open('http://www.concertosolutions.com/index.php?page=site&site=363&nomenu=yes&noheader=yes&text='+text_page,'','width=550,height=450,scrollbars=yes,resizable=yes');
}

function Trim(cadena) {
		if (cadena==null) return "";
		var s = 0;
		var e = cadena.length - 1;
		if (e < s) return '';
		for (var i=0; i < cadena.length; i++) {
		if ((cadena.charAt(i) != " ") && (cadena.charAt(i) != '\t')) {s = i; break;}
		}
		if (s == 0 && ((cadena.charAt(s) == " ") || (cadena.charAt(s) == '\t'))) return '';
		for (var i = cadena.length - 1; i >= 0; i--) {
		if ((cadena.charAt(i) != " ") && (cadena.charAt(i) != '\t')) {e = i; break;}
		}
		return cadena.substring(s,(e+1));
}

function isNumeric(cadena) {
	var numero = parseInt(cadena);
	numero = '' + numero;
	if (numero == cadena || '0'+numero == cadena) { return true; }
	else { return false; }
}

function lightElement(elementID, newClassName) {
	eval("document.all['" + elementID + "'].className = '" + newClassName + "'");
}