// common functions - portable between projects

function fn_dialogue(s_url) {
	RH_openBrWindow(s_url,'admin',780,580);
}

function fn_dialogue_standalone(s_url,s_name) {
	RH_openBrWindow(s_url,s_name,780,580);
}

// opens window in centre of screen
function openPopUpWindow(theURL,winName,w,h) { //v2.0
  var features;
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  features='width=' + w + ',height=' + h + ',top='+wint+',left='+winl +',scrollbars=yes';
  myWin=window.open(theURL,winName,features);
  myWin.focus();
}