function fixsize()
{
	var h1=0;
	var div1=document.getElementById('div1');
	var div2=document.getElementById('div2');
	var div3=document.getElementById('div3');
	var cart1=document.getElementById('cart1');
	try {
		if (div3.scrollHeight<50)
			return;
	} catch (e) {return;}
	try {
		var h = document.body.clientHeight;
		if (h > 720)
			h1 = h-(div1.scrollHeight+div2.scrollHeight+10);
		if (h1>=50)
			div3.style.height=h1;
	} catch (e) {h1=0;}
	try {
		if (h1<50)
			div3.style.height=null;
	} catch (e) {}
	var h2=0;
	try {
		var h = document.body.clientHeight;
		if (h > 720)
			h2 = h-(div1.scrollHeight+10);
		if (h2>=50)
			cart1.style.height=h2;
	} catch (e) {h2=0;}
	try {
		if (cart1.scrollHeight<10)
			return;
		if (h2<50)
			cart1.style.height=null;
	} catch (e) {}
}

function post(lvl)
{
	if (lvl<9 && document.form1.trans != null)
	{
		if (document.form1.trans.value=='N')
			document.form1.trans.value = '';
		else
		{
			document.form1.trans[0].value = '';
			document.form1.trans[1].value = '';
		}
	}
	if (lvl<8 && document.form1.steering != null)
	{
		document.form1.steering[0].value = '';
		document.form1.steering[1].value = '';
	}
	if (lvl<7 && document.form1.motor != null)
		document.form1.motor.value = '';
	if (lvl<6 && document.form1.prod != null)
		document.form1.prod.value = '';
	if (lvl<5 && document.form1.zone != null)
		document.form1.zone.value = '';
	if (lvl<4 && document.form1.model != null)
		document.form1.model.value = '';
	if (lvl<3 && document.form1.body != null)
		document.form1.body.value = '';
	if (lvl<2 && document.form1.series != null)
		document.form1.series.value = '';
	if (document.form2 && document.form2.vin)
		document.form2.vin.value='';
	if (document.form1.vin)
		document.form1.vin.value='';
	document.form1.submit();
}

function langsel() {
	var lsel = document.getElementById('lsel');
	if (lsel != null)
		document.location='langsel.do?from='+encodeURIComponent(document.location)+'&to='+lsel.value;
}
