

function popPartenaires() {
    var w=300;
    var h=490;
    var leftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    var topPosition = (screen.height) ? (screen.height-h)/2 : 0;
    var popSos=window.open('/geomatic/pages/popup/popPartenaires.htm','popSos','width='+w+',height='+h+',top='+topPosition+',left='+leftPosition+',scrollbars=no,resizable=no,status=no,location=no,toolbar=no');
    popSos.focus();
}

function popFormation() {
    var w=300;
    var h=490;
    var leftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    var topPosition = (screen.height) ? (screen.height-h)/2 : 0;
    var popSos=window.open('/geomatic/pages/popup/popFormation.htm','popSos','width='+w+',height='+h+',top='+topPosition+',left='+leftPosition+',scrollbars=no,resizable=yes,status=no,location=no,toolbar=no');
    popSos.focus();
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;

  for (i=0; i<(args.length-2); i+=3){
    if (document.layers){
	  	obj	= document.layers[args[i]];
    } else if (document.all){
		obj	= document.all(args[i]);
    } else if (document.getElementById){
		obj	= document.getElementById(args[i]);
    }
	
  	if (obj!=null) {
		v=args[i+2];
    	if (obj.style) {
			obj=obj.style;
			v=(v=='show')?'visible':(v='hide')?'hidden':v;
		}
    	obj.visibility=v;
	}
  }
}


function changeStyleById(id,bgc,cur,col,txd){
    if (document.getElementById) {
        var nodeObj = document.getElementById(id)
        nodeObj.style.backgroundColor = bgc;
//        nodeObj.style.cursor = cur;
        nodeObj.style.color = col;
        nodeObj.style.textDecoration = txd;
    } else {
        var nodeObj = eval('document.' + id );
        nodeObj.style.bgColor = bgc;
//        nodeObj.style.cursor = cur;
        nodeObj.style.color = col;
        nodeObj.style.textDecoration = txd;
    }
}


// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
var browser_type=navigator.appName
var browser_version=parseInt(navigator.appVersion)

//////
function formationProduits()
	{
	if(document.formationForm.formationList.value=="")
		{
		alert("Choisissez une formation");
		return false;
		}
		else
		{
		document.location='/geomatic/pages/'+document.formationForm.formationList.value+'.asp'
		}
	}