// this function will open a "popup" window with a desired height and width  and bring it to focus
/*
Options:
*url = The URL you want it to go
*w = width of the window
*h = height of the window
winname = window name (if you have multiple windows)
scrolloption = window is scrollable (yes or no)

* required

---------------------------------------------------
example call:
windowpopup('default.html',500,600,'pop_window','yes')

*/


function windowpopup(url,w,h,winname,scrolloption)
  {
	 
	 if (scrolloption == null)
	 	{
		scrolloption = 'no';
		}
	 	 
	 if (winname == null)
	 	{
		winname = 'newwindow';
		}
	      
	 var browserstring = '';
	 var windowoptions = 'width='+w+',height='+h+',resizable=no,scrollbars='+scrolloption;

	 var newwindow = window.open(url,winname,windowoptions);	
     newwindow.focus();
	 
  } 