a = 0;

function openURL()
{ 
// grab index number of the selected option
selInd = document.webSelection.LOCATION.selectedIndex; 

// get value of the selected option
goURL = document.webSelection.LOCATION.options[selInd].value;

// redirect browser to the grabbed value (hopefully a URL)
// Use this to load the url in the same window
// top.location.href = goURL; 
// Use this to load the url in a new window
if((goURL!="/")&&(goURL!=""))
	{
	a = a +1;
	winProps = "status=1,top=1,toolbar=1,scrollbars=1,location=1,menubar=1,directories=1,left=0,top=0,width=700,height=600, resizable=1";
	window.open(goURL, "SPWindow" + a, winProps);
	}
else
	alert("Por favor, seleccione su destinación ->\nPlease select your destination ->");
}

function getBrowseWidth()
{
 if (window.innerWidth) return window.innerWidth;
 else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
 else return 0;
}

function getBrowseHeight()
{
 if (window.innerHeight) return window.innerHeight  ;
 else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
 else return 0;
}
