// JavaScript Document
function fbs_click(t) 
		{
				u=location.href;
				//t=document.title;
				window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
				return false;
		}
		
function noticiaVotar(idNoticia, puntos)
{
	//txtRespuesta = idNoticia + ';' + puntos + ';';
	FAjax('fvotarnoticia.php' ,'capaContenedora','idNoticia=' + idNoticia + '&puntos=' + puntos,'POST'); 
}
function CambiarEstrella(obj)
 {        
 	var obj       =obj;        
 	var imagenIc   ="images/estrecizquierda.gif";       
 	var imagenDc   ="images/estrecderecha.gif";   	  
	       
	for(i=1;i<=obj;i++)
	  {             
		  if ( i%2 != 0 )
		  {              
			  document.getElementById( 'e'+i ).src=imagenIc;            
		  }
		  else
		  {              
			  document.getElementById( 'e'+i ).src=imagenDc;            
		  }         
	  }       
 }       
  
function swapOut()
{       
 	var imagenIc   ="images/estrecizquierda.gif";       
 	var imagenDc   ="images/estrecderecha.gif";   
 	var imagenIg   ="images/estregizquierda.gif";       
 	var imagenDg   ="images/estregderecha.gif";   	 
        
	for(i=1;i<=10;i++)
	{          
		if ( i%2 != 0 )
		{            
			document.getElementById( 'e'+i ).src=imagenIg;           
		}
		else
		{            
			document.getElementById( 'e'+i ).src=imagenDg;           
		}        
	}      
}


function ValidarForm()
{
	var hayErrores = true;
	 

	
	if ((document.fContacto.fEmail.value==""))
	{
		alert("Debe ingresar su Email.");
		return false; 
	}
	 
	if ( (document.fContacto.fNombre.value==""))
	{
		alert("Debe ingresar su Nombre y Apellido.");
		return false; 
	}
	

	
	return hayErrores;
}