//============================================================================
// POP UP
// Used to reveal a new window contenting new content.
//
// First version is default, the later allows for a window size adjustment.
//============================================================================
//function popUp (URL) 
//{
//  day = new Date();
//  id = day.getTime();
//  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=600');");
//}

function popUp (URL, width, height) 
{
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=" + width + ",height=" + height + "');");
}

function mediaUp (URL)
{
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=600');");
}

function keyUp ()
{
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open('http://activities.byui.edu/sports/images/key.png', '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=195,height=145');");
}

function appUp (URL)
{
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=450');");
}