function MM_changeProp(objId,x,theProp,theValue) { //v9.0
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}

function MM_displayStatusMsg(msgStr) { //v1.0
  window.status=msgStr;
  document.MM_returnValue = true;
}

function sendTo(site)
{
	var title = encodeURIComponent(window.document.title);
	var href = encodeURIComponent(window.document.location.href);
	var components = window.document.location.href.split('/');	
	var tags = '';	
	if(components[6] != '')
	{
		tags += components[6]+' ';
	}
	if(components[7] != '')
	{
		tags += components[7]+' ';
	}
	if(components[8] != '')
	{
		tags += components[8]+' ';
	}			
	tags = encodeURIComponent(tags);	
	switch(site)
	{
		case 'meneame' :
			url = 'http://meneame.net/submit.php?url='+href;
			break;
			
		case 'digg' :
			url = 'http://digg.com/submit?phase=2&url='+href+'&title='+title;
			break;
			
		case 'delicious' :
			url = 'http://del.icio.us/post?url='+href+'&title='+title;
			break;
			
		case 'technorati' :
			url = 'http://www.technorati.com/search/'+tags+'?sub=postcosm';
			break;
			
		case 'yahoo' :
			url = 'http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+href+'&t='+title+'&ei=UTF-8';
			break;
					
		case 'fresqui' :
			url = 'http://tec.fresqui.com/post?url='+href+'&title='+title;
			break;		
	}
	window.open(url);
}


function enviar(idNoticia, idioma, seccion) {
	var cadenaURL = "/interficie/formEnviaAmigo.php?pNoticiaId=" + idNoticia + "&pSeccion=" + seccion + "&pIdioma=" + idioma;

	window.open(cadenaURL , "enviarAmigo" , "width=370,height=200"); // ,scrollbars=NO,resizable=NO,menubar=NO,status=NO,titlebar=NO,toolbar=NO"); 
}

function imprimir() {
    window.print();
}

