function checkEmail(email) {
//
// Utilisation ::
//<FORM ... checkEmail(this.txtEmail.value)>
// ou
//<INPUT ... onkeyup=checkEmail(this.value)>
var posat =email.indexOf("@",1);
var posdot=email.indexOf(".",posat+1);
var nbcar =email.length;

return ((posat>0)&&(nbcar>3)&&(posdot>posat+1)&&(posdot<nbcar-2));
}

function checkForm(email) {
//
// Utilisation ::
//<FORM ... checkForm(this.txtEmail.value)>
// ou
//<INPUT ... onclick=checkForm(this.txtEmail.value)>
if (checkEmail(email)) { return true;}
else {
alert('Please provide an e-mail address to be quickly contacted.\n\nThanks for your understanding.\n');
return false;
}
}
//
function openPopup(winURL, winName, winArgs) {
if (winURL == null || winURL == '') { exit; }
if (winName == null || winName == '') { winName = 'popupWin'; }
var strMinArgs='scrollbars=yes,resizable=yes,toolbar=yes,status=yes,left=48,top=48,';
if (winArgs == null || winArgs == '') {
winArgs=strMinArgs+'width=640,height=480';
} else {
winArgs=strMinArgs+winArgs;
}
var newPopWindow=window.open(winURL,winName,winArgs);
if (window.focus) {newPopWindow.focus();}
return false;
}