// Javascript Code
// Written by Matthew Mecham unless otherwise stated.
// Copyright (c) 2001 Ikonboard.com
// <http://www.ikonboard.com>

// Start the subroutines.


var text_delete_message = "Are you sure you want to delete this message?";
var text_no_action      = "Ok, no action has been taken";



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]+"'");
}


function GoBack() {

    history.go(-1);
}


function ibvoid () { return; }


function IBCcheck_delete(theURL) {
   if (confirm(text_delete_message)) {
      window.location.href=theURL;
   }
   else {
      alert (text_no_action);
   } 
}







