function CreateBookmarkLink() {

 title = document.title; 
 url = window.location.href;
 
    if (window.sidebar){ // Mozilla Firefox Bookmark
        window.sidebar.addPanel(title, url,"");
    }else if( window.external ){ // IE Favorite
        window.external.AddFavorite( url, title); 
	}
   
 }
 

 
 
 function linkTracker (id){
	var url					= '/bannerview.php?id='+id;
	var pagina_requerida 	= false;
    if (window.XMLHttpRequest) {
        pagina_requerida = new XMLHttpRequest ();
    } else if (window.ActiveXObject) {
        try {
            pagina_requerida = new ActiveXObject ("Msxml2.XMLHTTP");
        }
        catch (e) {
            try {
                pagina_requerida = new ActiveXObject ("Microsoft.XMLHTTP");
            }
            catch (e) {
            }
        }
    } 
	else
    return false;
    pagina_requerida.open ('GET', url, true);
    pagina_requerida.send (null);
}

function inicio(w,h,foto) {
	// w es la anchura de la imagen
	// h es la altura de la imagen
	// foto el nombre del htm donde esta la foto
        var ancho,alto,w2,h2;
		w2=w/2
		h2=h/2
		ancho=screen.width/2-w2;
		alto=screen.height/2-h2;
		
		 window.open(""+foto+"","","width="+w+",height="+h+",left="+ancho+",top="+alto+"");
		  }
