function Enlarge(id) {
  EnlargePathed('',id);
}

function EnlargeShortlist(id) {
  EnlargeMaster('',id,'?shortlist=1');
}

function EnlargePathed(base_url,id) {
  EnlargeMaster(base_url,id,'');
}

function EnlargeMaster(base_url,id,suffix) {
  var scr_width = 400;
  var scr_height = 480;
  //alert("Path:"+base_url+"pop_photo."+id+suffix);
  //exit();
  window.open(base_url+"pop_photo."+id+suffix,"","width=" + scr_width + ",height=" + scr_height + ",scrollbars=no,resizable=yes");
  
}

function Opener(name,id) {
  if (document.getElementById(name+id).style.display=='block') {   // Already open; close
    document.getElementById(name+'Fieldset'+id).style.border='0';
    document.getElementById(name+'Fieldset'+id).style.paddingBottom='0';
    document.getElementById(name+'Legend'+id).style.paddingBottom='0';
    document.getElementById(name+id).style.display='none';
  }
  else {
    document.getElementById(name+'Fieldset'+id).style.border='#ffff99 solid 1px';
    document.getElementById(name+'Fieldset'+id).style.paddingBottom='4px';
    document.getElementById(name+'Legend'+id).style.paddingBottom='6px';
    document.getElementById(name+id).style.display='block';
  }
}



