function GetObject(obj){
	isNS4 = (document.layers) ? true : false;
	isIE4 = (document.all && !document.getElementById) ? true : false;
	isIE5 = (document.all && document.getElementById) ? true : false;
	isNS6 = (!document.all && document.getElementById) ? true : false;

	if (isNS4){
	   elem = document.layers[obj];
	}
	else if (isIE4) {
	   elem = document.all[obj];
	}
	else if (isIE5 || isNS6) {
	   elem = document.getElementById(obj);
	}
	return elem;
}

function go_pagina(hrefPagina,ParametriRichiesta){
	if (GetObject("pg").type == "select-one"){
		var NrPg = GetObject("pg").options[GetObject("pg").selectedIndex].value;
	}
	else if (GetObject("pg").type == "text"){
		var NrPg = GetObject("pg").value;
	}
	location.href = hrefPagina + "?pg=" + NrPg + ParametriRichiesta;
}

function go_categoria(){
	var URL = GetObject("categoria").options[GetObject("categoria").selectedIndex].value;
	if (URL != "") location.href = URL;
}

function go_marca(){
	var URL = GetObject("marca").options[GetObject("marca").selectedIndex].value;
	if (URL != "") location.href = URL;
}

function go_assicurazione(){
	var URL = GetObject("assicurazione").options[GetObject("assicurazione").selectedIndex].value;
	if (URL != "") location.href = URL;
}

function go_urgente(){
	var URL = GetObject("urgente").options[GetObject("urgente").selectedIndex].value;
	if (URL != "") location.href = URL;
}

