//
// Auteur:              Pierre.Laplante@sednove.ca
//                      SedNove Inc.
//                      Copyright © 2000,2001,2002,2003
//                      SedNove Inc.
//                      439 OAKa
//                      St-Lambert, QC, Canada
//                      All rights reserved.
//
// Version:             $Id: extenso.js,v 1.2 2004/12/23 19:28:26 laplante Exp $
//

// popup - permet d'afficher une fenêtre centrer.

function popup(url, name, popw, poph, parm) {
  var w = screen.width;
  var h = screen.height;

  if (popw == undefined) {
    popw=640;
  }

  if (poph == undefined) {
    poph=480;
  }

  var l = (w-popw)/2, t = (h-poph)/2;

  if (parm == undefined) {
    var w = window.open(url, name, "left="+l+",top="+t+",width="+popw+"+,height="+poph+",fullscreen=no,scrollbars=yes,resizable=yes");
  } else {
    var w = window.open(url, name, "left="+l+",top="+t+",width="+popw+"+,height="+poph+","+parm);
  }

}

// Close le popup et fait un refresh du parent.
function close_popup_refresh(url) {
  parent.window.opener.document.location = url;
  self.close();
}

function checkemail() {
	var email = document.f.courriel.value;
	if (email.match(/\@/)) {
		return true;
	} else {
		return false;
	}
}