﻿function linkSendFriend_onclick() {
      var sYourName = document.getElementById('ctl00_breadcrumbs_txtYourName').value;
      var sFriendName = document.getElementById('ctl00_breadcrumbs_txtFriendName').value;
      var sFriendEmail = document.getElementById('ctl00_breadcrumbs_txtFriendEmail').value;
      var sMessage = document.getElementById('ctl00_breadcrumbs_txtMessage').value;
      var sTitle = document.getElementById('ctl00_breadcrumbs_txtTitle').innerHTML;
      var sURL = document.getElementById('ctl00_breadcrumbs_txtURL').innerHTML;

      ret = sendtofriend.sendnow(sYourName, sFriendName, sFriendEmail, sMessage, sTitle, sURL, OnCompleteSF, OnTimeOut, OnError);
      return (true);
  }
  function OnCompleteSF(arg) {
    //  alert(arg)
  
      txtFeedbackSF.innerText = arg; 
  }

  function OnTimeOut(arg) {
      alert("TimeOut encountered when calling Send to Friend.");
  }

  function OnError(arg) {
      alert("Error encountered when calling Send to Friend.");
  }

      
function Cover(bottom, top, ignoreSize) {
      var location = Sys.UI.DomElement.getLocation(bottom);
      top.style.position = 'absolute';
      top.style.top =  '22px'; 
      top.style.left = '200px';
      if (!ignoreSize) {
          top.style.height = bottom.offsetHeight + 'px';
          top.style.width = bottom.offsetWidth + 'px';
      }

      //var sPanel = document.getElementById('panelSL');
      //sPanel.style['height'] = sPanel.style['height'] + 100;
      
  }

