<!--
//var asp_location="http://62.23.13.68/video/"
var asp_location="http://www.nexity-logement.com/video/";
var xml;
var origine; //points d'entrée multiples & login décalé
//les appartement_1 ne sont pas a prendre !!(studio au lieu de 1 chambre)
var corres_regions=[
[//residence principale
[//region parisienne
["1053","1054","1055","1056"],//appartement
    ["1057","1058","1059","1060"]//maison
],
    [//region nord
["1080","1081","1082","1083"],//appartement
    ["1084","1085","1086","1087"]//maison
],
    [//region est
["1044","1045","1046","1047"],//appartement
    ["1048","1049","1050","1051"]//maison
],
    [//region sud
["1116","1117","1118","1119"],//appartement
    ["1120","1121","1122","1123"]//maison
],
    [//region ouest
["1098","1099","1100","1101"],//appartement
    ["1102","1103","1104","1105"]//maison
]
		
],
    [//residence secondaire
[//region bretagne
["1035","1036","1037","1038"],//appartement
    ["1039","1040","1041","1042"]//maison
	
],
    [//region normandie
["1089","1090","1091","1092"],//appartement
    ["1093","1094","1095","1096"]//maison
	
],
    [//region atlantique
["1026","1027","1028","1029"],//appartement
    ["1030","1031","1032","1033"]//maison
	
],
    [//region languedoc
["1062","1063","1064","1065"],//appartement
    ["1066","1067","1068","1069"]//maison
	
],
    [//region cote azur
["1107","1108","1109","1110"],//appartement
    ["1111","1112","1113","1114"]//maison
	
],
    [//region montagne
["1071","1072","1073","1074"],//appartement
    ["1075","1076","1077","1078"]//maison
	
]
]
];


var sepa="\007";
var valsepa="\027";


function getCookieVal (offset) {
    var endstr = document.cookie.indexOf (";", offset);
    if (endstr == -1)
        endstr = document.cookie.length;
    return unescape(document.cookie.substring(offset, endstr));
}

function FixCookieDate (date) {
    var base = new Date(0);
    var skew = base.getTime(); // dawn of (Unix) time - should be 0
    if (skew > 0)  // Except on the Mac - ahead of its time
        date.setTime (date.getTime() - skew);
}

function GetCookie (name) {
    var arg = name + "=";
    var alen = arg.length;
    var clen = document.cookie.length;
    var i = 0;
    while (i < clen) {
        var j = i + alen;
        if (document.cookie.substring(i, j) == arg)
            return getCookieVal (j);
        i = document.cookie.indexOf(" ", i) + 1;
        if (i == 0) break; 
    }
    return null;
}

function SetCookie (name,value,expires,path,domain,secure) {
    document.cookie = name + "=" + escape (value) +
        ((expires) ? "; expires=" + expires.toGMTString() : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
}

function DeleteCookie (name,path,domain) {
    if (GetCookie(name)) {
        document.cookie = name + "=" +
            ((path) ? "; path=" + path : "") +
            ((domain) ? "; domain=" + domain : "") +
            "; expires=Thu, 01-Jan-70 00:00:01 GMT";
    }
}

function GetVal(name,field){
    var cookieval=GetCookie(name);
    splitted=cookieval.split(sepa);
    for(i=0;i<splitted.length;i++){
        couple=splitted[i].split(valsepa);
        if(couple[0]==field) return couple[1];
    }
    return "not found";
}

function SetVal(field,val){
    var cookieval=GetCookie("nexcitynvstudio");
    var retcode="";
    splitted=cookieval.split(sepa);
    for(i=0;i<splitted.length;i++){
        couple=splitted[i].split(valsepa);
        if(couple[0]!=field){
            retcode+=couple[0]+valsepa+couple[1];
        }
        else{
            retcode+=couple[0]+valsepa+val;
        }
        if(i!=splitted.length-1)retcode+=sepa;
    }
    SetCookie("nexcitynvstudio",retcode,null,"/");
}

function cv(urlxml){
    ie=(document.all) ? true : false;
    swfobj=(ie) ? content.document.exporter: content.document.exporter[1];
    if(swfobj!=null) {
	swfobj.SetVariable('changeparam',urlxml);
	swfobj.TCallLabel('/', 'ChangeVideo');
    }
}




function Reinject(pname,pval){
    if(getXMLVal(pname)=="-1"){
        setXMLVal(pname,pval);
    }
}

function XMLLOADER(str){		
	alert(str);
}

function cs(urlxml){
    ie=(document.all) ? true : false;
    swfobj=(ie) ? content.document.exporter: content.document.exporter[1];
    if(swfobj!=null){
        swfobj.SetVariable('changeparam',urlxml);
        swfobj.TCallLabel('/', 'ChangeSession');
    }
}

function restartvid(){
    ie=(document.all) ? true : false;
    swfobj=(ie) ? content.document.exporter: content.document.exporter[1];
    if(swfobj!=null) swfobj.TCallLabel('/', 'RestartVid');
}

function stroreval(paramname,paramval){
    SetVal(paramname,paramval);
    restartvid();
}

function checkargs(){
    InitCookie();
    sArgs = location.search.slice(1).split('&');
    r = '';
    for (var i = 0; i < sArgs.length; i++) {
        if (sArgs[i].slice(0,sArgs[i].indexOf('=')) == "content") {
            r = sArgs[i].slice(sArgs[i].indexOf('=')+1);
            break;
        }
    }
    if(r.length > 0) content.location=r;
}

function recap(){
    var projet=GetVal("nexcitynvstudio","typeprojet");
    var achat=GetVal("nexcitynvstudio","typeachat");
    var regn=GetVal("nexcitynvstudio","region");
    var pieces=GetVal("nexcitynvstudio","nbpieces");
    var sessnum=corres_regions[parseInt(projet)-1][parseInt(regn)-1][parseInt(achat)-1][parseInt(pieces)-1];
    urlxml="../../../222_"+sessnum+"/edited_pages/XML_Directory/";
    cv(urlxml);
}

function dofuncFillForm(){
    //alert(xmlstr);
    alert("Nous avons bien pris en compte votre demande");
    HideDossPers();
    //GoNECForm();
}

function dofuncFillFormCP(){
    //alert(xmlstr);
    alert("Nous avons bien pris en compte votre demande");
    HideDossPers();
    var url="../../../225_1152/edited_pages/XML_Directory/";
    //alert("opening "+url);
    cs(url);
    //GoNECForm();
}


function dofuncInscript(xmlstr){
	//alert(xmlstr);
     ie=(document.all) ? true : false;
    if(ie){
        xml=new ActiveXObject("Microsoft.XMLDOM");
        xml.async=false;
        xml.loadXML(xmlstr);
    }
    else{
        xml=new DOMParser().parseFromString(xmlstr,"text/xml");
    }
    SetCookie("xmlnexcitysession",xmlstr,null,"/");
    InitCookie();
    GoNECForm();
}

function ReInitXML(xmlstr){
    xml=null;
     ie=(document.all) ? true : false;
    if(ie){
        xml=new ActiveXObject("Microsoft.XMLDOM");
        xml.async=false;
        xml.loadXML(xmlstr);
    }
    else{
        xml=new DOMParser().parseFromString(xmlstr,"text/xml");
    }
    SetCookie("xmlnexcitysession",xmlstr,null,"/");
}

function dofunc(xmlstr){
    ie=(document.all) ? true : false;
    if(ie){
        xml=new ActiveXObject("Microsoft.XMLDOM");
        xml.async=false;
        xml.loadXML(xmlstr);
    }
    else{
        xml=new DOMParser().parseFromString(xmlstr,"text/xml");
    }
    SetCookie("xmlnexcitysession",xmlstr,null,"/");
    InitCookie();
    login_redirect(false);
}

function PrimVisite(){
    InitCookie();
    top.content.location="../254_855/edited_pages/XML_Directory/index.htm";
    //top.content.location="../262_1128/edited_pages/XML_Directory/index.htm";
    //top.nav.location="barre_nav/navplan.html";
     top.nav.location="barre_nav/navbar.html"
}
function EnterDirect(){
    InitCookie();
    top.content.location="../262_1128/edited_pages/XML_Directory/index.htm";
    //top.content.location="../262_1128/edited_pages/XML_Directory/index.htm";
    //top.nav.location="barre_nav/navplan.html";
     top.nav.location="barre_nav/navbar.html"
}
function login_redirect(flagcloseplan){
    var hour=new Date().getHours();
    switch(getXMLVal("CIV_ID")){
        case "1":
            if(hour>19 || hour<4){
                //alert("overture SOIR-HOMME");
                top.content.location="../262_1133/edited_pages/XML_Directory/index.htm";
            }
            else{
                //alert("overture JOUR-HOMME");
                top.content.location="../262_1130/edited_pages/XML_Directory/index.htm";
            }
            break;
        case "2":
            if(hour>19 || hour<4){
                //alert("overture SOIR-FEMME");
                top.content.location="../262_1134/edited_pages/XML_Directory/index.htm";
            }
            else{
                //alert("overture JOUR-FEMME");
                top.content.location="../262_1131/edited_pages/XML_Directory/index.htm";
            }
            break;
        case "3":
            if(hour>19 || hour<4){
                //alert("overture SOIR-MLLE");
                top.content.location="../262_1135/edited_pages/XML_Directory/index.htm";
            }
            else{
                //alert("overture JOUR-MLLE");
                top.content.location="../262_1132/edited_pages/XML_Directory/index.htm";
            }

            break;
        default:
            top.content.location="../262_1128/edited_pages/XML_Directory/index.htm";
            break;
    }
    if(flagcloseplan)  HidePlan();
    top.nav.location="barre_nav/navbar.html"
}

function showdoss_A1_3(){
    top.dossperso.location="dossier_perso/small_inscript.html";
    ShowDossPers();
}

function ShowDossPers(){
    HidePlan();
    top.document.getElementById("dossperso").style.visibility='visible';
    top.document.getElementById("dossperso").style.top='122px';
    top.document.getElementById("dossperso").style.left='376px';
}

function HideDossPers(){
    top.document.getElementById("dossperso").style.visibility='hidden';
    top.document.getElementById("dossperso").style.top='-1000px';
    top.document.getElementById("dossperso").style.left='-1000px';
}

function OpenDossier(){
    if(top.document.getElementById("dossperso").style.visibility=="hidden"){
        PauseVideo();
        top.dossperso.location="../dossier_perso/dossier_vide.html";
        top.ShowDossPers();
    }
    else{
        top.HideDossPers();
        restartvid();
    }

}

function ShowFullInscr(){
    ie=(document.all) ? true : false;
    swfobj=(ie) ? top.content.document.exporter: top.content.document.exporter[1];
    //alert(swfobj);
    //top.dossperso.location="dossier_perso/full_inscript.html";
    if(swfobj!=null) swfobj.TCallLabel('/', 'PauseAndHideVid');
    top.smallalice.location="dossier_perso/w1.html";
    ShowSmallAlice();
}

function ShowVideo(){
    ie=(document.all) ? true : false;
    swfobj=(ie) ? top.content.document.exporter: top.content.document.exporter[1];
    if(swfobj!=null) swfobj.TCallLabel('/', 'ShowVid');
}

function PauseVideo(){
    ie=(document.all) ? true : false;
    swfobj=(ie) ? top.content.document.exporter: top.content.document.exporter[1];
    if(swfobj!=null) swfobj.TCallLabel('/', 'PauseVid');
}


function HideVideo(){
    ie=(document.all) ? true : false;
    swfobj=(ie) ? top.content.document.exporter: top.content.document.exporter[1];
    if(swfobj!=null) swfobj.TCallLabel('/', 'HideVid');
}


function ShowSmallAlice(){
    top.document.getElementById("smallalice").style.visibility='visible';
    top.document.getElementById("smallalice").style.top='150px';
    top.document.getElementById("smallalice").style.left='198px';
}

function HideSmallAlice(){
    top.document.getElementById("smallalice").style.visibility='hidden';
    top.document.getElementById("smallalice").style.top='-1000px';
    top.document.getElementById("smallalice").style.left='-1000px';
    top.smallalice.location="dossier_perso/wvide.html";
}

function GoNEC(){
    HideSmallAlice();
    top.smallalice.location="dossier_perso/wvide.html";
    HideDossPers();
    cs("../../../262_1128/edited_pages/XML_Directory/");
    ShowVideo();

}

function GoNECForm(){
    HideSmallAlice();
    top.smallalice.location="dossier_perso/wvide.html";
    HideDossPers();
    cs("../../../262_1128/edited_pages/XML_Directory/");
    ShowVideo();
    top.nav.location="../barre_nav/navbar.html"

}


function setXMLVal(tagname,val){
    if(xml!=null)
        if(xml.getElementsByTagName(tagname)[0]!=null)
            if(xml.getElementsByTagName(tagname)[0].firstChild!=null)
                xml.getElementsByTagName(tagname)[0].firstChild.nodeValue=val;
}

function getXMLVal(tagname){
    if(xml!=null)
        if(xml.getElementsByTagName(tagname)[0]!=null)
            if(xml.getElementsByTagName(tagname)[0].firstChild!=null)
                if(xml.getElementsByTagName(tagname)[0].firstChild.nodeValue!=null)
                    return xml.getElementsByTagName(tagname)[0].firstChild.nodeValue;
    return "-1";
}

function InitCookie(){
    ckstr="uid"+valsepa+getXMLVal("INT_ID")+sepa;
    ckstr+="civil"+valsepa+getXMLVal("CIV_ID")+sepa;
    ckstr+="nom"+valsepa+getXMLVal("INT_Nom")+sepa;
    ckstr+="prenom"+valsepa+getXMLVal("INT_Prenom")+sepa;
    ckstr+="telephone"+valsepa+getXMLVal("INT_TELEPHONE")+sepa;
    ckstr+="portable"+valsepa+getXMLVal("INT_MOBILE")+sepa;
    ckstr+="email"+valsepa+getXMLVal("INT_EMAIL")+sepa;
    ckstr+="adresse"+valsepa+getXMLVal("INT_Adresse")+sepa;
    ckstr+="cp"+valsepa+getXMLVal("INT_CODE_POSTAL")+sepa;
    ckstr+="ville"+valsepa+getXMLVal("INT_VILLES")+sepa;
    ckstr+="pays"+valsepa+"-1"+sepa;
    ckstr+="daterappel"+valsepa+"-1"+sepa;
    ckstr+="heurerappel"+valsepa+"-1"+sepa;
    ckstr+="msgcomplement"+valsepa+"-1"+sepa;
    ckstr+="typeprojet"+valsepa+"-1"+sepa;
    ckstr+="region"+valsepa+"-1"+sepa;
    ckstr+="typeachat"+valsepa+"-1"+sepa;
    ckstr+="nbpieces"+valsepa+"-1"+sepa;
    ckstr+="nbpersonnes"+valsepa+"-1"+sepa;
    ckstr+="budget"+valsepa+"-1"+sepa;
    ckstr+="choixconclusion"+valsepa+"-1"+sepa;
    ckstr+="typecredit"+valsepa+"-1"+sepa;
    ckstr+="bestavantage"+valsepa+"-1"+sepa;
    ckstr+="impots"+valsepa+"-1"+sepa;
    ckstr+="complementrevenu"+valsepa+"-1"+sepa;
    ckstr+="apport"+valsepa+"-1"+sepa;
    ckstr+="dureecredit"+valsepa+"-1"+sepa;
    ckstr+="capital"+valsepa+"-1";
    SetCookie("nexcitynvstudio",ckstr,null,"/");
}



function OpenPlan(){
    if(top.document.getElementById("plan").style.visibility=="hidden"){
        PauseVideo();
        top.ShowPlan();
    }
    else{
        top.HidePlan();
        restartvid();
    }
}


function ShowPlan(){
    HideDossPers();
    top.document.getElementById("plan").style.visibility='visible';
    top.document.getElementById("plan").style.top='0px';
    top.document.getElementById("plan").style.left='0px';
}

function HidePlan(){
    top.document.getElementById("plan").style.visibility='hidden';
    top.document.getElementById("plan").style.top='-1000px';
    top.document.getElementById("plan").style.left='-1000px';
}

function ShowGauche(){
    HideDossPers();
    top.document.getElementById("gauche").style.visibility='visible';
    top.document.getElementById("gauche").style.top='41px';
    top.document.getElementById("gauche").style.left='0px';
}

function HideGauche(){
    top.document.getElementById("gauche").style.visibility='hidden';
    top.document.getElementById("gauche").style.top='-1000px';
    top.document.getElementById("gauche").style.left='-1000px';
}

function ShowDroite(){
    HideDossPers();
    top.document.getElementById("droite").style.visibility='visible';
    top.document.getElementById("droite").style.top='41px';
    top.document.getElementById("droite").style.left='545px';
}

function HideDroite(){
    top.document.getElementById("droite").style.visibility='hidden';
    top.document.getElementById("droite").style.top='-1000px';
    top.document.getElementById("droite").style.left='-1000px';
}


function ShowSimu(){
    HideDossPers();
    top.document.getElementById("simu").style.visibility='visible';
    top.document.getElementById("simu").style.top='85px';
    top.document.getElementById("simu").style.left='305px';
}

function HideSimu(){
    top.document.getElementById("simu").style.visibility='hidden';
    top.document.getElementById("simu").style.top='-1000px';
    top.document.getElementById("simu").style.left='-1000px';
}

function OpenMotRech(){
    var mrcr=[["0","5","1","3","4","2"],["0","8","7","9","6","10","11"]];
    URL=asp_location+"recherche_resultats.asp?pageFrom=index.asp&";
    typeachat=GetVal("nexcitynvstudio","typeachat");
    if(typeachat=="1") URL+="houseTypeId1=1&";
    if(typeachat=="2") URL+="houseTypeId2=1&";
    typeprojet=GetVal("nexcitynvstudio","typeprojet");
    if(typeprojet=="1") URL+="typeRes1=1&";
    if(typeprojet=="2") URL+="typeRes2=1&";
    bud=GetVal("nexcitynvstudio","budget");
    if(bud!="-1" || bud!=-1) URL+="budg="+GetVal("nexcitynvstudio","budget")+"&";
    else  URL+="budg=&";
    URL+="fourchette=10000&";
    var reg=GetVal("nexcitynvstudio","region");
    var region=mrcr[typeprojet-1][reg];
    URL+="r_id="+region+"&";
    URL+="codepriv=code+privil%E8ge&";
    URL+="x=18&y=18";
    //alert(URL);
    storedparams=reg+";"+typeprojet+";"+typeachat+";"+bud;
    top.blind.location=asp_location+"UpdateFlagData.asp?INT_ID="+getXMLVal("INT_ID")+"&SIMUL_6="+storedparams;
    top.gauche.location=URL;
    top.droite.location=asp_location+"espace_personnel_selection.asp?INT_ID="+getXMLVal("INT_ID");
    ShowGauche();
    ShowDroite();
}

function ReOpenMotRech(){
    var couples=getXMLVal("SIMUL_6");
    tab=couples.split(";");
    stroreval("region",tab[0]);
    stroreval("typeprojet",tab[1]);
    stroreval("typeachat",tab[2]);
    //stroreval("budget",tab[3]);
    Navigate('225_1152');
}

function CloseMotRech(){
    HideGauche();
    HideDroite();
}

function GoCP(){
    CloseMotRech();
    Navigate('226_811');
}

function GoConclu(){
    CloseMotRech();
     Navigate('226_810');
}

function navplan(sessnum){
    Navigate(sessnum);
    HidePlan();
    HideSimu();
    CloseMotRech();
}

function navmaq(sessnum){
    Navigate(sessnum);
    CloseMotRech();
     HideSimu();
}
function GetBrowser2(){
    ie=(document.all) ? true : false;
    swfobj=(ie) ? top.dossperso.document.login2: top.dossperso.document.login2[1];
    swfobj.SetVariable('IsinIE',"true");
}
function GetBrowser(){
    ie=(document.all) ? true : false;
    swfobj=(ie) ? content.document.login: content.document.login[1];
    swfobj.SetVariable('IsinIE',"true");
}
function GetFormBrowser(){
    ie=(document.all) ? true : false;
    swfobj=(ie) ? dossperso.document.form.theform: dossperso.document.form.theform[1];
    swfobj.SetVariable('IsinIE',"true");
}

function GetUID(){
    ie=(document.all) ? true : false;
    swfobj=(ie) ? dossperso.document.form.theform: dossperso.document.form.theform[1];
    swfobj.SetVariable('UID',getXMLVal("INT_ID"));
    swfobj.SetVariable('IsinIE',"true");
}


function OpenSimulation(type){
    var url="";
    switch(type){
        case 1:
            url="http://georgev.idsoft.com/robienEpargne_ng.asp";
            break;
        case 2:
            url="http://georgev.idsoft.com/BessonFlash_ng.asp";
            break;
        case 3:
            url="http://georgev.idsoft.com/budgetflash_ng.asp";
            break;
        case 4:
            url="http://georgev.idsoft.com/pretFlash_ng.asp";
            break;
        case 5:
             url="http://georgev.idsoft.com/tauxZero_ng.asp";
            break;
            
    }
    window.open(url,"simul","width=500,height=460,toolbar=no,menubar=no,location=no,scrollbars=yes");
}


function openparametricsimu(){
    var capit=(GetVal("nexcitynvstudio","budget")*1)-(GetVal("nexcitynvstudio","apport")*1);
    var dur=GetVal("nexcitynvstudio","dureecredit");
    url="http://georgev.idsoft.com/pretFlash_ng.asp?";
    url+="capital="+capit;
    url+="&duree="+dur;
    url+="&fraisDossier=0";
    url+="&taux=3.75";
    url+="&assuranceValeur=0";
    url+="&assuranceType=0";
    url+="&mensualite=";
    url+="&calculMensualite.x=1";
    top.blind.location=asp_location+"UpdateFlagData.asp?INT_ID="+getXMLVal("INT_ID")+"&SIMUL_1="+capit+";"+dur;
    top.simu.location=url;
    ShowSimu();
    //window.open(url,"simul","width=500,height=460,toolbar=no,menubar=no,location=no,scrollbars=yes");
}

function CloseSimu(){
    HideSimu();
    Navigate('229_815');
}

function Navigate(sessnum){
    switch(sessnum){
        case "231_818"://espace investisseur
            if(getXMLVal("FLAG_NAV1")=="-1") SetNavFlag("1");
            else sessnum="231_819";
            break;
         case "221_799"://espace projet
            if(getXMLVal("FLAG_NAV2")=="-1") SetNavFlag("2");
            else sessnum="269_1143";
            break;
        case "227_812"://espace financement
            if(getXMLVal("FLAG_NAV3")=="-1") SetNavFlag("3");
            else sessnum="268_1142";
            break;
        case "243_841"://redirection premiere vision
            sessnum="241_839";
            break;
         case "228_814"://redirection simulation financiere financement
            sessnum="234_831";
            break;
         case "271_1146"://redirection simulation investisseur
            sessnum="234_832";
            break;
        case "268_1142"://redirection simulation financiere financement
            CloseMotRech();
            break;
	default:
            break;
    }
    cs("../../../"+sessnum+"/edited_pages/XML_Directory/");
}

function SetNavFlag(flagnum){
    top.blind.location=asp_location+"UpdateFlagData.asp?INT_ID="+getXMLVal("INT_ID")+"&FLAG_NAV"+flagnum+"=true";
}
function insidelogin_redirect(flagcloseplan){
    orig=GetCookie("nexcityorigine");
    switch(orig){
        case "guide":
            top.dossperso.location="demande_guide.html";
            break;
        case "cfl":
             top.dossperso.location="demande_CFL.html";
            break;
        case "cp":
            top.dossperso.location="demande_cp.html";
            break;
        case "news":
            top.dossperso.location="demande_newsletter.html";
            break;
        case "rdvrp":
            top.dossperso.location="demande_rdvRP.html";
            break;
        case "rdvrs":
            top.dossperso.location="demande_rdvRS.html";
            break;
        case "rdvinvest":
            top.dossperso.location="demande_rdvinvest.html";
            break;
        case "rdvfinance":
            top.dossperso.location="demande_rdvfinance.html";
            break;
        case "saggel":
            top.dossperso.location="demande_rdvsaggel.html";
            break;
        case "infoprim":
            top.dossperso.location="info_primvis.html";
            break;
        case "invitprim":
            top.dossperso.location="invit_primvis.html";
            break;
        default:
            break;
    }
    if(flagcloseplan)  HidePlan();
    top.nav.location="../barre_nav/navbar.html"
}
function doinsidelogin(xmlstr){
    //alert(xmlstr);
    ie=(document.all) ? true : false;
    if(ie){
        xml=new ActiveXObject("Microsoft.XMLDOM");
        xml.async=false;
        xml.loadXML(xmlstr);
    }
    else{
        xml=new DOMParser().parseFromString(xmlstr,"text/xml");
    }
    SetCookie("xmlnexcitysession",xmlstr,null,"/");
    InitCookie();
    insidelogin_redirect(false);
}
function dofuncInscript2(xmlstr){
     ie=(document.all) ? true : false;
    if(ie){
        xml=new ActiveXObject("Microsoft.XMLDOM");
        xml.async=false;
        xml.loadXML(xmlstr);
    }
    else{
        xml=new DOMParser().parseFromString(xmlstr,"text/xml");
    }
    SetCookie("xmlnexcitysession",xmlstr,null,"/");
    InitCookie();
   // alert(GetCookie("xmlnexcitysession"));
    insidelogin_redirect(false);
}
function PrimVisite2(){
    top.dossperso.location="dossier_perso/inscription2.html";
    top.nav.location="barre_nav/navplan.html";
}
function SetOrigine(orig){
     SetCookie("nexcityorigine",orig,null,"/");
}
function GetOrigine(){
    ie=(document.all) ? true : false;
    swfobj=(ie) ? dossperso.document.form.theform: dossperso.document.form.theform[1];
    swfobj.SetVariable('origine',GetCookie("nexcityorigine"));
}
function ShowDemandeGuide(){
    /*if(GetCookie("xmlnexcitysession")==null) top.dossperso.location="dossier_perso/login2.html?origine=guide";
    else*/ top.dossperso.location="dossier_perso/demande_guide.html";
    ShowDossPers();
}

function ShowDemandeCFL(){
    /*if(GetCookie("xmlnexcitysession")==null) top.dossperso.location="dossier_perso/login2.html?origine=cfl";
    else*/ top.dossperso.location="dossier_perso/demande_CFL.html";
    ShowDossPers();
}

function ShowDemandeCP(){
    /*if(GetCookie("xmlnexcitysession")==null) top.dossperso.location="dossier_perso/login2.html?origine=cp";
    else*/ top.dossperso.location="dossier_perso/demande_cp.html";
    ShowDossPers();
}

function ShowDemandeNewsletter(){
    /*if(GetCookie("xmlnexcitysession")==null) top.dossperso.location="dossier_perso/login2.html?origine=news";
    else*/ top.dossperso.location="dossier_perso/demande_newsletter.html";
    ShowDossPers();
}

function ShowDemandeRdvRP(){
    /*if(GetCookie("xmlnexcitysession")==null) top.dossperso.location="dossier_perso/login2.html?origine=rdvrp";
    else*/ top.dossperso.location="dossier_perso/demande_rdvRP.html";
    ShowDossPers();
}

function ShowDemandeRPprimo (){
    /*if(GetCookie("xmlnexcitysession")==null) top.dossperso.location="dossier_perso/login2.html?origine=rdvrp";
    else*/ top.dossperso.location="dossier_perso/form_demande_rdvRPprimo.html";
    ShowDossPers();
}

function ShowDemandeRdvRS(){
    /*if(GetCookie("xmlnexcitysession")==null) top.dossperso.location="dossier_perso/login2.html?origine=rdvrs";
    else*/ top.dossperso.location="dossier_perso/demande_rdvRS.html";
    ShowDossPers();
}

function ShowDemandeRdvinvest(){
    /*if(GetCookie("xmlnexcitysession")==null) top.dossperso.location="dossier_perso/login2.html?origine=rdvinvest";
    else*/ top.dossperso.location="dossier_perso/demande_rdvinvest.html";
    ShowDossPers();
}

function ShowDemandeRdvfinance(){
    /*if(GetCookie("xmlnexcitysession")==null) top.dossperso.location="dossier_perso/login2.html?origine=rdvfinance";
    else*/ top.dossperso.location="dossier_perso/demande_rdvfinance.html";
    ShowDossPers();
}

function ShowDemandeSaggel(){
    /*if(GetCookie("xmlnexcitysession")==null) top.dossperso.location="dossier_perso/login2.html?origine=saggel";
    else*/ top.dossperso.location="dossier_perso/demande_rdvsaggel.html";
    ShowDossPers();
}

function ShowInfoPrimvis(){
    /*if(GetCookie("xmlnexcitysession")==null) top.dossperso.location="dossier_perso/login2.html?origine=infoprim";
    else*/ top.dossperso.location="dossier_perso/info_primvis.html";
    ShowDossPers();
}

function ShowInvitPrimvis(){
    /*if(GetCookie("xmlnexcitysession")==null) top.dossperso.location="dossier_perso/login2.html?origine=invitprim";
    else*/ top.dossperso.location="dossier_perso/invit_primvis.html";
    ShowDossPers();
}

function fillfields(){
    return;
    ie=(document.all) ? true : false;
    swfobj=(ie) ? dossperso.document.form.theform: dossperso.document.form.theform[1];
    swfobj.SetVariable('XMLstr',GetCookie("xmlnexcitysession"));
    if(swfobj!=null) swfobj.TCallLabel('/', 'FillFields');
}
// -->

