<!--

function setLang(l) {
	// Called from links which switch the language.
	// Sets cookie with "lang=fr" or other language code, valid for 1 year, on all the site
	var expire = new Date();
    expire.setTime(expire.getTime() + 3600000*24*365);
    document.cookie = 'lang='+l+";expires="+expire.toGMTString()+";path=/";
}

var lsdd_popup = null;

function closeWin(){
    if (lsdd_popup != null){
        if(!lsdd_popup.closed)
            lsdd_popup.close();
    }
}

function Popup(url){
    
    closeWin();
    
//  if (type == "fullScreen"){
//        strWidth = screen.availWidth - 10;
//        strHeight = screen.availHeight - 160;
//    }
    
//    var tools="";
//    if (type == "standard" || type == "fullScreen") tools = "resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,width="+strWidth+",height="+strHeight+",top=0,left=0";
//    if (type == "console") tools = "resizable,toolbar=no,location=no,scrollbars=no,width="+strWidth+",height="+strHeight+",left=0,top=0";
    var tools="resizable,toolbar=no,location=no,scrollbars=yes,width=450,height=270";
    newWindow = window.open(url, 'lsdd_popup', tools);
    newWindow.focus();
}//-->

