﻿var payak_GlobalEditControl=null;
var payak_GlobalMenuItemId=0;
var payak_GlobalSelectControlForEdit=false;

//Iframe top offset
function getOffsetTop(elm){
	return 0;
}

//Iframe left offset
function getOffsetLeft(elm){
	return 0;
}

//show edit wnd
function payakShowEditWnd(elm, contentTypeName, controlId, position, contentId, linkMenuId, eventNumber, groupId, controlTitle, pom1, pom2) {
}

//hide edit wnd
function payakHideEditWnd(){
}
function handleEnter(inField, e) {
    var charCode;
    if (e && e.which) {
        charCode = e.which;
    } else if (window.event) {
        e = window.event;
        charCode = e.keyCode;
    }
    if (charCode == 13) {
        //eval(new String(document.getElementById(inField)).replace("javascript:", "").replace(/%20/g, " "));
        document.getElementById(inField).click();
        return (false);
    }
    return (true);
}
