
function checkform(formObj) {    to_check = ["nom","prenom","adresse","telephone","message"];
    for (var i=0; i<formObj.elements.length; i++) {
        if (to_check.contains(formObj.elements[i].name)) {
            if(formObj.elements[i].value.length <= 2) {                alert("Le champ "+formObj.elements[i].getAttribute("name")+" doit etre renseigné");                return false;            }            to_check.removeAt(i);        }    }    return true;}

function openPopup(url) {
    var winO;
    winO = window.open(url, "", "resizable=yes,scrollbars=no,status=no,top=100,left=100");
}

function FitPic() {
    var IE = (navigator.appName=="Microsoft Internet Explorer") ? true : false;
    iWidth = (IE) ? document.body.clientWidth : window.innerWidth;
    iHeight = (IE) ? document.documentElement.clientHeight : window.innerHeight;
    iWidth = (document.images[0].width + 1) - iWidth;
    iHeight = (document.images[0].height + 1) - iHeight;
    window.resizeBy(iWidth + 1 , iHeight + 1);
    self.focus();
};
