
/**********************************************************************/

function run_simsegv() {

if (screendim==2) {
   xstr = "scrollbars=yes,toolbar=no,location=no,status=yes,"
          + "menubar=no,directories=no,"
          + "top=10,left=10,width=950,height=610" ;
   mainwin= window.open( "simsegv/_main.htm", "run_simsegv", xstr ) ;
   } // if screendim

if (screendim==1) {
   alert( 'SimSeg Viewer runs best when the screen dimensions \r '
        + 'are 1024x768 or higher. \r\r '
        + 'The available dimensions are only ' +
           screen.width + 'x' + screen.height + '. \r\r'
        + 'In this situation, the SimSeg Viewer program will load \r '
        + 'into one window and its Notes & Help pages will load \r '
        + 'into a second, overlapping window. \r\r '
        + 'Switch between these windows by clicking on the \r '
        + '"Title Bar" at the top of each window. \r\r '
        ) ;

   xstr = "scrollbars=yes,toolbar=no,location=no,status=no,"
          + "menubar=no,directories=no,resizable=no,"
          + "top=10,left=10,width=350,height=530" ;
   helpwin = window.open( "simsegv/_main1.htm", "run_simsegv", xstr ) ;

   } // if screendim

if (screendim < 1) {
   alert( 'SimSeg Viewer requires screen dimensions of 800x600 or higher. \r\r' 
        + 'The available dimensions are only ' + screen.width + 'x' + screen.height + '. \r\r' 
        + 'The program cannot run and will not be loaded. \r'
        ) ;
   } // if screendim

} // function

/**********************************************************************/
