/* ps_url = a string representing the address of the file to popup
 * ps_id = is an optional string parameter allowing the popup window to be named in the DOM
 * ps_attributes = a string containing the attributes for the new window that will popup if it
 *                 is null at the call then ps_attributes is assigned default values in the if
 *                 statement below
 * EXAMPLE:
 * newWindow( 'http://www.perdisco.com', perdiscoPop, 'height=10,width=10,top=10,left=10' )
 */

function newWindow( ps_url, ps_id, ps_attributes )
{
   if( ps_attributes == null ) 
   {
      ps_attributes = 'height=500,width=750,location=no,menubar=no,resizable=yes,top=10,left=10,scrollbars=yes,status=yes,titlebar=yes,toolbar=no';
   }
   eval( ps_id + " = window.open( '" + ps_url + "', '" + ps_id + "', '" + ps_attributes + "' );" );
   eval( "if( " + ps_id + " !=null ) " + ps_id + ".focus();" );
}