// JavaScript Document
//src: javascript:newWindow('../folder/page','SailingAnarchy','800','600')

function newWindow(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight)
{
  var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
  var int_windowTop = (screen.height - a_int_windowHeight) / 2;
  var str_windowProperties='height='+a_int_windowHeight+',width='+a_int_windowWidth+',top='+int_windowTop+',left='+ int_windowLeft+',scrollbars=yes,resizable=yes,menubar=no,toolbar=no,location=no,directories= no,status=no,fullscreen=no,dependent=yes,channelmode=no';
  
  var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
   // if (parseInt(navigator.appVersion) >= 4) {
   //   obj_window.window.focus();
   // }
}


function popup(str_url)
{
	window.open(str_url,'window_name','width=450,height=160,scrollbar=0');
}

function modalWindow(w_url, w_width, w_height)
{
	var int_windowLeft = (screen.width - w_width) / 2;
	var int_windowTop = (screen.height - w_height) / 2;
	
	var str_windowproperties="dialogWidth:"+w_width+"px; dialogHeight:"+w_height+"px; dialogTop:"+int_windowTop+"px; dialogLeft:"+int_windowLeft+"px; edge:raised; resizeable:no; help:no; status:no";
	
	var answer = window.showModalDialog(w_url, "SailingAnarchy", str_windowproperties);	
		
}

