// This script and many more are available free online at
// The JavaScript Source!! http://javascript.internet.com


function DisplayImage( img, top, left)
{
  img1 = new Image();
  img1.src = ( img);

  //func = "disp('"+img+","+img1+","+top+","+left+"')";
  //interval = setTimeout( func, 3000);

  disp( img, img1, top, left);
}


function disp( img, img1, top, left)
{
  if ( (img1.width!=0) && (img1.height!=0))
       viewImage( img, img1, top, left);

  else
  {
     func = "disp('"+img+","+img1+","+top+","+left+"')";
     interval = setTimeout( func, 100);
  }
}


function viewImage( img, img1, top, left)
{
  w = img1.width + 20;
  h = img1.height + 20;

  //w = img1.width + 25;
  //h = img1.height + 70;

  dim_string = "top="+top+",left="+left+",width="+w+",height="+h;

  rc = window.open( img, "", dim_string);
}


function disp_page(dir, name)
{
	x = window.open(dir + "/" + name + ".htm", name,
			"scrollbars=yes, menubar=no, toolbar=no, resizable=yes, location=no, status=no");
}


