<!--

function show_hide_div(state,object) {
//alert(object);
if(state) { object.style.display="block"; }
else { object.style.display="none"; }
}


function open_new_window(url,w,h,scrollbars) {
winLeft = (screen.width-800)/2; 
winTop = (screen.height-720)/2; 
new_window = window.open(url,'my_window','scrollbars='+scrollbars+',toolbar=0,menubar=0,resizable=0,dependent=0,status=0,width='+w+',height='+h+',left='+winLeft+',top='+winTop);
}

function go_to_delete(text,url) { if (confirm(text)) { location = url; } }
function checkAll(formId,cName,check) { for (i=0,n=formId.elements.length;i<n;i++) if (formId.elements[i].className.indexOf(cName) !=-1) formId.elements[i].checked = check; }

function show_hide_div_id(state,object_id) {
if (!document.getElementById(object_id)) return false;
var object = document.getElementById(object_id);
if(state) { object.style.display="block"; }
else { object.style.display="none"; }
}

function show_top_submenu(object_n) {
for (x=1;x<=50;x++)
{ var this_id = 'top_submenu_'+x;
  if (document.getElementById(this_id)) show_hide_div_id(0,this_id);
}
if (document.getElementById('top_submenu_'+object_n)) show_hide_div_id(1,'top_submenu_'+object_n);
}

