function onloadEvent() { } function confirmWork(caption) { return confirm("Видалити " + caption + "?"); } function handleDelete(form, caption, id) { var hdId = document.getElementById('hdId'); if(hdId != null) { hdId.value = id; } return confirm("Видалити " + caption + "?"); } function handleUpDown(form, id, positionOrder) { var hdId = document.getElementById('hdId'); if(hdId != null) { hdId.value = id; } var hdPositionOrder = document.getElementById('hdPositionOrder'); if(hdPositionOrder != null) { hdPositionOrder.value = positionOrder; } submit(form); return false; } function validateControl(ctrl, error) { if(ctrl != null) { if(ctrl.value != '') return true; else { alert(error); return false; } } return false; } function showQuestion(qstId, descrId, description, width, height, position) { if((description != null)&&(description != '')) { var qst = document.getElementById(qstId); if(qst != null) { qst.style.top = 12; qst.style.left = (position == 'left') ? -width - 2: 14; qst.style.width = width; qst.style.height = height; qst.style.display = 'block'; var desr = document.getElementById(descrId); if(desr != null) { desr.innerHTML = description; } } } } function hideQuestion(qstId) { var qst = document.getElementById(qstId); if(qst != null) { qst.style.display = 'none'; } }