	function openSecc(i)
	{
		document.location = 'seccion.asp?secc=' + i;
	}
	
	function OpenWindow(url, w, h)
	{
		var l = parseInt((screen.width - w)/2);
		var t = parseInt((screen.height - h)/2);
		var n = parseInt(Math.random() * 1000);
		var nw = window.open(url, "NewWindow" + n, "width=" + w + "px,height=" + h + "px,left=" + l + "px,top=" + t + "px");
	}
	
	function openCopyAvisoPolitica(tipo)
	{
		switch(tipo)
		{
			case 'A':
				OpenWindow("popup.asp?type=" + tipo, 390, 480);
				break;
			case 'C':
				OpenWindow("popup.asp?type=" + tipo, 390, 480);
				break;
			case 'P':
				OpenWindow("popup.asp?type=" + tipo, 390, 480);
				break;
		}
	}
	
	function OpenTarifa() {
	var t = 0;
	var l = 0;
	var w = window.screen.availWidth-10;
	var h = window.screen.availHeight-40;
	var status = 0;
	var menubar = 0;
	var location = 0;
	var scrollbar = 0;
	var resizable = 0;
	var sW = screen.width;
	var sH = screen.height;

    var url = "http://www.viper-sport.com/t-paper/tarifa-pesca/viper.html";
   
    if (url != ""){
		var win = window.open(url, '', 'top='+t+',left='+l+',width='+sW+',height='+sH+',menubar=0,location=0,resizable=0,scrollbar=0,border=0, fullscreen=0,status=0');
		try{
		}catch (e){
		}
		}
 }
