function openWin(url) {
	window.open(url);
}

/* Function to open a popup (no status bar, no address bar) 
 * The values width and height are optional.
 * Width is multiple of 190px. 30px is added for the scroll bar
 */
function openPopup(url, width, height) {
	var win;
	if (width == null)
		width = 3;
	if (height == null)
		height = 300;
	width = width * 190 + 30;
	win = window.open(url,'IDB','width='+width+',height='+height+',status=no,resizable=yes,scrollbars=yes');
	win.focus();
}

function changeSelect(sourceID, targetID, arrValues) {
	var selectedItem = $('#'+sourceID).get(0).selectedIndex;
	$('#'+targetID).empty();
	for(i=0;i<arrValues[selectedItem].length;i++){
		$('#'+targetID).append("<option value="+arrValues[selectedItem][i]+">"+arrValues[selectedItem][i+1]+"</option>");
		i++;
	}
}