function MM_openBrWindow(theURL,winName,features) { //v2.0 
  var win = window.open(theURL,winName,features);
  win.focus();
  return win;
}

function popUp(file,width,height) {
	height = parseInt(height);
	width = parseInt(width);
	scrollbars = '';
	
	if (width > parseInt(screen.availWidth) || height > parseInt(screen.availHeight)) {
		width = parseInt(screen.availWidth)-60;
		height = parseInt(screen.availHeight)-60;
		scrollbars="scrollbars=yes";
	} else {
		height += 30;	
	}
	popup = window.open('/rtc-popUp/'+file,'popup','resizable=yes,width='+width+',height='+height+','+scrollbars);
}

function setStatus(str) {
	window.status = str;
}
