// Pop-up Window for enlarged images **/
  function C_ShowImage ()
  {
    this.winImage = null;
    this.strSrc = '';
    this.strTitle = '';
    this.boolOkayToShowImage = false;

    this.show = show;
    this.showImage_callback = showImage_callback;

    function show (strSrc, strTitle)
    {
      if (this.winImage && this.winImage.close && !this.winImage.closed)
        this.winImage.close ();

      this.strSrc = strSrc;
      this.strTitle = strTitle;

      if (this.boolOkayToShowImage)
      {
        this.winImage = window.open ('/includes/showImage.htm','_blank','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,width=100,height=100');
      }
    }
  }

  function showImage_callback ()
  {
    var doc = this.winImage.document;
    var img = doc.images [0];

    this.winImage.resizeTo (img.width, img.height);
    if (doc.body.offsetHeight && (doc.body.offsetHeight < img.height))
    {
      this.winImage.resizeTo (img.width + img.width - doc.body.offsetWidth,
                               img.height + img.height - doc.body.offsetHeight);
    }
    if (this.winImage.innerHeight && (this.winImage.innerHeight < img.height))
    {
      this.winImage.resizeTo (img.width + img.width - this.winImage.innerWidth,
                               img.height + img.height - this.winImage.innerHeight);
    }
    this.winImage.focus ();
  }

  window.PopImage = new C_ShowImage;
// Add this to the body tag|| onload="PopImage.boolOkayToShowImage = true;" ||**/
// Image link example  || <a href="#" onclick="PopImage.show ('/2005March/images/Eval.gif','A Simple Cost Evaluator');return false;"><img src="/2005March/images/EvalSM.gif" width="200" height="56" border="0" /></a> ||

//Mail to 
function MailMe(name,subj,body)
{
  var uec = 'unioneyecare.com'
  var q = ((subj||body)?'?':'');
  if (subj) q=q+'subject='+subj;
  if (subj&&body) q=q+'&';
  if (body) q=q+'body='+body;
  window.location = 'mai' + 'lto:' + name + '@' + uec + q;
}
//<!--<a href="#" onClick="MailMe('ppreiszig','subject','body');">Mail Me!</a>-->

// Open new  browser window at 75% of the size of the original
  function getWindowHeight ()
  {
    if (document.body && document.body.clientHeight)
      return document.body.clientHeight;
    else
    {
      if (window.innerHeight)
        return window.innerHeight;
      else
        return 0;
    }
  }
    
  function getWindowWidth ()
  {
    if (document.body && document.body.clientWidth)
      return document.body.clientWidth;
    else
    {
      if (window.innerWidth)
        return window.innerWidth;
      else
        return 0;
    }
  }

  function WOpen (wLien,wRef)
  {
    var win = window.open(wLien,"Picture",'width=' + (getWindowWidth () * 0.75) + ',height=' + (getWindowHeight () * 0.75) + ",toolbar=1,location=1,menubar=1,status=1,resizable=1,scrollbars=yes,top=10,left=10");
    
    if (win)
      win.focus (); 
    else if (confirm('This link cannot be opened in a new window. Popup-blocking software may be preventing this. To open the link in the current window, please click OK. '))
      window.location = wLien;
	 if (wRef) wRef.winRef = win;
  }
// Link example  || <a href="javaScript: WOpen('http://www.uhhs.com/')">University Hospitals</a>
// Add this include file in the head tag || <script language="JavaScript" type="text/javascript" src="/includes/global.js"></script> 

