// JavaScript Document
function openhtml(a,b)
{
	document.getElementById("nonediv").style.display="";
	document.getElementById("test").src=a;
	imgwidth=test.width+16;
	imgheight=test.height+40;
	document.getElementById("nonediv").style.display="none";
	//alert(imgwidth);
    window.open("open.html?m_a_="+a+"&m_b_="+b,"","width="+imgwidth+",height="+imgheight+",top=160,left=500");
}


function getvalue(name)
{
	var str=window.location.search;
	if (str.indexOf(name)!=-1)
	{
		var pos_start=str.indexOf(name)+name.length+1;
		var pos_end=str.indexOf("&",pos_start);
		if (pos_end==-1)
		{
			return str.substring(pos_start);
		}
		else
		{
			return str.substring(pos_start,pos_end)
		}
	}
	else
	{
		return "Ã»ÓÐÖµ";
	}
}

function checkImage(o)
{
	document.getElementById(o).width=o.width;
	document.getElementById(o).height=o.height;
}
