function do_search()
{
	if (!document.frm_search.search_param.value=="")
	{
		document.frm_search.submit();
	}
}

function show_enlarge_image(url,name,ht,wt)
{
	window.open(url,name,'toolbar=no,menubar=no,resizable=yes,scrollbars=yes,height='+ht+',width='+wt+'');
}



function show_images(prop_id,id)
{
	connect();

	//document.getElementById('img_div').innerHTML = "show_images.php?prop_id="+prop_id+"&img="+id;

	
	loginurl="show_images.php?prop_id="+prop_id+"&img="+id;
	xmlhttp.open("GET",loginurl,true);
	xmlhttp.send(null);

/*
	var browser=navigator.appName
	if (browser == "Microsoft Internet Explorer")
	{
		if(xmlhttp.readyState==4)
		{
			var result=xmlhttp.responseText;
			if (result!="")
			{
				document.getElementById('img_div').innerHTML = result;
			}
		}
	}
	else
	{
		xmlhttp.onreadystatechange=function()
		{
			if(xmlhttp.readyState==4)
			{
				var result=xmlhttp.responseText;
				if (result!="")
				{
					document.getElementById('img_div').innerHTML = result;
				}
			}
		}
	}
*/
	xmlhttp.onreadystatechange=function()
	{	
		//alert(xmlhttp.readyState);
		if(xmlhttp.readyState==4)
		{	//alert(xmlhttp.responseText);
			var result=xmlhttp.responseText;
			if (result!="")
			{
				document.getElementById('img_div').innerHTML = result;
			}
		}
	}

}