function finload(a) {
	if (window.Event){
		document.captureEvents(Event.KEYDOWN);
	}		
	if (a == 5) {	
		var frm = document.forms['1'];
		if (typeof(frm) == 'object' && frm.txtName.value == '') {
			frm.txtName.focus();
		}	
		window.status = "Editing accounts..."
		
	}else if (a == 4) {
		var frm = document.forms['frmLogin'];
		if (typeof(frm) == 'object' && frm.txtUser.value == '') {
			frm.txtUser.focus();
		}	
		window.status = "Members's login..."
	}else if (a == 3) {	

		var frm = document.forms[1];
		
		//alert(frm.txtDesc.value)
		//alert(frm.sM0.selectedIndex)

		
		if (frm.txtEdit.value == '') {
			frm.txtEdit.focus();
		}else if (frm.txtDesc.value == '') {
			frm.txtDesc.focus();
		}else if (frm.sM0.selectedIndex < 1) {
			frm.sM0.focus();
		}else{
			frm.txtDesc.focus();
		}

		setPrice();
		setPrice(2);
		
		window.status = "Items' edition..."
		
	}else if (a == 2) {	
		var frm = document.forms[1]
		if (frm.txtMenu.value == '') {
			frm.txtMenu.focus()
		//}else if (frm.txtDesc.value == '') {
		//	frm.txtDesc.focus()
		}else{
			var bS1 = typeof(document.images['iS1']) == 'object'
			var bS2 = typeof(document.images['iS2']) == 'object'
			var bI1 = typeof(document.images['iL1']) == 'object'
			var bI2 = typeof(document.images['iL2']) == 'object'
			var bN1 = typeof(document.images['iN1']) == 'object'
			var bN2 = typeof(document.images['iN2']) == 'object'
			if (bS1 || bI1) {
				frm.txtUlev1.focus()
			}
			if (bS2 || bI2) {			
				frm.txtUlev2.focus()
			}	
		}
		window.status = "Groups' edition..."
	}else{	
		if (a == 6) {
			window.moveTo(0,0);
			window.resizeTo(screen.width,screen.height-53);
		}
		if (sysName != 'Oletours_images') {
			var frm = document.forms[0];
			frm.txtSearch.focus();
		}	
		window.status = "Welcome to " + sysName + "'s online store...";
	}
}	
