function TrBck(obj, classe) {
   if (obj) {
        obj.className = classe;
   } else {
        obj.className = "";
   }
}

function newwindow(img, width, height) {
  if(!width || !height) {
     return false;
  }
  var html = '<html><head><style type="text\/css">\n'+
             'body,html { margin:0px; }\n'+
             '<\/style><\/head><body>\n'+
             '<img src="'+img+'" width="'+width+'" height="'+height+'" border="0">\n'+
             '\n'+
             '<\/body><\/html>'; 
  var win = window.open(img, '', 'width='+width+', height='+height);
  win.document.write(html); 
}

function addsmile(smile){
    element = document.getElementById('comment');
    element.value+=" "+smile+" ";
    element.focus();
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
