<!--
function browser_max(wnda){
    wnda.moveTo(0,0);
    wnda.resizeTo(screen.availWidth,screen.availHeight);
}

function adminpop(sid) {
  var w = screen.width-10;
  var l = 0;
  var h = screen.height - 60;
  var url = 'admin.php?action=frames&PHPSESSID=' + sid;
  var name = sid;
  var features = 'scrollbars=no,toolbar=no,statusbar=no,menubar=no,resizable=yes,width='+w+',height='+h+',top=0,left='+l;
  var hwnd = window.open(url,name,features);
  browser_max(hwnd);
}

function apopup(url, wi, hi) {
  var w = (screen.width - wi) / 2;
  var h = (screen.height - hi) / 2;
  var name = wi + hi;
  var features = 'scrollbars=no,toolbar=no,statusbar=no,menubar=no,resizable=yes,width='+wi+',height='+hi+',top=0,left='+w+',top='+h;
  var hwnd = window.open(url,name,features);
}

function template(id, sid) {
  apopup('admin.php?action=templates&do=template&id='+id+'&PHPSESSID='+sid, 850, 550);
}

function LogOut() {
  window.opener.location.href='index.php';
  window.close();
}

function negateChoice(id) { 
	var k=0; 
	while(id.elements[k]) { 
		if(id.elements[k].checked == 1) { 
			id.elements[k].checked=0;
		} else {
			id.elements[k].checked=1; 
		} 
		k++; 
	} 
}

function listRemove(list) {
	var listlen = list.length;
    for ( i = (listlen -1); i>=0; i--){
        if (list.options[i].selected == true ) {
           list.options[i] = null;
        }
    }
}

function listAdd(list, text) {
	var elem = prompt(text, "");
	if(elem=='' || elem=='null' || elem==null) {
	} else {
		list.options[list.length]= new Option(elem);
	}
}

function listSelAll(list) {
	var listlen = list.length;
    for ( i = (listlen -1); i>=0; i--){
        list.options[i].selected = true;
    }
}

function showFAQ(id, req) {
	var obj_img = document.getElementById('img_' + id);
	var obj_tbl = document.getElementById('tbl_' + id);
	if(obj_tbl.style.display == "none") {
		obj_tbl.style.display	= "";
		obj_img.src				= "res/contract.gif";
	} else {
		obj_tbl.style.display	= "none";
		obj_img.src				= "res/expand.gif";		
	}
}
//-->