// $Id$
var utils = new Object();
utils.popup = function (url, name, features) {
	if (!name) name = "_blank";
	if (features) {
		var width = parseInt (features.replace(/.*width=/, ""));
		var height = parseInt (features.replace(/.*height=/, ""));
		var newWindow = window.open(url, name, features);
		if (width && height) try {newWindow.resizeTo (width, height);} catch (e) {};
		try {newWindow.moveTo(0,0);} catch (e) {};
	} else var newWindow = window.open(url, name);
	newWindow.focus();
	return false;
};
utils.controlPass = function (form) {
	if (form.mdp.value.length < 1) {
		alert("Veuillez saisir votre mot de passe");
		return false;
	}	
	return true;
};

