// Per referenziare la finestra
if (self.name == undefined) window.name = "Inside";

// original code by Bill Trefzger 12/12/96
function go1(){
	if (document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value != "none") {
		location = document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value
	}
}

// Apre una finestra popup
function popWin (url, name, width, height, titlebar, status, scrollbars, resizable, x, y) {
	var parms;
	
	parms = 'height=' + height + ',width=' + width + ',dependent=yes,titlebar=' + titlebar + ',status=' + status + ',scrollbars=' + scrollbars + ',resizable=' + resizable
	popUp = window.open(url, name, parms);

	if (x == -1 && y == -1) {
		x = (window.screen.width - width) / 2;
		y = (window.screen.height - height) / 2;
	}

	if (x != -1 && x != null && x != undefined && y != -1 && y != null && y != undefined) {
		if (name != 'InsideNoMove') {
			popUp.moveTo(x,y);
		}
	}
}
// Menu Select
function ApriURL(pMenu) {
	box = pMenu;
	params = box.options[box.selectedIndex].value;
	paramsArray = params.split(";");
	destination = paramsArray[0];
	target = paramsArray[1];
	popupParams = paramsArray[2];
	
	if (destination) {
		theWin = null;
	
		switch (target) {
			case '_self':
				theWin = self;
				break;
			case '_top':
				theWin = top;
				break;
			case '_parent':
				theWin = parent;
				break;
			case '_blank':
				theWin = window.open();
				break;
			case 'popup':

				break;
			default:
				theWin = self;
		}
		
		if (target != 'popup') {
			theWin.location.href = destination;
		} else {
			popWin (url, name, width, height, titlebar, status, scrollbars, resizable, x, y);
		}
	}
	
}

