/* AUTEUR: J2P */
/* DATE DE CREATION: 22/06/00 */

browserName = navigator.appName;

browserVer = parseInt(navigator.appVersion);

function netie(net, ie) {
  if ((navigator.appVersion.substring(0,3) >= net && navigator.appName == 'Netscape' && net != -1) || (navigator.appVersion.substring(0,3) >= ie && navigator.appName.substring(0,9) == 'Microsoft' && ie != -1))
    return true;
else return false;
}


rolloVer = ( ( browserName == "Netscape" && browserVer >= 3 ) || ( browserName == "Microsoft Internet Explorer" && browserVer >= 4 ) ) ? 1 : 0;

focusVer = ( browserName == "Netscape" && browserVer >= 3 ) ? 1 : 0;


function AffiBulle(url) {
        var civiewerpop = window.open (url,'civiewer','location=no,toolbar=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no,width=400,height=600');
        if ( focusVer)
                { civiewerpop.focus(); }
}

function AffiBulleVar(url,w,h) {

        var civiewerpop = window.open (url,'civiewer','location=no,toolbar=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no,' + w + ','+h);
        if ( focusVer)
                { civiewerpop.focus(); }
}



function AffiFen(url) {
        var civiewerpop = window.open (url,'civiewer','location=yes,toolbar=yes,directories=no,menubar=yes,resizable=yes,scrollbars=yes,status=yes,width=800,height=600');
        if ( focusVer)
                { civiewerpop.focus(); }
}



function Go () {
	if ( document.somform.sommaire.options[document.somform.sommaire.selectedIndex].value != "" ) {
	
		myurl = document.somform.sommaire.options[document.somform.sommaire.selectedIndex].value;

		if ( document.somform.sommaire.options[document.somform.sommaire.selectedIndex].value.substring(0,4) == "http" ) {
			civiewer(myurl);
		}
		else {
			top.location.href = myurl;
		}
	}
	
	else {	
		return null;
	}
}

