function PopUp(url, name, width,height,center,resize,scroll,posleft,postop) {
    if (posleft != 0) { x = posleft }
    if (postop  != 0) { y = postop  }

    if (!scroll) { scroll = 1 }
    if (!resize) { resize = 1 }

    if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
      X = (screen.width  - width ) / 2;
      Y = (screen.height - height) / 2;
    }
    if (scroll != 0) { scroll = 1 }

    var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');
}

function jumpMenu(targ,selObj,restore){
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function IB_goToURL() {
  var i, args=IB_goToURL.arguments; document.IB_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}


// Functions for quick quote selected text (for quickpost)

function copyQAI(author) { // Simple quoting with author using bold & italic fonts
 txt='' 
 if (document.getSelection) {
  txt=document.getSelection()
 } else if (document.selection) {
  txt=document.selection.createRange().text;
 } 
 txt='[B]'+author+':[/B] [I]'+txt+'[/I]\n'
} 


function pasteQ() { 
document.REPLIER.Post.value=document.REPLIER.Post.value+txt; 
} 


