function sayit()
{

try
  {
  


           if (window.getSelection) // recent Mozilla versions
           {
                      var selectedString = window.getSelection();
           }
           else if (document.all) // MSIE 4+
           {
                      var selectedString = document.selection.createRange().text;
           }
           else if (document.getSelection) 
           {
                      var selectedString = window.getSelection(); // older Mozilla versions
           }

           if(document.rs_form.rstext != null){
	   document.rs_form.rstext.value = selectedString;
	   }

           if (window.location.href)
           {
                     // document.rs_form.url.value = window.location.href;
           }
           else if (document.location.href)
           {
                      //document.rs_form.url.value = document.location.href;
           }



  }
catch(err)
  {
  //Handle errors here
  }
}

function copyselected()
{
if(document.rs_form != 'undefined'){
	setTimeout("sayit()",50);
	return true;
}
}
