//Function to jump to another forum
//--------------------------------------------
function ForumJump(URL) {
//--------------------------------------------
  if (URL.options[URL.selectedIndex].value != "") self.location.href = URL.options[URL.selectedIndex].value;  
  return true;
}

//Function to open pop up window
//--------------------------------------------
function openWin(theURL,winName,features,nWidth,nHeight) {
//--------------------------------------------
  features += ",width="+nWidth+",height="+nHeight+",left="+String(window.screen.Width/2-(nWidth/2))+",top="+String(window.screen.Height/2-(nHeight/2)-10)
    window.open(theURL,winName,features);
}

//Function to open preview post window
//--------------------------------------------
function OpenPreviewWindow(targetPage, formName){
//--------------------------------------------
  now = new Date  
  
  //Open the window first   
     openWin('','preview','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1',680,400)
       
     //Now submit form to the new window
  actionBackup = formName.action
     formName.action = targetPage + "?ID=" + now.getTime();  
  formName.target = "preview";
  formName.submit();
     formName.action = actionBackup
}

function updatets(x) {
if (x>1) {
 string=' membres connectés)';
} else {
 string=' membre connecté)';
}
document.getElementById('numts').innerHTML = '(' + x + string;
}

