function GoToURL(obj, link) {
		var selection = obj.options[obj.selectedIndex].value;
		window.location = link + selection;
	}
	
function resizeImage(image_id, NewWidth, MaxHeight, cur_width, cur_height) {
	var picture = document.getElementById(image_id);
	maxWidth = 75;
	var w = cur_height;
	var h = cur_width;
	
	if (w <= NewWidth && h <= MaxHeight) return;
	//alert(image_id);
	
	var NewHeight = h * NewWidth / w;
	if (NewHeight > MaxHeight)
	{
		// Resize with height instead
		NewWidth = w * MaxHeight / h;
		NewHeight = MaxHeight;
	}
	
		
	picture.width = NewWidth;
	picture.height = NewHeight;

}	

function setOpacityS( value ) {
	document.getElementById("popup_infoS").style.opacity = value / 10;
	document.getElementById("popup_infoS").style.filter = 'alpha(opacity=' + value * 10 + ')';
}

function fadeInMyPopupS() {
 for( var i = 0 ; i <= 100 ; i++ )
   setTimeout( 'setOpacity(' + (i / 10) + ')' , 6 * i );
}

function fadeOutMyPopupS() {
 for( var i = 0 ; i <= 100 ; i++ ) {
   setTimeout( 'setOpacity(' + (10 - i / 10) + ')' , 6 * i );
 }

 setTimeout('popupInfoCloseS()', 800 );
}

function popupInfoS() {
	document.getElementById("popup_infoS").style.display = "block";
}

function popupInfoCloseS() {
	document.getElementById("popup_infoS").style.display = "none";
}