var currentForm;
var cursorImgDir = "/beef/img/cursor/";
document.onkeydown = showMenu;
//document.oncontextmenu=Function("return rightMenu();");

function showMenu(){
	keyRegister();
}

function claySubmit(form, url, timeout) {
        form.action = url;

        form.submit();

	currentForm = form;

	disableForm(currentForm);
	setTimeout("enableForm(currentForm)", timeout);
}

function disableForm(form) {
	for(i = 0; i < form.elements.length; i++) {
		form.elements[i].disabled = "disabled";
	}
}

function enableForm(form) {
	for(i = 0; i < form.elements.length; i++) {
		form.elements[i].disabled = "";
	}
}

/* ÉèÖÃÊó±ê×´Ì¬Ã¦ */
function busyCursor(){
	var cursor = "wait";
	var src = window.event.srcElement;
	if(src!=null && src.style!=null)
		src.style.cursor = cursor;
	document.body.style.cursor = cursor;
}	