function initFrameLink() {
	var menuFrame = parent.parent.menu;
	if (menuFrame)
		menuFrame.initLocation(1);
}

//document.oncontextmenu=new Function("return false");
function chknum(x, minV, maxV) {
	if (x.length==0)
		return false;
	
	for(y=0; y<x.length; y++) {
 		if(x.charCodeAt(y) > 57 || x.charCodeAt(y) < 48)
			return false;
	}
	
	if (x<minV || x>maxV)
		return false;
	
	return true;
}

function advEditor(objName, width, height, langCode, rid) {
	width=600;
	height=500;
	var props = "scrollbars=no,resizable=yes";
	if (width>0 && height>0) {
		var x = (screen.width - width) / 2;
		var y = (screen.height - height) / 2;
		props += ",width=" + width + ",height=" + height + ",left=" + x + ",top=" + y + ",screenX=" + x + ",screenY=" + y;
	}
	url = '/common/editor.jsp?objName='+objName+'&langCode='+langCode+'&rid='+rid;
	window.open(url,'',props);
}