function popUpWin(url,name,width,height,scroll,resize,status) {
  var winW = (screen.width - width) / 2;
  var winH = (screen.height - height) / 2 - 35;
  win = window.open(url,name,'width='+width+',height='+height+',top='+winH+',left='+winW+',scrollbars='+scroll+',resizable='+resize+',status='+status+'')
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function showHide(){
  var element;
  for (var i=0; i<=showHide.arguments.length; i++) {
    element = document.getElementById(showHide.arguments[i]);
      if(element == null) { continue };
    element.style.display=='' ?  element.style.display='none' : element.style.display='';
  }
}

function delPage() {
  if (window.confirm("Are you sure you want to delete this page?                   \n\nProceed only if you are absolutely sure.")){
    return true;
  }
  return false;
}

function delNews() {
  if (window.confirm("Are you sure you want to delete this news?                   \n\nProceed only if you are absolutely sure.")){
    return true;
  }
  return false;
}

