function mediaPlayer(movie_name)
{
    if (movie_name != '') {
        consoleurl = "player.htm?name=" + movie_name;
    } else {
        consoleurl = "player.htm";
    }
    //window.open(consoleurl,"console","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=681,height=487");
    NewWindow(consoleurl,'mediaPlayer','681','487','no');
}

/*
    This script retrieved from the JS-Examples archives
    http://www.js-x.com
    1000s of free ready to use scripts, tutorials, forums.
    Author: Eric King  - http://redrival.com/eak/index.shtml 
    Source: http://js-x.com/javascript/?view=24
*/
var win= null;
function NewWindow(mypage,myname,w,h,scroll){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=yes'+',';
      settings +='menubar=no'+',';
      settings +='toolbar=no'+',';
      settings +='location=no'+',';
      settings +='directories=no'+',';
      settings +='status=no';
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
