function load_details(count , curr)	
{
  count = count-1;
  if (curr != 0){
    for (i=0;i<=(curr-1);i++){
  		getObj("mash_"+i).style.display="none";
    }
  }
  if (curr != count){
    for (i=(curr+1);i<=count;i++){
  		getObj("mash_"+i).style.display="none";
    }
  }
  getObj("mash_"+curr).style.display="";
}   

function getObj(obj_name, doc_obj) { //get DOM node
  if (!doc_obj) doc_obj = document;
  if (doc_obj.all)
    return doc_obj.all[obj_name];
  else if (doc_obj.getElementById)
    return doc_obj.getElementById(obj_name);
  return null;
}

function openWindow(url, wnd_name, wnd_width, wnd_height, wnd_x, wnd_y, wnd_params) {
  var wnd_handle = null;
  if ( !wnd_name ) wnd_name = "action";
  if ( !wnd_width ) wnd_width = "450";
  if ( !wnd_height ) wnd_height = "340";
  wnd_handle = open(url, wnd_name,
    (isNaN(wnd_width) ? "" : ", width=" + wnd_width + "px") +
    (isNaN(wnd_height) ? "" : ", height=" + wnd_height + "px") +
    (!wnd_x ? "" : ", left=" + wnd_x + "px") +
    (!wnd_y ? "" : ", top=" + wnd_y + "px") + 
    (!wnd_params ? ", toolbar=no, status=no, resizable=yes, scrollbars=yes" : ", " + wnd_params)
    );
  wnd_handle.focus();
  return wnd_handle;
}
