function Is (){   
    var agt=navigator.userAgent.toLowerCase()
    this.major = parseInt(navigator.appVersion)
    this.minor = parseFloat(navigator.appVersion)
    this.nav  = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1)))
    this.nav2 = (this.nav && (this.major == 2))
    this.nav3 = (this.nav && (this.major == 3))
    this.nav4 = (this.nav && (this.major == 4))
    this.ie   = (agt.indexOf("msie") != -1)
    this.ie3  = (this.ie && (this.major == 2))
    this.ie4  = (this.ie && (this.major == 4))
    this.opera = (agt.indexOf("opera") != -1)
    this.nav4up = this.nav && (this.major >= 4)
    this.ie4up  = this.ie  && (this.major >= 4)
	}
var is = new Is();
var LF = screen.availWidth-10 ;
var HF = screen.availHeight-65 ;
var winPref = "toolbar=no,menubar=yes,personalbar=no,location=no,status=yes,dependent=no,title=no,resizable=yes,screenX=0,screenY=0,scrollbars=yes,";
if (LF > 700) LF = 700;
function NouvF(codinst,portail) {
	if (codinst=='')
		{alert("Le choix d'une institution est obligatoire");}
	else
		{
		url="http://www.mornay.dads-saisie.net/login_http.php?portail="+portail+"&codinst="+codinst;
		if (is.nav4up) {
			Fen2= open('','',winPref+"width="+LF+",height="+HF);
			Fen2.location=url;top.blur();
			Fen2.focus();
			}
		if (is.ie4up) {
			HF2 = HF-30;
			Fen2= open('','',winPref+"width="+LF+",height="+HF2);
			Fen2.moveTo(0,0);
			Fen2.location=url;top.blur();
			Fen2.focus();
			}
		if (!(is.ie4up)&&!(is.nav4up)) {
			Fen2= open('','',winPref+'width=600,height=500');
			Fen2.location=url;top.blur();
			Fen2.moveTo(0,0);
			Fen2.focus();
			}
		}
	}