	function verimagen (URL){
		window.open(URL,"Imagen","width=850,height=650,top=50,left=50,resizable=YES,scrollbars=YES,Titlebar=YES")
	}
	
	function abreventanamail(URL) { //v2.0
  window.open(URL,"Enviaraunamigo", "width=450,height=300,top=50,left=50,resizable=NO,scrollbars=NO,Titlebar=YES");
	}
	
	function abreventanaimprimirnoticia(URL){
	window.open(URL,"ImprimirNoticia","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=480,height=400,left=100, top=100,screenX=100,screenY=100");
	}

	function revisamailnoticia(frm)
	{
		var mensaje='Por favor, inserta el dato ';

		if(frm['tunombre'].value==''){
			alert(mensaje + "'Tu Nombre'");
			frm['tunombre'].focus();
			return false;
		}
		if(!check_email(frm['tumail'].value)){
			alert(mensaje + "'Tu Email'");
			frm['tumail'].focus();
			return false;   
		}  
		if(frm['tumail'].value==''){
		   alert(mensaje + "'Tu Email'");
		   frm['tumail'].focus();
		   return false;
		}
		if (frm['sunombre'].value==''){
			alert(mensaje + "'Su Nombre'");
		   	frm['sunombre'].focus();
		   	return false;
		}
		if(!check_email(frm['sumail'].value)){
			alert(mensaje + "'Su Email'");
			frm['sumail'].focus();
			return false;   
		}  
		if(frm['sumail'].value==''){
		   alert(mensaje + "'Su Email'");
		   frm['sumail'].focus();
		   return false;
		}
		frm.submit();
	}
	
	function revisacontactowebmaster(frm)
	{
		var mensaje='Por favor, inserta el dato ';

		if(frm['tunombre'].value==''){
			alert(mensaje + "'Tu Nombre'");
			frm['tunombre'].focus();
			return false;
		}
		if(!check_email(frm['tumail'].value)){
			alert(mensaje + "'Tu Email'");
			frm['tumail'].focus();
			return false;   
		}  
		if(frm['tumail'].value==''){
		   alert(mensaje + "'Tu Email'");
		   frm['tumail'].focus();
		   return false;
		}
		if(frm['comentarios'].value==''){
		   alert(mensaje + "'Comentarios'");
		   frm['comentarios'].focus();
		   return false;
		}
		frm.submit();
	}

	function check_email(address) 
	{ 
		if ( (address.indexOf ('@') == -1) || (address.indexOf ('.') == -1)) return false;   
		return true;
	}
	
	function openit(url,name,w,h,x,y){
		stroptions = 'top='+y+',left='+x+',width='+w+',height='+h+',toolbar=no,scrollbars=no,resizable=no';
		tmp = window.open(url,name,stroptions);
	}
	
	
	function addBookmark(url, title) 
	{ 
	  if (!url) url = location.href; 
	  if (!title) title = document.title; 
  
	  //Gecko 
	  if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) window.sidebar.addPanel ("TransporteBCN.es", "http://www.transportebcn.es/", ""); 
	  //IE4+ 
	  else if (typeof window.external == "object") window.external.AddFavorite("http://www.transportebcn.es/", "TransporteBCN.es"); 
	  //Opera7+ 
	  else if (window.opera && document.createElement) 
	  { 
		var a = document.createElement('A'); 
		if (!a) return false; //IF Opera 6 
		a.setAttribute('rel','sidebar'); 
		a.setAttribute('href',url); 
		a.setAttribute('title',title); 
		a.click(); 
	  } 
	  else return false; 
	  
	  return true; 
	} 
		 