<!--

function openwindow(windowname,winwidth,winheight) { //open a new browser window of a set size
  var window_options;
  var random_name;
 
  // 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.

  random_name = Math.round(10000*Math.random());
  random_name += '';	//convert number to string  

  window_options = 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, ';
  window_options += 'width=' + winwidth;
  window_options += ', height=' + winheight;
  winref=window.open(windowname,random_name,window_options);
  
}


//-->
