

function hacerClk( url ) {
  window.open(url);
}

function hacerClk2(url) {

window.location = url ;
}

function cambiarCls( obj, classname, hand ) {
  if( hand ) { 
     obj.style.cursor = 'hand'; 
  }
  else {
     obj.style.cursor = 'default';
  }
 
  if( obj.className ) {
    obj.className = classname;
  }
  else {
    obj.setAttribute('class',classname);
  }
}

function hacerClk3(id, ancho,largo, path){

	var left = (1024-ancho)/2;
	var top = (768-largo)/2;
	var url = path+"/pages/ampliar_foto.php?id=" + id+'&ancho='+ancho+'&largo='+largo+'&path='+path;
	
	javascript:window.open(url, 'Editar', 'width='+ancho+', height='+largo+' top='+top+', left='+left+', location=no, scrollbars=no, toolbar=no, resizable=no');

} 

function hacerClk4(id,path){

	
	var url = path+"/pages/pop_up_negocio.php?id=" + id;
	javascript:window.open(url, 'Editar', 'width=600, height=500, scrollbars=no, toolbar=no, resizable=no, location=no, screenX=150, screenY=100, left=200, top=150');


}      

function votar(path){
	var url = path+"/pages/resultados_encuesta.php?votada=" + document.votoForm.votada.value;
	javascript:window.open(url, 'Editar', 'width=300, height=240, scrollbars=no, toolbar=no, resizable=no, location=no, screenX=150, screenY=100, left=150, top=100');

}


function recomendar(path){
	var url = path +"/pages/recomendar.php";
	javascript:window.open(url, 'Editar', 'width=375, height=240, scrollbars=no, toolbar=no, resizable=no, location=no, screenX=150, screenY=100, left=150, top=100');

}




function elegir(respuesta){
	document.votoForm.votada.value=respuesta;
}


function addToFavorite(favTitle){

  if ((navigator.appVersion.indexOf("MSIE") > 0) && (parseInt(navigator.appVersion) >= 4)) {

    window.external.AddFavorite(location.href, unescape(favTitle));

  }

}



