function picauto(obj)
{
	if((obj.width/obj.height)>(140/100))
	{
		if(obj.width>140)
		{
			obj.style.width=140;
			obj.width=140;
		}
		else
		{
			obj.style.width=obj.width;
		}
	}
	else
	{
		if(obj.height>100)
		{
			obj.style.height=100;
			obj.height=100;
		}
		else
		{
			obj.style.height=obj.height;
		}
	}	
	//obj.width=140;
		//alert(obj.width);
}