function selflink() {
   
	   var l  = '';
	   for (i = 0; i < arguments.length; i++) { 
		  l = l + arguments[i];
	   }
	   if (l.charAt(0)=='#') l = l.substring(1,l.length);
	  
	   window.location.href=specialescape(l);   
	
   
}
function blanklink() {
   
	   var l  = '';
	   for (i = 0; i < arguments.length; i++) { 
		  l = l + arguments[i];
		
	   }
	   if (l.charAt(0)=='#') l = l.substring(1,l.length);
	 
	   
	   var popDetail= window.open(l);
	
}


// escape some character
function specialescape(s) {
    // Don't treat cgi-style URLs because of all the '&' and likewise problems
    if (s.indexOf('?') == -1) {
        var sDomain = "";
        var sQuery  = s;
      
        // Strip off domain if exists (else we would encode the ':')
        // There might be port numbers ("http://some.domain.com:8080")!
        if (s.indexOf("://") != -1) {
            // 1st slash after the domain = beginning of query string
            var n = s.indexOf("/", s.indexOf("://")+3);
            if (n > -1) {
                sDomain = s.substring(0, n);
                sQuery  = s.substring(n);
            }
        }
        
        // Unescape (does nothing if it wasn't escaped, but if it was, we avoid double escaping)
        sQuery = unescape(sQuery);
        
        // Escape, so we don't rely on the browser to do this (some IE versions don't!)
        sQuery = escape(sQuery);
        
        // Rejoin with eventual domain
        s = sDomain + sQuery;
    }
    return s;   
}

function Redir()
{
	
}

function clicpic(param, page)
	{
		if(document.all)
		{
			//Internet Explorer
			var XhrObj = new ActiveXObject("Microsoft.XMLHTTP") ;
		}//fin if
		else
		{
		    //Mozilla
			var XhrObj = new XMLHttpRequest();
		}//fin else

		//définition de l'endroit d'affichage:
		var content = document.getElementById("nulll");
		
		XhrObj.open("POST", page);

		//Ok pour la page cible
		XhrObj.onreadystatechange = function()
		{
			if (XhrObj.readyState == 4 && XhrObj.status == 200)
				content.innerHTML = XhrObj.responseText ;
		}

		XhrObj.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=iso-8859-1');
		XhrObj.send(param);
	}//fin fonction SendData
	
function $(id){return document.getElementById(id);}
function toggle(id,e)
{xxx=(navigator.appName.substring(0,3)=="Net")?e.pageX:event.x+document.body.scrollLeft;yyy=(navigator.appName.substring(0,3)=="Net")?e.pageY:event.y+document.body.scrollTop;if(typeof($(id).style.left)=='string')
{$(id).style.left=(xxx+10)+'px';$(id).style.top=(yyy+10)+'px';}
else
{$(id).style.left=(xxx+10);$(id).style.top=(yyy+10);}
$(id).style.display=($(id).style.display=='none')?'':'none';}
