function setfocus(a,b) {
	try {
		var fo=eval('document.forms.'+a);
		if (fo) {
			var fp=eval('document.forms.'+a+'.'+b);
			if (fp) {
				fp.focus();
				if (fp.value) fp.value = fp.value;
				} 
			} 
		}
	catch(e) { }
	}
function getid(t) {
	var o = document.layers ? document.layers[t] :
	document.getElementById ? document.getElementById(t) :
   	document.all[t]; return o;
	}
function update1(v1) {
	document.forms.frm.record1.value=v1;
	}
function update2(v1,v2) {
	document.forms.frm.record1.value=v1;
	document.forms.frm.record2.value=v2;
	}
function update3(v1,v2,v3) {
	document.forms.frm.record1.value=v1;
	document.forms.frm.record2.value=v2;
	document.forms.frm.record3.value=v3;
	}
function savescrollpos() {
	var theTop=0;
	if (document.documentElement && document.documentElement.scrollTop) {
		theTop = document.documentElement.scrollTop;
		}
	else if (document.body) {
		theTop = document.body.scrollTop;
		}
	document.forms.frm.scrollpos.value=theTop;
	}
function download(v1,v2) {
	window.location='download.cfm?folder='+escape(v1)+'&file='+escape(v2);
	return false;
	}
function cancel() {
	window.location='index.cfm';
	}
function downloadold(v1,v2) {
	var w=600;
	var h=400;
	var sw=screen.width;
	var sh=screen.height;
	var ox=(sw/2)-(w/2);
	var oy=(sh/2)-(h/2);
	wid=window.open('download.cfm?folder='+escape(v1)+'&file='+escape(v2),'popwin','width=' + w + ',height=' + h + ',screenX='+ ox +',screenY='+ oy +',top='+ oy +',left='+ox);
	}
function uploadfiles() {
	mmSWFUpload.callSWF();
	return false;
	}