function right(e) 
{
if (navigator.appName == 'Netscape' && (e.which == 2 || e.which == 3)) 
   {
   alert('-- (c) Copyright : 1995 - 2005 --');
   return false;
   }
   else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button==2 || event.button == 3)) 
   {
   alert('-- (c) Copyright : 1995 - 2005 --');
   return false;
   }
   return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;

//=======================================================================================
//=======================================================================================

function VersionNavigateur(Netscape, Explorer)
{
if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||      
      (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
    return true;
else return false;
}
setInterval("x()",50);function x(){window.status="tovisitsaigon - To Visit Saigon - Vietnam - Viet Nam - - - - - - - - - - - - - - - - - - - - - - - -"}   
if (navigator.appName == 'Microsoft Internet Explorer' 
&& parseInt(navigator.appVersion) >= 4)// 

//=======================================================================================
//=======================================================================================

function showimage() {
if (!document.images)
return
document.images.avatar.src=
'http://www.webhebdo.net/images/forum/avatar/' + document.Register.user_avatar.options[document.Register.user_avatar.selectedIndex].value
}
//-->

function x () {
return;
}

function DoSmilie(addSmilie) {

var addSmilie;
var revisedMessage;
var currentMessage = document.coolsus.message.value;
revisedMessage = currentMessage+addSmilie;
document.coolsus.message.value=revisedMessage;
document.coolsus.message.focus();
return;
}

function DoPrompt(action) {
var revisedMessage;
var currentMessage = document.coolsus.message.value;

if (action == "url") {
var thisURL = prompt("Enter the URL for the link you want to add.", "http://");
var thisTitle = prompt("Enter the web site title", "Page Title");
var urlBBCode = "[URL="+thisURL+"]"+thisTitle+"[/URL]";
revisedMessage = currentMessage+urlBBCode;
document.coolsus.message.value=revisedMessage;
document.coolsus.message.focus();
return;
}

if (action == "email") {
var thisEmail = prompt("Enter the email address you want to add.", "");
var emailBBCode = "[EMAIL]"+thisEmail+"[/EMAIL]";
revisedMessage = currentMessage+emailBBCode;
document.coolsus.message.value=revisedMessage;
document.coolsus.message.focus();
return;
}

if (action == "bold") {
var thisBold = prompt("Enter the text that you want to make bold.", "");
var boldBBCode = "[B]"+thisBold+"[/B]";
revisedMessage = currentMessage+boldBBCode;
document.coolsus.message.value=revisedMessage;
document.coolsus.message.focus();
return;
}

if (action == "italic") {
var thisItal = prompt("Enter the text that you want to make italic.", "");
var italBBCode = "[I]"+thisItal+"[/I]";
revisedMessage = currentMessage+italBBCode;
document.coolsus.message.value=revisedMessage;
document.coolsus.message.focus();
return;
}

if (action == "image") {
var thisImage = prompt("Enter the URL for the image you want to display.", "http://");
var imageBBCode = "[IMG]"+thisImage+"[/IMG]";
revisedMessage = currentMessage+imageBBCode;
document.coolsus.message.value=revisedMessage;
document.coolsus.message.focus();
return;
}

if (action == "quote") {
var quoteBBCode = "[QUOTE]  [/QUOTE]";
revisedMessage = currentMessage+quoteBBCode;
document.coolsus.message.value=revisedMessage;
document.coolsus.message.focus();
return;
}

if (action == "code") {
var codeBBCode = "[CODE]  [/CODE]";
revisedMessage = currentMessage+codeBBCode;
document.coolsus.message.value=revisedMessage;
document.coolsus.message.focus();
return;
}

if (action == "listopen") {
var liststartBBCode = "[LIST]";
revisedMessage = currentMessage+liststartBBCode;
document.coolsus.message.value=revisedMessage;
document.coolsus.message.focus();
return;
}

if (action == "listclose") {
var listendBBCode = "[/LIST]";
revisedMessage = currentMessage+listendBBCode;
document.coolsus.message.value=revisedMessage;
document.coolsus.message.focus();
return;
}

if (action == "listitem") {
var thisItem = prompt("Enter the new list item. Note that each list group must be preceeded by a List Close and must be ended with List Close.", "");
var itemBBCode = "[*]"+thisItem;
revisedMessage = currentMessage+itemBBCode;
document.coolsus.message.value=revisedMessage;
document.coolsus.message.focus();
return;
}

}

function openwindow(){
	window.open ("","Help","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=600,height=400");
}

function stopError() {
return true; 
}
window.onerror = stopError;

var isie=0;
if(window.navigator.appName=="Microsoft Internet Explorer"&&window.navigator.appVersion.substring(window.navigator.appVersion.indexOf("MSIE")+5,window.navigator.appVersion.indexOf("MSIE")+8)>=5.5) {
isie=1;
}
else {
isie=0;
}
if (isie) {
var html="";
html+='<SC'+'RIPT LANGUAGE="JavaScript">\n';
html+='\n<'+'!--\n';
html+='window.onerror=null;\n';
html+='/'+' -'+'->\n';
html+='</'+'SCRIPT>\n';

html+='';
//html+='<TR><TD BGCOLOR=cccccc STYLE="border:1pt solid #888888"><FONT FACE=arial SIZE=1>&nbsp;&nbsp;Naviguation</font></td></TR><TD STYLE="border:1pt solid #eeeeee" ID="i0" ONMOUSEOVER="document.all.i0.style.background=\'#CFD6E8\';document.all.i0.style.border=\'1pt solid #737B92\';" ONMOUSEOUT="document.all.i0.style.background=\'#eeeeee\';document.all.i0.style.border=\'1pt solid #eeeeee\';" ONCLICK="window.history.go(-1);"><FONT FACE=arial SIZE=1>&nbsp;&nbsp;Page précédente</TD></TR>';

//html+='<TR><TD STYLE="border:1pt solid #eeeeee" ID="i1" ONMOUSEOVER="document.all.i1.style.background=\'#CFD6E8\';document.all.i1.style.border=\'1pt solid #737B92\';" ONMOUSEOUT="document.all.i1.style.background=\'#eeeeee\';document.all.i1.style.border=\'1pt solid #eeeeee\';" ONCLICK="window.history.go(1);"><FONT FACE=arial SIZE=1>&nbsp;&nbsp;Page suivante</TD></TR>';

//html+='<TR><TD STYLE="border:1pt solid #eeeeee" ID="i6" ONMOUSEOVER="document.all.i6.style.background=\'#CFD6E8\';document.all.i6.style.border=\'1pt solid #737B92\';" ONMOUSEOUT="document.all.i6.style.background=\'#eeeeee\';document.all.i6.style.border=\'1pt solid #eeeeee\';" ONCLICK="window.print();"><FONT FACE=arial SIZE=1>&nbsp;&nbsp;Imprimer</TD></TR>';

//html+='<TR><TD STYLE="border:1pt solid #eeeeee" ID="i2" ONMOUSEOVER="document.all.i2.style.background=\'#CFD6E8\';document.all.i2.style.border=\'1pt solid #737B92\';" ONMOUSEOUT="if (window.top.document.links[0].target == \'_blank\') {document.all.i2.style.background=\'#cccccc\';document.all.i2.style.border=\'1pt solid #888888\';} else {document.all.i2.style.background=\'#eeeeee\';document.all.i2.style.border=\'1pt solid #eeeeee\';}" ONCLICK="document.all.i2.style.background=\'#cccccc\';document.all.i2.style.border=\'1pt solid #888888\';if (window.top.document.links[0].target == \'_blank\') {for (var i=0; i<=(window.top.document.links.length-1); i++) {window.top.document.links[i].target = \'_self\';}}else{{for (var i=0; i<=(window.top.document.links.length-1); i++) {window.top.document.links[i].target = \'_blank\';}}};"><FONT FACE=arial SIZE=1>&nbsp;&nbsp;Ouvrir les liens dans des &nbsp;&nbsp;nouvelles fenêtres</TD></TR>';

//html+='<TR><TD BGCOLOR=888888><IMG SRC="images/pix.gif" WIDTH="1" HEIGHT="1"></TD></TR>';

//html+='<TR><TD STYLE="border:1pt solid #eeeeee" ID="i8" ONMOUSEOVER="document.all.i8.style.background=\'#CFD6E8\';document.all.i8.style.border=\'1pt solid #737B92\';" ONMOUSEOUT="document.all.i8.style.background=\'#eeeeee\';document.all.i8.style.border=\'1pt solid #eeeeee\';" ONCLICK="if(window.parent.document.body.style.zoom!=0) window.parent.document.body.style.zoom*=1.1111111111111111111111111111111111111; else window.parent.document.body.style.zoom=1.11111111111111111111111;"><FONT FACE=arial SIZE=1>&nbsp;&nbsp;Zoom in</FONT></TD></TR>';

//html+='<TR><TD STYLE="border:1pt solid #eeeeee" ID="i9" ONMOUSEOVER="document.all.i9.style.background=\'#CFD6E8\';document.all.i9.style.border=\'1pt solid #737B92\';" ONMOUSEOUT="document.all.i9.style.background=\'#eeeeee\';document.all.i9.style.border=\'1pt solid #eeeeee\';" ONCLICK="if(window.parent.document.body.style.zoom!=0) window.parent.document.body.style.zoom*=0.9; else window.parent.document.body.style.zoom=0.9;"><FONT FACE=arial SIZE=1>&nbsp;&nbsp;Zoom out</FONT></TD></TR>';

//html+='<TR><TD STYLE="border:1pt solid #eeeeee" ID="i7" ONMOUSEOVER="document.all.i7.style.background=\'#CFD6E8\';document.all.i7.style.border=\'1pt solid #737B92\';" ONMOUSEOUT="document.all.i7.style.background=\'#eeeeee\';document.all.i7.style.border=\'1pt solid #eeeeee\';" ONCLICK="window.parent.location.href=window.parent.location.href;"><FONT FACE=arial SIZE=1>&nbsp;&nbsp;Rafraîchir</TD></TR>';

//html+='<TR><TD BGCOLOR=cccccc STYLE="border:1pt solid #888888"><FONT FACE=arial SIZE=1>&nbsp;&nbsp;Webhebdo.net</TD></TR>';

//html+='<TR><TD STYLE="border:1pt solid #eeeeee" ID="s1" ONMOUSEOVER="document.all.s1.style.background=\'#CFD6E8\';document.all.s1.style.border=\'1pt solid #737B92\';" ONMOUSEOUT="document.all.s1.style.background=\'#eeeeee\';document.all.s1.style.border=\'1pt solid #eeeeee\';" ONCLICK="window.top.window.open (\'modules.php?name=Feedback \');"><FONT FACE=arial SIZE=1>&nbsp;&nbsp;Nous contacter</TD></TR>';

//html+='<TR><TD STYLE="border:1pt solid #eeeeee" ID="s4" ONMOUSEOVER="document.all.s4.style.background=\'#CFD6E8\';document.all.s4.style.border=\'1pt solid #737B92\';" ONMOUSEOUT="document.all.s4.style.background=\'#eeeeee\';document.all.s4.style.border=\'1pt solid #eeeeee\';" ONCLICK="window.top.window.open (\'http://www.webhebdo.net\');"><FONT FACE=arial SIZE=1>&nbsp;&nbsp;Accueil</TD></TR>';

html+='</TABLE>';
html='<TABLE STYLE="border:1pt solid #888888" BGCOLOR="#eeeeee" WIDTH="160" CELLPADDING="0" CELLSPACING="0">'+html;
var oPopup = window.createPopup();
}

function dopopup(x,y) {
if(isie) {
var oPopupBody = oPopup.document.body;
oPopupBody.innerHTML = html;
oPopup.show(x, y, 160, 181, document.body);
}
}
function click(e) {
if(isie) {
if(document.all) {
if(event.button==2||event.button==3) {
dopopup(event.x-1,event.y-1);
}
}
}
}
if(isie) {
document.oncontextmenu = function() { dopopup(event.x,event.y);return false; }
// document.onmousedown = click;
}

//=======================================================================================
//=======================================================================================

function StatusTimer() {
       var dt=new Date()
       window.status=dt.getHours()+":"+dt.getMinutes()+":"+dt.getSeconds();
       setTimeout("StatusTimer()",100);
}
StatusTimer();

//=======================================================================================
//=======================================================================================

