function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function openNewWindow(URLtoOpen, windowName, windowFeatures) { 
 newWindow=window.open(URLtoOpen, windowName, windowFeatures); 
}

function openWin(url,wname,w,h,resizable,toolbar,scrollbars){
		
		if (h >= (screen.height-30)){
			wh = screen.height-100;
			w += 18;
			scrollbars = 1;
		}else wh = h;
		
		win_set = 'width=' + w;
		win_set += ',height=' + wh;
		win_set += ',resizable=' + resizable;
		win_set += ',toolbar=' + toolbar;
		win_set += ',scrollbars=' + scrollbars;
		win_set += ',fullscreen=no';
		
		swin = window.open(url,wname,win_set);
		swin.focus();
}

function popup (page, w, h, scroll) {
	if (!w)
		w = 600;
	
	if (!h)
		h= 600;

	if (!scroll)
		scroll = 0;

	_pwin = window.open(page, "pwin", "menubar=0, reszable=0, scrollbars="+scroll+", status=no, top=0, left=0, width=" +w+", height="+h);
	if (_pwin) {
		_pwin.focus();
	}
}

