function myAlert(sMsg, sTitle, iWidth, iHeight, sImageURL) {
  var sURL = '/officialcall/dialogs/dlgAlert.aspx?nc=' + escape(Date());
  var sImg = '../images/large_icons/icon_info.gif';
  if (myAlert.arguments.length >= 1) {
    sURL += '&Message=' + escape(sMsg);
  }
  if (myAlert.arguments.length >= 2) {
    sURL += '&Title=' + escape(sTitle);
  }
  if (myAlert.arguments.length == 5) {
    sImg = sImageURL;
  }
  sURL += '&img=' + escape(sImg); //set icon 
  var x = 400; 
  var y = 150;
  if (myAlert.arguments.length >= 4) {
    x = iWidth;
    y = iHeight;
  }
  var sOptions = 'dialogWidth:' + x + 'px;dialogHeight:' + y + 'px;center:1;help:0;resizable:1;status:0;';
  if (window.dialogArgument == null) {
    showModalDialog(sURL,null,sOptions);
  }
  return; 
}
function showVersion() {
  myAlert('Thank you for your interest in<br>Official Call Hockey Admin Version 2.0','Official Call',400,130);
  return false;
} 
try { 
  //if (window.dialogArgument == null)    
  //  document.oncontextmenu = showVersion;
} catch(ex) {
  //do nothing
}

