function OpenWin(wURL, wWidth, wHeight) {
	
	xpos=0; ypos=0;
    if (parseInt(navigator.appVersion) >= 4 ) {
        xpos = Math.round((screen.width - wWidth) / 2);
        ypos = Math.round((screen.height - wHeight) / 2 - 100);
    }
    args = "width=" + wWidth + "," 
    + "height=" + wHeight + "," 
    + "location=0," 
    + "menubar=1,"
    + "resizable=0,"
    + "scrollbars=yes,"
    + "status=0," 
    + "titlebar=0,"
    + "toolbar=0,"
    + "screenx=" + xpos + ","
    + "screeny=" + ypos + ","
    + "left=" + xpos + ","
    + "top=" + ypos;
    
    var win = window.open(wURL, "myWin",args );
	
	if (parseInt(navigator.appVersion) >= 4) {win.window.focus(); }

	return win;

}


function confirmDelete(oObject) 
	{
      var msg = "_____________________________________________\n\n";
          msg+= "                            --- WARNING ---                     \n\n";
          msg+= "You are about to delete this " + oObject + " from the database.\n";
          msg+= "Deletion is irreversible, do you want to continue?\n";
          msg+= "_____________________________________________\n\n";
 
      if (confirm (msg))
   		return true;
      else   
   		return false;
}

function displayMessage(sMsg) 
	{
      var msg = "_____________________________________________\n\n";
          msg+= "                            --- WARNING ---                     \n\n";
          msg+= sMsg;
          msg+= "\nDo you want to continue?\n";
          msg+= "_____________________________________________\n\n";
 
      if (confirm (msg))
   		return true;
      else   
   		return false;
}