/*
##################################################
# open_image ()
##################################################
*/
function open_image (title, width, height)
{
	win=window.open (title, 'win', 'resizable=no,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,top=10,left=10,width=' + width + ',height=' + height);
}
/*
# open_image ()

##################################################
# get_parameters ()
##################################################
*/
function get_parameters ()
{
	var idx = document.URL.indexOf('?');
	var parameters = new Array();
	
	if (idx != -1)
	{
		var pairs = document.URL.substring(idx+1, document.URL.length).split('&');
		for (var i=0; i<pairs.length; i++)
		{
			nameval = pairs[i].split('=');
			parameters[nameval[0]] = nameval[1];
	   }
	}
	return parameters;
}
/*
# get_parameters ()

##################################################
# fit_image ()
##################################################
*/
function fit_image ()
{ 	
	var ns = (navigator.appName=="Netscape") ? true:false;
	var iwidth = (ns) ? window.innerWidth : document.body.clientWidth;
	var iheight = (ns) ? window.innerHeight : document.body.clientHeight;
	
	iwidth = (document.images[0].width - iwidth) +40;
	iheight = (document.images[0].height - iheight) + 40;
	
	window.resizeBy(iwidth, iheight);	
	
	self.focus();	
}
/*
# fit_image ()
*/