<!--
//===============================================================================================
//= Copyright 2002
//= Billy Muth
//= www.billymuth.com
//===============================================================================================

//===== global javascript and variables =========================================================
var global_screen_width = screen.width;
var global_screen_height = screen.height;



//===== generic_open_new_window function ========================================================
//= example of function call for this function:
//= <a href="javascript:generic_open_new_window('name', 'url', center_x, center_y, left, top,
//= width, height, toolbar, menubar, statusbar, scrollbar, resizable)">Hyperlink Text</a>
//===============================================================================================
function generic_open_new_window(name, url, center_x, center_y, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
	var toolbar_string = toolbar ? 'yes' : 'no';
	var menubar_string = menubar ? 'yes' : 'no';
	var statusbar_string = statusbar ? 'yes' : 'no';
	var scrollbar_string = scrollbar ? 'yes' : 'no';
	var resizable_string = resizable ? 'yes' : 'no';
	var center_x_string = center_x ? 'yes' : 'no';
	if(center_x_string == 'yes')
	{
		left = (global_screen_width - width - 12) / 2;
	}
	var center_y_string = center_y ? 'yes' : 'no';
	if(center_y_string == 'yes')
	{
		top = (global_screen_height - height - 36) / 2;
	}
	window.open(url, name, 'left='+left+', top='+top+', width='+width+', height='+height+', toolbar='+toolbar_string+', menubar='+menubar_string+', status='+statusbar_string+', scrollbars='+scrollbar_string+', resizable='+resizable_string);
}

//-->