//
// SP JS spécifique au dossier rep contenant les réponses rédigées.

lien=document.location.pathname
hote=document.location.host;

document.write("<img src='http://"+hote+"/rep/compteur.php?avant="+lien+"' width=1 height=1>");

autlien="http://"+hote+"/index.php?bas="+lien;

function asmail(adr){
bdp=""
bdp += '<a href=mai'+'lto:'+adr.replace('#at#','@')+'>'	
document.write(bdp);

}

function copytoCB(theField) {
var tempval=eval("document."+theField);
tempval.focus();
tempval.select();
	if (document.all){
		therange=tempval.createTextRange();
		therange.execCommand("Copy");
	}
}

function hautpage(){
var a=1;	
}

function finarticle(){
bdp=""
if (top.location == self.location) {
bdp += '<p style="text-align:center"><br><br>'
bdp += '<a href="http://www.faqOE.com">Retour au Sommaire du site</a>';	
bdp += '</p>'
}
document.write(bdp);
bdp=""
bdp += '<fieldset><p><br><center>'
bdp += '<button onClick="window.print()"><img src="../commun/imprime.gif" alt="Imprimer cette réponse" title="Imprimer cette réponse"></button>'
bdp += '&nbsp;'
bdp += '<button onClick="EmailLink()"><img src="../commun/envoilien.gif" alt="Envoyer le lien de cette réponse à un ami" title="Envoyer le lien de cette réponse à un ami"></button>'
bdp += '&nbsp;'
bdp += '<button onClick="document.execCommand(\'Refresh\')"><img src="../commun/actualise.gif" alt="Actualiser cette page (si vous pensez qu\'elle a été modifiée depuis votre dernière visite)" title="Actualiser cette page (si vous pensez qu\'elle a été modifiée depuis votre dernière visite)"></button>'
bdp += '&nbsp;'
bdp += '<button onClick="document.execCommand(\'SaveAs\')"><img src="../commun/sauver.gif" alt="Enregistrer cette réponse" title="Enregistrer cette réponse"></button>'
bdp += '&nbsp;'
bdp += '<button onClick="window.open(\'http://www.laboratoire-microsoft.org/top/rankem.asp?manager=aspcode.net&id=223\',\'new\')"><img src="../commun/urne.gif"  alt="Voter pour ce site" title="Voter pour ce site"></button>';
bdp += '<br><br>'
bdp += '<form name="test">'
bdp += '<small>Adresse exacte de la Page en cours  :<br></small>'
bdp += '<input type="text" onClick="javascript:blur()" size=40 name="select1" value='+autlien+'>'
bdp += '<button onClick="copytoCB(\'test.select1\')" title="Cliquez ici pour copier l\'adresse dans le presse papier" title="Cliquez ici pour copier l\'adresse dans le presse papier"> Copie </button>'
bdp += '</form></fieldset></center>'
bdp += '<br><br>'
document.write(bdp);
}

function baspage(){

/*
bdp=""
bdp += '<center><br><br>'
bdp +='<div style="width=300pt;border-width=1;border-style=ridge;border-color:black;background-color:#777777;text-align:center" >'
bdp +='<div style="position:relative;top=-6pt;left=-6pt;width=300pt;border-width=3;border-style=ridge;border-color:red;background-color:#dddddd"> '
bdp +='<br><code>Nous vous recommandons ce livre,<br>'
bdp +='co-écrit par la FAQ Outlook Express.</code><br><br>'
bdp +='<a href="javascript:popup\(\'../livreMA/4166.jpg\'\)"><img src="../livreMA/4166th.jpg"></a>&nbsp;<a href="javascript:popup\(\'../livreMA/4166D.jpg\'\)"><img src="../livreMA/4166Dth.jpg"></a>'
bdp +='<br>'
bdp +='<span style="font-size:75%">(1088 pages, Tirage du 15 Juin 2004)</span><br><br>'
bdp +='<a href="javascript:popupli\(\'../livreMA/proposlivre.htm\',500,650\)">A propos de ce livre</a><br>'
bdp +='<A HREF="../livreMA/4597.pdf" target="_blank">Consulter le sommaire \(pdf\)</a><br>'
bdp +='<a href="javascript:popupli\(\'../livreMA/windowsnews.htm\',500,750\)">La presse en parle</a><br>'
bdp +='<A HREF="http://www.microapp.com/fiche_produit.cfm?ref_produit=4597" target="_blank">Chez l\'éditeur</a><br>'
bdp +='<br>'
bdp +='<A HREF="http://www.amazon.fr/exec/obidos/ASIN/2742935975/qid%3D1088822063/br%3D1-8/faqoutlookexp-21" target="_blank" title="Commander sur Amazon.fr">Commander le livre</a><br>'
bdp +='<br><br>'
bdp +='</div>'
bdp +='</div>'
bdp += '</center></p>'
document.write(bdp);
*/

}


function EmailLink(){window.location = "mailto:?subject=Lu sur la FAQ Outlook Express." + "&body=" + autlien + "%0a( " + document.title + " )"}

function popup(urlp){
affich=window.open(null,null,'toolbar=no,scrollbars=no,width=1,height=1')
affich.document.open("text/html")
affich.document.writeln("<html><body bgcolor='#2C448C' ") //Attention à laisser l'espace entre ' et "
affich.document.writeln("onload='window.resizeTo(graph.width+30,graph.height+60)'>")
affich.document.writeln("<img src='" + urlp + "' id='graph'>")
affich.document.write("</body></html>")
affich.document.close()
}
function popupli(url,hauteur,largeur){
fene='width='+hauteur+',height='+largeur+',scrollbars=no,resizable=no,toolbar=no,location=no,status=no,menubar=no\)'
window.open(url,'',fene);
}

function noteKB(url){
window.open("http://support.microsoft.com/default.aspx?scid=kb;fr;"+url,"_Blank","");
}
