var xmlHttp
var l 
var t

function showPreview(str)
{
//l = screen.width/2-200;
//t = event.screenY;

xmlHttp=ajaxobject()
if (xmlHttp==null)
{

return
}        
var url="/prvfeed.asp"
url=url+"?id="+str
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)

xmlHttp.send(null)
} 

function stateChanged() 
{ 

if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
   { 

   var obj = document.getElementById("prvdiv")
   var cont = document.getElementById("prvbackground")
   obj.innerHTML=xmlHttp.responseText ;
   if(document.body.clientWidth)
   {
   obj.style.left=document.body.clientWidth/2-250;
   }
   else
   {
   obj.style.left=screen.width/2-250;
   }
   obj.style.display="inline";
   obj.focus();
   cont.style.display="inline";
 
   } 
} 

function ajaxobject()
{ 
var ajaxcall=null
if (window.XMLHttpRequest)
  {
  ajaxcall=new XMLHttpRequest()
  }
else if (window.ActiveXObject)
  {
  ajaxcall=new ActiveXObject("Microsoft.XMLHTTP")
  }
return ajaxcall
} 


function hideme(obj)
{
document.getElementById(obj).style.display="none";
}


//document.onscroll=function(){document.getElementById('prvbackground').style.top=document.body.scrollTop;document.getElementById('prvdiv').style.top=document.body.scrollTop+50;}