var newWin = null;
function popUp(strURL,strWidth,strHeight,strScrollbars) {
    if (newWin != null){
        if(!newWin.closed)
            newWin.close();
    }
    var strOptions="";
    strOptions="toolbar=no,menubar=no,scrollbars="+strScrollbars+",resizable,location=no,height="+strHeight+",width="+strWidth;
    newWin = window.open(strURL, 'newWin', strOptions);
    newWin.focus();
}

function affiliation(page) {
    popUp(page, 590, 300, "yes");
    };
function aide(page) {
    popUp(page, 590, 600, "yes");
    };
function assurance(page) {
    popUp(page, 590, 600, "yes");
	};
function cadeau(page) {
    popUp(page, 590, 620, "yes");
	};
function charteq(page) {
    popUp(page, 590, 600, "yes");
	};
function chartesecu(page) {
    popUp(page, 590, 600, "yes");
	};
function cgv(page) {
    popUp(page, 590, 600, "yes");
	};
function commande(page) {
    popUp(page, 590, 350, "yes");
	};
function contact(page) {
    popUp(page, 590, 530, "yes");
	};
function emploi(page) {
    popUp(page, 590, 400, "yes");
	};
function faq(page) {
    popUp(page, 590, 600, "yes");
	};
function fournisseur(page) {
    popUp(page, 590, 530, "yes");
    };
function mention(page) {
    popUp(page, 590, 400, "yes");
	};
function plansite(page) {
    popUp(page, 590, 300, "yes");
    };
function presse(page) {
    popUp(page, 590, 530, "yes");
    };
function publicite(page) {
    popUp(page, 590, 350, "yes");
	};
function service(page) {
    popUp(page, 590, 420, "yes");
	};
function savoirplus(page) {
    popUp(page, 600, 300, "yes");
    };
function popup_email(page,email){
    var url = page + '?email=' + email;
    popUp(url,590, 230, "yes");
};

function eraseMail(){
    if(document.getElementById('email').value == 'Adresse email'){
        document.getElementById('email').value='';
        }
};
function fillTextMail(){
    if(document.getElementById('email').value == ''){
        document.getElementById('email').value='Adresse email';
        }
};

function popForPrint(sUrl) {
	var oArgs = popForPrint.arguments ;
	var iArgCount = popForPrint.arguments.length ;
	var wTitle = (iArgCount > 1) ? oArgs[1] : "wprint" ;
	var wOpt = (iArgCount > 2) ? oArgs[2] : "" ;

	w = window.open(sUrl, wTitle, wOpt) ;
}
