var xmlHttp; 
function createXMLHttpRequest() 
{ 
	if (window.ActiveXObject) 
	{ 
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); 
	} 
	else if (window.XMLHttpRequest)
	 { 
		xmlHttp = new XMLHttpRequest(); 
	} 
} 

function callServer(id,pic) 
{
	
			createXMLHttpRequest();
 			
			  var url = "pic.asp?p=" + escape(pic) ;
			  xmlHttp.open("GET", url, true);
			  xmlHttp.onreadystatechange = updatePage;
			  xmlHttp.send(null);
			  
  
			  function updatePage()
			   {
				   
				
					if (xmlHttp.readyState == 4) 
					 {
						  var str = xmlHttp.responseText;
							if str=="images/no.gif"
							{
								
								document.getElementById(id).src=str;
							}
							
					 }
				}
}







