// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function ShowDialog(url, hwnd, id){ var new_window; var new_window_height = screen.availHeight/4; var new_window_width = screen.availWidth/3; var new_window_size = ", height="+new_window_height+", width="+new_window_width; var new_window_pos = ", top="+((screen.availHeight/2)-(new_window_height/2))+", left="+((screen.availwidth/2)-(new_window_width/2)); new_window = window.open(url+"&"+id, hwnd, "location=0, status=0, resizable=1,scrollbars=1, menubar=0, toolbar=0, directories=0"+new_window_size+new_window_pos); new_window.focus(); return; }; // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function GetCode () { var exp = new Date(); var code = ""; exp.setTime (exp.getTime() + 100*Math.random()); code= exp.toGMTString(); return code; }; // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function setCode(code, id) { document.getElementById(code).value =id; }; // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function reloadWindow(hwnd) { // var target_window = window[hwnd]; var target_window = window.opener; if (target_window) { target_window.location.reload()}; return; };