function confirmDelete(item) {return confirm("Warning: Are you sure you wish to delete this " + item + "? Any child items will also be deleted as part of this action.");}
function MM_findObj(n, d) {
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}
var objPtr;
function show(on) {
obj = MM_findObj(on);
if (obj) {
	if (obj == objPtr)
		return;
	obj.style.display = 'block';
	if (objPtr)
		objPtr.style.display = 'none';
	objPtr = obj;
}
}
var ct = new Array();
var cb = new Array();
function switchTab(tn, bn, gn, sn) {
if (gn == null)
	gn = 'default';
tab = MM_findObj(tn);
if (tab == ct[gn])
	return;
if (tab) {
	tab.style.display = 'block';
	if (sn != null) {
		so = MM_findObj(sn);
		if (so)
			so.value = tn;
	}
	btn = MM_findObj(bn);
	if (btn)
		btn.className = 'on';
	if (ct[gn])
		ct[gn].style.display = 'none';
	if (cb[gn])
		cb[gn].className = '';
	ct[gn] = tab;
	cb[gn] = btn;
}
}
function setDefaultTab(tn, bn, gn, sn) {
if (gn == null)
	gn = 'default';
ct[gn] = MM_findObj(tn);
cb[gn] = MM_findObj(bn);
if (ct[gn])
	ct[gn].style.display = 'block';
if (sn != null) {
	so = MM_findObj(sn);
	if (so)
		so.value = tn;
}
}
function move(fn, tn, lim) {
fb = MM_findObj(fn);
tb = MM_findObj(tn);
if (lim != null && tb.options.length >= lim) {
	alert("Sorry but you cannot have more than " + lim + " items.");
	return;
}
var afb = new Array();
var atb = new Array();
var al = new Array();
var i;
for(i=0; i<tb.options.length; i++) {
	al[tb.options[i].text] = tb.options[i].value;
	atb[i] = tb.options[i].text;
}
var fLength = 0;
var tLength = atb.length
for(i=0; i<fb.options.length; i++) {
	al[fb.options[i].text] = fb.options[i].value;
	if(fb.options[i].selected && fb.options[i].value != "") {
		atb[tLength] = fb.options[i].text;
		tLength++;
	} else {
		afb[fLength] = fb.options[i].text;
		fLength++;
	}
}
afb.sort();
atb.sort();
fb.length = 0;
tb.length = 0;
var c;
for(c=0; c<afb.length; c++) {
	var no = new Option();
	no.value = al[afb[c]];
	no.text = afb[c];
	fb[c] = no;
}
for(c=0; c<atb.length; c++) {
	var no = new Option();
	no.value = al[atb[c]];
	no.text = atb[c];
	tb[c] = no;
}
}
function selectAll(list) {
obj = MM_findObj(list);
if (obj) {
	for (i = 0; i < obj.options.length; i++) {
		obj.options[i].selected = true;
	}
}
}
function setFocus(on) {
setTimeout("setFocusDelayed('" + on + "')", 10);
}
function setFocusDelayed(on) {
o = MM_findObj(on);
if (o) o.focus();
}
