function get_browser_width()
{
	if (navigator.appName=="Netscape")
		retval = self.innerWidth;
	if (navigator.appName.indexOf("Microsoft")!=-1)
		retval = document.body.offsetWidth;
	return retval;
}

function img_resize(img)
{
	bw = get_browser_width();
	if(bw<60)
		return;
	if (img.width>(bw -  60))
	{
		rW = img.width;
		//image.style.cursor = "crosshair";
		img.width=(bw - 60);

	}
	else if (img.width==(bw - 60)) 
		img.width=rW;
}

function check_size(frm)
{
	bw = get_broser_width();
	logow = document.getElementById("logo").width;
	frm.width = bw - 50 - logow;
}
function getReq()
{
	var xmlHttp;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert("Your browser does not support AJAX!");
				return false;
			}
		}
	}
	return xmlHttp;
}
function metaDoShow()
{
	xmlHttp=getReq();
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
			doShow(xmlHttp.responseText);
	}
	xmlHttp.open("GET","/image.html?s=" + Math.random(),true);
	xmlHttp.send(null);
}

function doShow(dat)
{
	cont = document.getElementById("tetete");
	cont.innerHTML= "<iframe frameborder=0 width=600 height=81 scrolling=no src=/image.html></iframe>"//dat;
	cont.width=601;
	cont.height=81;
}
