function validateMailForm(lang,form)
	{
	fields = Array("to","name","email","subject");
	switch(lang)
		{
		case "f":
		var alertMessage = "Erreur\r\nVeuillez vérifier le champ du formulaire ";
		break;
		case "d":
		var alertMessage = "An error occured\r\nPlease doublecheck the field ";
		break;
		case "e":
		var alertMessage = "An error occured\r\nPlease doublecheck the field ";
		break;
		default:
		break;
		}
	for(var i = 0; i < form.length; i++)
		{
		for(j = 0; j <= fields.length; j++)
			{
			if(form[i].name == fields[j])
				{
				if(form[i].value == "")
					{
					alert(alertMessage+form[i].name);
					form[i].focus();
					return false;
					}
				}
			}
		}	
	}
//
function popup(url, name, w, h)
	{
	h += 10;
	w += 10;
	maxWidth = 600;
	ratio = w/h;
	if(w > maxWidth)
		{
		w = maxWidth;
		h = maxWidth/ratio;
		}
	win = window.open(url,'Image','width='+w+',height='+h+',location = no, left=0, top=0, toolbar=no, titlebar=no, directories=no, menubar=no, status=no, scrollbars=yes, resizable=yes');
	win.resizeTo(w, h) 
	win.focus();
	}