function deleteItem() {
  if(confirm('Are you sure you want to delete this item?')) {
    document.forms['delete'].submit();
  }
}

var cn = '';
function over(obj) {
  cn = obj.style['background'];
  if(cn == '') {
    cn = '#ffffff';
  }
  obj.style['background'] = '#ffff99';
  obj.style['cursor'] = 'hand';
}
function out(obj) {
  obj.style['background'] = cn;
  obj.style['cursor'] = '';

}

function editSection(view, params) {
  var win = window.open('/admin/edit.php?view='+view+'&'+params, 'edit', 'width=700, height=900');
}

function closeThumb() {
    alert('aaaaa');
}

function openThumb(thumb, ms) {
  var win = window.open('/appfound/ThumbNailCreator.php?file='+thumb+'&maxsize='+ms, 'tn', 'width=800, height=600');
}

function addSection(view) {
  var win = window.open('/admin/add.php?view='+view, 'edit', 'width=620, height=800');
}
