// dialo('1494838587',"solange9256",'0','0','2','75','1','lcx','#000000',"736F6C616E676539323536",'385','/DEV/',"","0","1");
// NPIB - PSE - h  :  NPIB - PS2 - datetime

String.prototype.stripTags = function () {
   return this.replace(/<([^>]+)>/g,'').replace('"','&quot;');
}

var inst=2;

function dialob(datetime,pseudo,cv,photo,typedep,valeurdep,BAL,motc,col,PS2,NPIB,site,pays,regi,ccx, sexe, urlphoto, clerao, textecv, flphoto) {
inst=3-inst;

document.write("<tr class='quoila li0"+(inst)+"' npib='"+NPIB+"' pse='"+PS2+"' h='"+datetime+"' clerao='"+clerao+"' cv='"+textecv.stripTags()+"'>");

document.write("<td class='line'>");
switch (ccx) {
case "0": document.write("<div class='divimgonlinemid'></div>"); break;
case "1": document.write("<div class='divimgonlineon'></div>"); break;
}
document.write("</td>");

document.write("<td class='photo'>");
if (urlphoto) {
	document.write("<img src='"+urlphoto+"' width='16' height='16' border='0'>");
} else {
	document.write("</td>");
}

document.write("<td class='pseudo");
if (col=="#ff0000") document.write (" moi");
if (col=="#0000d0") document.write (" autre");
if (regi==1) document.write (" memedpt");
document.write ("'>" + pseudo + "</td>");

document.write("<td class='sexe'>");
switch(sexe) {
case "1": document.write("<div class='divimgsexh'></div>"); break;
case "2": document.write("<div class='divimgsexf'></div>"); break;
case "3": document.write("<div class='divimgsexcpl'></div>"); break;
case "4": document.write("<div class='divimgsex3'></div>"); break;
}
document.write("</td>");

document.write ("<td class='profil'>");
if (clerao) {
document.write("<div class='divimgprofil'></div>");
} else {
document.write("</td>");
}

document.write ("<td class='galerie'>");
if (flphoto == '') {
    document.write("</td>");
  } else {
    document.write("<div class='divimggalerie'></div></td>");
}

document.write("<td class='dpt");
if(regi==1) document.write(" ici");
document.write(" '>");

if (typedep==0) document.write(" </td>");
if (typedep==1) document.write("<img class='drapeau' src='/domina/drapeaux/" + valeurdep + ".gif' alt='" + pays + "' ></td>");
if (typedep==2) document.write(valeurdep+"</td>");

document.write("</tr>");
}


function afficheMaxi(chemin){
 i1 = new Image;
 i1.src = chemin;
 html = "<html><head>";
 html = html + "<meta HTTP-EQUIV=\"imagetoolbar\" CONTENT=\"no\">";
 html = html + "<title>Photos</title></head>" ;
 html = html + "<body onmousedown=\"self.close()\" topmargin=\"1\" leftmargin=\"1\" marginwidth=\"1\" marginheight=\"1\" bgcolor=\"black\">";
 html = html + "<img src=\""+chemin+"\" border=\"0\" name=\"imageTest\" onLoad=\"window.resizeTo(document.imageTest.width+10,document.imageTest.height+53)\"></body></html>";
popupImage = window.open("","photos","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1");

    popupImage.document.close();
    popupImage.document.open();
    popupImage.document.write(html);
    popupImage.document.focus();

}


function show(mypage,scroll,myname,w,h){
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	var settings ='height='+h+',';
	settings +='width='+w+',';
	settings +='top='+wint+',';
	settings +='left='+winl+',';
	settings +='scrollbars='+scroll+',';
	settings +='resizable=yes';
	settings +=',\'toolbar=no,location=no,status=no,menubar=no\'';
	win=window.open(mypage,myname,settings);
	if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

