<!--

// you need to include the browser_detect.js script in the HTML to use this script

function fullopenwindow(windowname,winwidth,winheight) { //open a new browser window of a set size
  var window_options
  var new_window_name
	
	if (BrowserDetect.browser == "Safari")		//also variables 'BrowserDetect.version' and 'BrowserDetect.OS'
	{	// Open in the same browser window - for iphones
		new_window_name ='_self';
	}
	else
	{	// Open to a new window
		// by using a random window name, each document will open into a new window which fixes the problem of user
		// not being able to see the new document opened into the previous (same) window which was minimised
		// IE doesnt support swapping between open windows by window name, you need the winref.
	
		new_window_name = Math.round(10000*Math.random());
		new_window_name += '';	//convert number to string 
	}

  window_options = 'toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes, ';
  window_options += 'width=' + winwidth;
  window_options += ', height=' + winheight;
  winref=window.open(windowname,new_window_name,window_options);

}


-->
