ajax = new sack(); function loadGaleryImage(imgId) { // visibileElement('div_progress'); ajax.method = 'GET'; ajax.requestFile = '/ajax_slika.php?int_img_id=' + imgId + '&rnd=' ; ajax.element = 'content'; // ajax.onCompletion = stopProgressAnimation; ajax.runAJAX(); } function initDragDropScriptAndProgress() { initDragDropScript(); stopProgressAnimation(); } function stopProgressAnimation() { // alert(ajax.response); visibileElement('div_progress', 0); } function iecompattest(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body; } function finishUpdate() { visibileElement('div_progress', 0); eval(ajax.response); // Executing the response from Ajax as Javascript code } function getCheckedValue(radioObj) { if(!radioObj) return ""; var radioLength = radioObj.length; if(radioLength == undefined) if(radioObj.checked) return radioObj.value; else return ""; for(var i = 0; i < radioLength; i++) { if(radioObj[i].checked) { return radioObj[i].value; } } return ""; }