﻿
    function PopupPicker(ctl)
    {
        var PopupWindow=null;
        settings='width=200,height=180,location=no,directories=no, menubar=no,toolbar=no,status=no,scrollbars=no,resizable=yes, dependent=no, screenX=300,screenY=225,left=300,top=225';
        PopupWindow=window.open('../Common/DatePicker.aspx?Ctl=' + ctl,'DatePicker',settings);
        PopupWindow.focus();
    }
    
    function PopupPrint(page, idx)
    {
        var PopupWindow=null;
        settings='width=750,height=180,location=no,directories=no, menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes, dependent=no, screenX=300,screenY=225,left=300,top=225';
        PopupWindow=window.open('../Admin/Print/' + page + '.aspx?IDX=' + idx,'DatePicker',settings);
        PopupWindow.focus();
    }
    
    
function toggleLayer( whichLayer )
{
//alert(whichLayer);
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}


function HideContent(d) {
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
document.getElementById(d).style.display = "block";
}
function ReverseDisplay(d) {
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}


function ConfirmDeletion()
{
    return confirm('Are you sure you wish to delete this record?');
}

