function movepic ( img_name, img_src ) {
  document [ img_name ] . src = "images/" + img_src;
}

function pop ( htmlPage ) {
  searchWin = window . open ( htmlPage, 'pop', 'scrollbars=yes,resizable=no,width=410,height=220,status=no,location=no,toolbar=no' );
}

function pop1 ( htmlPage ) {
  searchWin = window . open ( htmlPage, 'pop', 'scrollbars=yes,resizable=no,width=550,height=400,status=no,location=no,toolbar=no' );
}

function pop2 ( htmlPage ) {
  searchWin = window . open ( htmlPage, 'pop', 'scrollbars=yes,resizable=no,width=550,height=310,status=no,location=no,toolbar=no' );
}

function pop3 ( htmlPage ) {
  searchWin = window . open ( htmlPage, 'pop', 'scrollbars=yes,resizable=no,width=380,height=280,status=no,location=no,toolbar=no' );
}

function popImage ( htmlPage, winWidth, winHeight ) {
  if ( winWidth == null ) winWidth = 600;
  if ( winHeight == null ) winHeight = 350;		
  if ( navigator . appVersion . charAt ( 0 ) >= "4" && navigator . userAgent . indexOf ( "MSIE" ) == -1 ) 
     {
       x = window . outerWidth - winWidth;
       oldWin = window . open ( htmlPage, 'popImageWindow', 'dependent=0,status=0,resizable=0,toolbar=0,scrollbars=0,menubar=0,outerWidth='
                                 + winWidth + ',outerHeight=' + winHeight + ',screenX=' + x +',screenY=15' );
       if ( oldWin . name == 'popImageWindow' )
          {
            oldWin . close ( );
            oldWin = window . open ( htmlPage, 'popImageWindow', 'dependent=0,status=0,resizable=0,toolbar=0,scrollbars=0,menubar=0,outerWidth='
                                     + winWidth + ',outerHeight=' + winHeight + ',screenX=' + x +',screenY=15' );
          }
     } 
  else
     {
       oldWin = window . open ( htmlPage, 'popImageWindow', 'status=0,resizable=0,toolbar=0,scrollbars=0,menubar=0,width='
                                 + winWidth + ',height=' + winHeight );
       if ( oldWin . name == 'popImageWindow' )
          {
            oldWin . close ( );
            oldWin = window . open ( htmlPage, 'popImageWindow', 'status=0,resizable=0,toolbar=0,scrollbars=0,menubar=0,width='
                                     + winWidth + ',height=' + winHeight );
          }
     }
}

