
function focusCurrentField() {
	var f = document.all(g_sSetFocusControlName, 0);
	if (f != null) {
		f.focus();
		if (f.tagName.toLowerCase() == 'select') {return;}
		switch(f.type.toLowerCase()) {
			case 'radio': {return;}
			case 'checkbox': {return;}
			default: {
				if (f.value != null) {
					if (f.value.length > 0) {
						var r = f.createTextRange();
						r.select();
					}
				}
			}
		}
	}
}


function btnBack_onClick(sName) {
	//alert('here!');
	var frm = document.all(sName, 0);
	//alert(document.all(sName + '_bBack').value);
	document.all(sName + '_bMessages').value = 1;
	frm.submit();
}