function createWindow(url,windowname,w,h,l,t,mb,sb,tb,rb) 
{
	if (!w){w=800;}//width
	if (!h){h=600;}//height
	if (!l){l=100;}//left
	if (!t){t=100;}//top
	if (!mb){mb=0;}//menubar
	if (!sb){sb=1;}//scrollbar
	if (!tb){tb=0;}//toolbar
	if (!rb){rb='yes';}//resizeable
    var features ='width=' + w+
        ',height='      + h +
        ',left=' + l +
        ',top='    + t +
        ',menubar='     + mb +
        ',scrollbars='  + sb +
        ',toolbar='     + tb +
        ',resizable='   + rb + //;
		',status=1';
    window.open (url, windowname, features);
}

 function putFocus(formInst, elementInst) {
  if (document.forms.length > 0) {
   document.forms[formInst].elements[elementInst].focus();
  }
 }
 
 function tablerow_changebackground(rowObject, newcolor) {
 	rowObject.style.backgroundColor = newcolor;
 }
function fnloadSYSlist(fieldid,listname){
params ="dblist=" + listname;ajaxurl=FNsitepath() + 'utilities/scripts/ajaxselectlists.php';
new Ajax.Updater("RPpromogroups", ajaxurl, { parameters: params} );
return false;
}
function FNsitepath(){
urlprefix = window.location.protocol + "//" + window.location.host;
urlstr = window.location.pathname.toLowerCase(); 
if (urlstr.indexOf('admin/')==1){return urlprefix + "/admin/"} else {return urlprefix +"/";}
}

