/*
File:   common.js

Author: Andrei Istomin

Purpose: Defines common javascript routines 

History:  Apr/12/2002 Created
*/

function launch_url ( url) {
	windowURL	= url
	windowTitle = ""

  leftPos=0;
	topPos=0;
	width = 730;
	height = 550;

	if(screen){
		leftPos=( screen.availWidth - width )*0.5;
		topPos= ( screen.availHeight - height)*0.5;
	}
  //toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=
	//windowParams = "top=" + topPos + ",left=" +leftPos + ",width=" + width + ",height=" + height + ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0";
  window.open(windowURL);
}

function loadUrl( url){
	launch_url ( url);
}


function old_launch_url ( url) {
	windowURL	= url
	windowTitle = ""

  leftPos=0;
	topPos=0;
	width = 730;
	height = 550;

	if(screen){
		leftPos=( screen.availWidth - width )*0.5;
		topPos= ( screen.availHeight - height)*0.5;
	}
  //toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=
	//windowParams = "top=" + topPos + ",left=" +leftPos + ",width=" + width + ",height=" + height + ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0";
  window.open(windowURL);
}

function showImage( windowURL, windowTitle){

  leftPos=0
	topPos=0
	width = 660
	height = 510

	if(screen){
		leftPos=( screen.availWidth - width )*0.5
		topPos= ( screen.availHeight - height)*0.5
	}
  //toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=
 windowParams = "top=" + topPos + ",left=" +leftPos + ",width=" + width + ",height=" + height + ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0"
  pic = window.open(windowURL, null, windowParams)
  if (pic) pic.focus()
}




