window.storet = 0;
window.storecurr = 0;

function checkLogin(){
    if($("#vlemail").val() == "" || $("#vlemail").val() == "Adresse e-mail"){
        jAlert("Veuillez saisir votre adresse email.", "Alerte");
        return false;
    }
    if($("#vlpass").val() == ""){
        jAlert("Veuillez saisir votre mot de passe.", "Alerte");
        return false;
    }
}

function checkLogin2(){
    if($("#vlemail2").val() == "" || $("#vlemail2").val() == "Adresse e-mail"){
        jAlert("Veuillez saisir votre adresse email.", "Alerte");
        return false;
    }
    if($("#ivlpass").val() == ""){
        jAlert("Veuillez saisir votre mot de passe.", "Alerte");
        return false;
    }
}

// Hide login password textfield and show password field on click
function changeBox() 
{
    document.getElementById('div1').style.display='none';
    document.getElementById('div2').style.display='';
    document.getElementById('vlpass').focus();
}
function restoreBox() 
{
    if(document.getElementById('vlpass').value=='')
    {
        document.getElementById('div1').style.display='';
        document.getElementById('div2').style.display='none';
    }
}

function changeBoxLog() 
{
    document.getElementById('div1log').style.display='none';
    document.getElementById('div2log').style.display='';
    document.getElementById('ivlpass').focus();
}
function restoreBoxLog() 
{
    if(document.getElementById('ivlpass').value=='')
    {
        document.getElementById('div1log').style.display='';
        document.getElementById('div2log').style.display='none';
    }
}
// ################################

// Clear Search textfield on click
function clickclear(thisfield, defaulttext) {
    if (thisfield.value == defaulttext) {
        thisfield.value = "";
    }
}
function clickrecall(thisfield, defaulttext) {
    if (thisfield.value == "") {
        thisfield.value = defaulttext;
    }
}
// ################################


function ajaxme(div,txt,color) {
    if(color == "white") {
        var aload = '<img src="/images/ajaxloadwhite.gif" width="16" height="16" align="absmiddle" />';
    }else{
        var aload = '<img src="/images/ajaxload.gif" width="16" height="16" align="absmiddle" />';
    }

    if(txt == true || txt==null) {
        aload += ' Chargement';
    }
    $(div).html(aload);	
}

function showmenu(menuclass) {
    $(".beauty_shop_menus, .side_menus .grey-bar").hide();
    $(".side_submenus_li, .side_submenus_li_on").hide();
    $("."+menuclass).show();

    sIFR.replace(futurabook, {
        selector: '.side_submenus_li',
        ratio: [7, 1.58, 8, 1.47, 10, 1.5, 14, 1.44, 17, 1.43, 20, 1.41, 23, 1.4, 29, 1.39, 30, 1.38, 32, 1.37, 35, 1.38, 42, 1.37, 44, 1.36, 47, 1.37, 68, 1.36, 1.35], 
        css: [
        '.sIFR-root {color: #666666; font-size: 12px;}'
        ,'a { text-decoration: none; }'
        ,'a:link { color: #666666; }'
        ,'a:hover { color: #c8c8c8; text-decoration: underline; }'
        ],
        wmode: 'transparent',
        fixHover: 'true'
    });


    sIFR.replace(futurabook, {
        selector: '.beauty_shop_menus li',
        ratio: [7, 1.58, 8, 1.47, 10, 1.5, 14, 1.44, 17, 1.43, 20, 1.41, 23, 1.4, 29, 1.39, 30, 1.38, 32, 1.37, 35, 1.38, 42, 1.37, 44, 1.36, 47, 1.37, 68, 1.36, 1.35], 
        css: [
        '.sIFR-root {color: #c4c4c4; font-size: 12px;}'
        ,'a { text-decoration: none; }'
        ,'a:link { color: #c4c4c4; }'
        ,'a:hover { color: #c4c4c4; text-decoration:underline; }'
        ],
        wmode: 'transparent',
        fixHover: 'true'
    });

}


//################# SCROLLBARS

function makescroll() {

    $.getScript('js/jScrollPane.js',function(){

        $('#pane1').jScrollPane();
        $('#menuscroll').jScrollPane();
        $('#pane2').jScrollPane({
            showArrows:true
        });
        $('#pane3').jScrollPane({
            scrollbarWidth:10, 
            scrollbarMargin:10
        });
        $('#pane4').jScrollPane({
            scrollbarWidth:10, 
            scrollbarMargin:10
        });


        $(".jScrollPaneTrack").width(7);	
    });
// this initialises the demo scollpanes on the page.

}

window.ctr = "";

function storeDropCity(ctr){
    window.ctr = ctr;
    var t=setTimeout("gostoredropcity()",600);
}

function gostoredropcity() {
    var ctr = window.ctr;	
    $.post("system/modules/store/getdrop.php", {
        ctr: ctr, 
        cl: "ct"
    },
    function(xml){
        // XML PARSE
        $('#storecit').empty();
        $(xml).find('city').each(function(){
            var name = $(this).attr('name');	
            var value = $(this).attr('value');
            $('#storecit').append('<option value="'+value+'">'+name+'</option>');

        });
        // END

        $("#storecit option").sortElements(function(a, b){
            return $(a).text() > $(b).text() ? 1 : -1;
        });
        $("#storecit option:first").attr("selected", "selected");

        var cit = $("#storecit").val();

        $("#selectstorecit").html(cit);

        $("#storecit").change(function () { 
            var ctr = $("#storect").val();
            var cit = $(this).val();
            storeinfo(ctr,cit);
        });
        storeinfo(ctr,cit);
        setTimeout(function(){
            try { 
                $('form').jqTransform({
                    imgPath:'/images/listmenu/'
                });
            } catch(ex) {}
        },500);
    });
}

function hidestbts() {
    $(".st_previous").hide();	
    $(".st_next").hide();
}

function gonext() {
    window.storecurr++;	
    $("#storei"+window.storecurr).click();
    $("#storei"+window.storecurr).focus();

    if(window.storecurr > 0) {
        $(".st_previous").show();
    } else {
        $(".st_previous").hide();
    }

    if(window.storecurr == window.storet) {
        $(".st_next").hide();
    } else {
        $(".st_next").show();
    }

}

function goprev() {
    window.storecurr--;	
    $("#storei"+window.storecurr).click();

    if(window.storecurr == 0) {
        $(".st_previous").hide();
    } else {
        $(".st_previous").show();
        $(".st_next").show();
    }

}

function makenpbts() {
    window.storecurr = 0;	
    $(".st_previous").click(function(){
        goprev();
        $('#pane3')[0].scrollTo("#storei"+window.storecurr);
    });
    $(".st_next").click(function(){
        gonext();
        $('#pane3')[0].scrollTo("#storei"+window.storecurr);
    });
	
}

function storeinfo(ctr,cit){

    window.storet = 0;
    window.storecurr = 0;
    ajaxme("#storelist");
    $.post("system/modules/store/post.store.info.php", {
        ctr: ctr, 
        cit: cit
    },
    function(data){
        $("#storelist").html(data);
        $('#pane3').jScrollPane();
   
        $(".st_address_active").css("color","#666");
        $(".st_address").css("color","#fff");
        //alert(window.storet);
   
        if(window.storet == 0) {
            hidestbts();
        }
        if(window.storet > 0) {
            $(".st_previous").hide();
            $(".st_next").show();
        }
   
        $(".st_address,.st_address_active").click(function(){
            $(".st_address,.st_address_active").css("backgroundColor","");
            $(this).css("backgroundColor","#000");
            $(".st_address,.st_address_active").css("color","#666");
            $(this).css("color","#fff");
            var lat = $(this).attr("lat");
            var longi = $(this).attr("long");
            var tit = $(this).attr("tit");
            $("#sttit").html(tit);
            storeGmap(lat,longi);
        });
        $("#storei0").click();

        $("#storeSelectBtns div").click(function(){
            window.storecurr = $(this).attr("v");
            if(window.storecurr == 0) {
                $(".st_previous").hide();
                $("#storeSelectBtns").css("color","red");
            } else {
                $(".st_previous").show();
                $(".st_next").show();
            }
            if(window.storecurr == window.storet) {
                $(".st_next").hide();
            } else {
                $(".st_next").show();
            }
        });

    });	
}

function storeGmap(lat,longi) {
    var map = new GMap2(document.getElementById("storegmap"));
    map.setCenter(new GLatLng(lat,longi), 16);
    map.setUIToDefault();
    var point = new GLatLng(lat,longi);
    map.addOverlay(new GMarker(point));
}

$(document).ready(function(){
    //-----------------------------------> START
    $.getScript('js/jquery-ui-1.8.2.custom.min.js');

    $(document).bind('keypress', function(e){
        var code = (e.keyCode ? e.keyCode : e.which);
        var keyLetter = String.fromCharCode(e.which)
	
        if($("#jour_select .jqTransformSelectWrapper ul").is(':visible'))
        {	
            $('#jour_select .jqTransformSelectWrapper ul li a').each(function(index) {
                if(code == 38)
                {
                    if($('#jour_select .jqTransformSelectWrapper ul li').find(".selected").parent().prev().text() != "")
                    {
                        $('#jour_select .jqTransformSelectWrapper ul li').find(".selected").removeClass("selected").parent().prev().find("a").addClass("selected").focus();
                    }
                    return false;
                }
                if(code == 40)
                {
                    if($('#jour_select .jqTransformSelectWrapper ul li').find(".selected").parent().next().text() != "")
                    {
                        $('#jour_select .jqTransformSelectWrapper ul li').find(".selected").removeClass("selected").parent().next().find("a").addClass("selected").focus();
                    }
                    return false;
                }
                else if($(this).html().charAt(0).toLowerCase() == keyLetter)
                {
                    $('#jour_select .jqTransformSelectWrapper ul li a').removeClass("selected");
                    $(this).focus().addClass("selected");
                    window.lastKeyPressed = keyLetter;
                    return false;
                }
            });
        }
	
        if($("#mois_select .jqTransformSelectWrapper ul").is(':visible'))
        {
            $('#mois_select .jqTransformSelectWrapper ul li a').each(function(index) {
                if(code == 38)
                {
                    if($('#mois_select .jqTransformSelectWrapper ul li').find(".selected").parent().prev().text() != "")
                    {
                        $('#mois_select .jqTransformSelectWrapper ul li').find(".selected").removeClass("selected").parent().prev().find("a").addClass("selected").focus();
                    }
                    return false;
                }
                if(code == 40)
                {
                    if($('#mois_select .jqTransformSelectWrapper ul li').find(".selected").parent().next().text() != "")
                    {
                        $('#mois_select .jqTransformSelectWrapper ul li').find(".selected").removeClass("selected").parent().next().find("a").addClass("selected").focus();
                    }
                    return false;
                }
                else if($(this).html().charAt(0).toLowerCase() == keyLetter)
                {
                    $('#mois_select .jqTransformSelectWrapper ul li a').removeClass("selected");
                    $(this).focus().addClass("selected");
                    window.lastKeyPressed = keyLetter;
                    return false;
                }
            });
        }
	
        if($("#annee_select .jqTransformSelectWrapper ul").is(':visible'))
        {	
            $('#annee_select .jqTransformSelectWrapper ul li a').each(function(index) {
                if(code == 38)
                {
                    if($('#annee_select .jqTransformSelectWrapper ul li').find(".selected").parent().prev().text() != "")
                    {
                        $('#annee_select .jqTransformSelectWrapper ul li').find(".selected").removeClass("selected").parent().prev().find("a").addClass("selected").focus();
                    }
                    return false;
                }
                if(code == 40)
                {
                    if($('#annee_select .jqTransformSelectWrapper ul li').find(".selected").parent().next().text() != "")
                    {
                        $('#annee_select .jqTransformSelectWrapper ul li').find(".selected").removeClass("selected").parent().next().find("a").addClass("selected").focus();
                    }
                    return false;
                }
                /*				if(window.lastKeyPressed == keyLetter)
				{
					$('#annee_select .jqTransformSelectWrapper ul li').find(".selected").removeClass("selected").parent().next().find("a").addClass("selected").focus();
					return false;
				}
*/
                else if($(this).html().charAt(0).toLowerCase() == keyLetter)
                {
                    $('#annee_select .jqTransformSelectWrapper ul li a').removeClass("selected");
                    $(this).focus().addClass("selected");
                    window.lastKeyPressed = keyLetter;
                    return false;
                }
            });
        }
	
	
        if($("#pays_select .jqTransformSelectWrapper ul").is(':visible'))
        {	
            $('#pays_select .jqTransformSelectWrapper ul li a').each(function(index) {
                if(code == 38)
                {
                    if($('#pays_select .jqTransformSelectWrapper ul li').find(".selected").parent().prev().text() != "")
                    {
                        $('#pays_select .jqTransformSelectWrapper ul li').find(".selected").removeClass("selected").parent().prev().find("a").addClass("selected").focus();
                    }
                    return false;
                }
                if(code == 40)
                {
                    if($('#pays_select .jqTransformSelectWrapper ul li').find(".selected").parent().next().text() != "")
                    {
                        $('#pays_select .jqTransformSelectWrapper ul li').find(".selected").removeClass("selected").parent().next().find("a").addClass("selected").focus();
                    }
                    return false;
                }
                else if($(this).html().charAt(0).toLowerCase() == keyLetter)
                {
                    $('#pays_select .jqTransformSelectWrapper ul li a').removeClass("selected");
                    $(this).focus().addClass("selected");
                    window.lastKeyPressed = keyLetter;
                    return false;
                }
            });
        }
	
	
	
    });



	
    $('#root').center();
    $('#root').show();
    // MENUS ********************
    makescroll();
    //
    makenpbts();
    $(".beauty_shop").click(function(){
        $(".side_submenus_li").hide();
        $(".beauty_shop_menus").show();
        sIFR.replace(futurabook, {
            selector: '.beauty_shop_menus li',
            ratio: [7, 1.58, 8, 1.47, 10, 1.5, 14, 1.44, 17, 1.43, 20, 1.41, 23, 1.4, 29, 1.39, 30, 1.38, 32, 1.37, 35, 1.38, 42, 1.37, 44, 1.36, 47, 1.37, 68, 1.36, 1.35], 
            css: [
            '.sIFR-root {color: #c4c4c4; font-size: 12px;}'
            ,'a { text-decoration: none; }'
            ,'a:link { color: #c4c4c4; }'
            ,'a:hover { color: #c4c4c4; text-decoration:underline; }'
            ],
            wmode: 'transparent',
            fixHover: 'true'
        });
	
    });

    $("#lmarque").click(function(){
        showmenu('mmarque');	
    });

    $("#lclient").click(function(){
        showmenu('mclient');	
    });

    $("#lcoach").click(function(){
        showmenu('mcoach');	
    });

    $("#lcpro").click(function(){
        showmenu('mcpro');	
    });

    $("#lbshop").click(function(){
        showmenu('mbshop');	
    });

    $(".side_submenus_li").hide();
    //var pg = $.query.get('pg');
    var pg = window.GLOBAL_PG;

    // AUTO MENU
    if (pg=="cbconseil" || pg=="cbvideo" || pg=="cbsos" || pg=="coaching" || pg=="cbquestions" || pg=="cbresults1" || pg=="cbresults2" || pg=="cbresults3" || pg=="cbresults4") {
        showmenu('mcoach');
    } else if (pg=="marqueact" || pg=="marquebeaute" || pg=="marquejoyce" || pg=="marquepromesse" || pg=="marqueracines") {
        showmenu('mmarque');
    } else if (pg=="cclient" || pg=="cccommandes" || pg=="ccdiag" || pg=="ccprogmfidel" || pg=="ccparraihome") {
        showmenu('mclient');
    } else if (pg=="lgfichierprod") {
        showmenu('mgamme');
    } else if (pg=="bsgamme" || pg == "bsnouveautes" || pg == "bscoffrets" || pg == "bsexclusives" || pg == "bsmventes" || pg == "bsconfiance") {/////
        showmenu('beauty_shop_menus');
    }
    /*
else if (pg==="") {
showmenu('mcpro');	
}
*/

    // END MENUS	
    if (pg=="cbresults1" || pg=="cbresults2" || pg=="cbresults3" || pg=="cbresults4") {
        $.getScript('js/coaching/cbresults.js', function() {
            cbresultsinit();
        });
    }
    // STORE LOCATOR
    if (pg=="storelocinfo") {
        var ctr = $("#storect").val();
      
        $(function(){
            $('form').jqTransform({
                imgPath:'/images/listmenu/'
            });
        });
        
        storeDropCity(ctr);

        $("#storect").change(function(){
            var ctr = $(this).val();
            storeDropCity(ctr);
        });
    }

    // GAMME VELDS
    if (pg=="lgfichierprod") {
        $.getScript('js/shop/shopgamme.js', function() {
            shopinit();
        });
    } 
    // E-BOTIQUE
    if (pg=="bsvotrepanier") {
        $.getScript('js/shop/shopcheckout.js', function() {
            shopinit();
        });


    }
    // E-BOTIQUE Identification
    if (pg=="bsidentification" || pg == "bsregister") {
	
        $.getScript('js/shop/shopIdentification.js', function() {
            shopinit();
        });

    }
    if (pg=="bsgamme") {
	
        $.getScript('js/shop/bsgamme.js', function() {
            bsgammeinit();
        });

    }

    if (pg=="bsmventes") {
        $.getScript('js/shop/bsmventes.js', function() {
            bsgmventesinit();
        });
    }

    if (pg=="bscoffretscrea") {
	
        $.getScript('js/shop/bscoffretscrea.js', function() {
            bscoffretscreainit();
        });

    }
    // CARRE PRIVILEGE
    if (pg=="cprivilege") {
	
        $.getScript('js/cprivilege/cprivilege.js', function() {
            cprivinit();
        });
    }
    // COACHING CONSEIL
    if (pg=="cbconseil") {
	
        $.getScript('js/coaching/cbconseil.js', function() {
            cbconseilinit();
        });
    }
    // COACHING SOS
    if (pg=="cbsos") {
	
        $.getScript('js/coaching/cbsos.js', function() {
            cbsosinit();
        });
    }
    // COACHING VIDEO
    if (pg=="cbvideo") {
	
        $.getScript('js/coaching/cbvideo.js', function() {
            cbvideoinit();
        });
    }
    if (pg=="bsnouveautes") {
	
        $.getScript('js/shop/bsnouveautes.js', function() {
            bsnouveautes_init();
        });
    }

    if (pg=="bscoffrets") {
	
        $.getScript('js/shop/bscoffrets.js', function() {
            bscoffrets_init();
        });
    }


    if (pg=="bsexclusives") {
	
        $.getScript('js/shop/bsexclusives.js', function() {
            bsexclusives_init();
        });
    }


    if (pg=="bsfacturation") {
        $.getScript('js/shop/bsfacturation.js', function() {
            bsfacturation_init();
        });
        $.getScript('js/jquery.jqtransform.js', function() {
            $('form').jqTransform({
                imgPath:'/images/listmenu/'
            });
        });

    }

    // MARQUE ACT
    if (pg=="marqueact") {
        $.getScript('js/marque/marqueact.js', function() {
            marqueactinit();
        });
    }
    // DIAGNOSTIC BEAUTE
    if (pg=="cbquestions") {
	
        $.getScript('js/coaching/cbquestions.js', function() {
            cbquestionsinit();
        });
    }
    // CONTACT SERV
    if (pg=="contactserv") {
        $.getScript('js/jquery.jqtransform.js', function() {
            $('form').jqTransform({
                imgPath:'/images/listmenu/'
            });
        });
        $.getScript('js/contacts/contactserv.js', function() {
            contactservinit();
        });
    }
    // CONTACT REC
    if (pg=="contactrec") {
        $.getScript('js/jquery.jqtransform.js', function() {
            $('form').jqTransform({
                imgPath:'/images/listmenu/'
            });
        });
        $.getScript('js/contacts/contactrec.js', function() {
            contactrecinit();
        });
    }
    //--------------------------- FIDELITY

    if (pg=="ccprogmfidel") {
	
        $.getScript('js/shop/ccprogmfidel.js', function() {
            ccprogmfidel_init();
        });
	
        $.getScript('js/client/fidel.points.js', function() {
            clientinit()
        });
    } 

    if (pg=="cclient") {
        $.getScript('js/client/cclient.js', function() {
            cclient_init();
        });
    } 

    if (pg=="ccparraihome" || pg=="ccparrainage" || pg=="cccommandes" || pg=="cccommmandesderes" || pg=="ccdiag" || pg=="ccparraiboostez" ) {
        $.getScript('js/client/parrai.js', function() {
            //clientinit();	

            });
    } 

    if (pg=="ccparrainage") {
	
        $.getScript('js/shop/ccparrainage.js', function() {
            ccparrainage_init();
        });
	
    /*	$.getScript('js/jquery.jqtransform.js', function() {
		$('form').jqTransform({imgPath:'/images/listmenu/'});
	});*/
    }

    if (pg=="cbquestions") {
        $.getScript('js/jquery.jqtransform.js', function() {
            $('form').jqTransform({
                imgPath:'/images/listmenu/'
            });
        });
    }

    if (pg=="ccparraiboostez") {
        $.getScript('js/jquery.jqtransform.js', function() {
            $('form').jqTransform({
                imgPath:'/images/listmenu/'
            });
        });
    }

    if (pg=="cccommandes" || pg=="cccommandesres" || pg=="cccommandesdern" || pg=="ccdiag") {
	
        $.getScript('js/shop/cccommandes.js', function() {
            cccommandes_init();
        });
    }



    if (pg=="ccparraihome" || pg=="ccparrainage" || pg=="cccommandes" || pg=="cccommmandesderes" || pg=="cccommandesdern" || pg=="ccdiag" || pg=="ccparraiboostez" ) {
        //clientinit();	
        $.getScript('js/jquery.jqtransform.js', function() {
            $('form').jqTransform({
                imgPath:'/images/listmenu/'
            });
        });
    } 


    //-------------------------------------> LIGHTBOX
    $.getScript('js/lightbox.js', function() {
        makelightbox();
    });
    //-----------------------------------> END
    

    /*

$.getScript('js/jqueryscrollpane.js');
$.getScript('js/ui.mouse.js');
$.getScript('js/ui.slider.js');
*/

    //################ LOGIN
    $(".vlinput").click(function(){
        v = $(this).attr("v");
        if($(this).val() == v) {
            $(this).val("");
        }
    }).focus(function() {
        v = $(this).attr("v");
        if($(this).val() == v) {
            $(this).val("");
        }
    }).blur(function() {
        if($(this).val() == "") {
            v = $(this).attr("v");
            $(this).val(v);
        }
    });

    $(".vlemail").click(function(){
        v = $(this).attr("v");
        if($(this).val() == v) {
            $(this).val("");
        }
    }).focus(function() {
        v = $(this).attr("v");
        if($(this).val() == v) {
            $(this).val("");
        }
    }).blur(function() {
        if($(this).val() == "") {
            v = $(this).attr("v");
            $(this).val(v);
        }
    });

    /*
$(".vlpinput").click(function(){
v = $(this).attr("v");
if($(this).val() == v) {
$(this).hide();
$("#vlpass").show();
$("#vlpass").focus();
$("#vlpass").click();
}
}).focus(function() {
v = $(this).attr("v");
if($(this).val() == v) {
$(this).hide();
$("#vlpass").show();
}
});

$("#vlpass").blur(function(){
if($(this).val() == "") {
v = $("#tempvlpass").attr("v");
$("#tempvlpass").val(v);	
$(this).hide();
$("#tempvlpass").show();
}
});
*/

    //$("#vlpass").hide();
    //$(this).show();



    var t=setTimeout("$.getScript('js/googleanalytics.js')",20000);

    $(window).resize(function() {
        $('#root').center();
        $("#vlightboxmid").center();
        $("#vlightboxalert").center();
    //$('#lightboxconfirm').center();


    });
	
});


/** Function : dump()
* Arguments  : $data - the variable that must be displayed
***********************************************************************************
* Version    : 1.01.B
* Author     : Binny V A(binnyva (at) hotmail (dot) com : http://www.geocities.com/binnyva)
* Date       : June 3, 2005
* Last Update: Wednesday, July 13 2005
* Prints a array, an object or a scalar variable in an easy to view format.
***********************************************************************************/
function print_r(theObj){
    if(theObj.constructor == Array ||
        theObj.constructor == Object){
        var out ="";
        for(var p in theObj){
            if(theObj[p].constructor == Array||
                theObj[p].constructor == Object){
                out +="["+p+"] => "+typeof(theObj);
                print_r(theObj[p]);
            } else {
                out +="["+p+"] => "+theObj[p];
            }
        }
    }
    return out;
}


setTimeout('panierChangeCodeColour();',100);
setTimeout('panierChangeCodeColour();',900);

function panierChangeCodeColour(){
	
    $(".panier_points_price").parent().addClass("panier_points_row");
	
}

var timeoutMinutes = 5*60*1000;
setInterval('keepSessionAlive()',timeoutMinutes);

function keepSessionAlive(){
    $.getScript('system/functions/velds.keep.session.alive.php',function(){});
}

function checkRPass(){
    if($("#email_rpass").val() == "" || $("#email_rpass").val() == "Votre e-mail"){
        jAlert("Entrez votre email.", "Alerte");
        return false;
    }
    else{
        $("#formRpass").submit();
    }
}
