function op_cl(item){
	if (document.getElementById) {		obj=document.getElementById(item)	} else if (document.all) {		obj=document.all[item]	}	if (obj) {		if (obj.style.display=='none') {			obj.style.display=''		}		else {			obj.style.display='none'		}
	}
}
function atw(offer_id) {
	stl=window.open("savetolater.asp?add=1&id=" + offer_id+'',"stl","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,,height=400,width=450");
}

function nextm(j, c) {
	if (document.all && !document.getElementById) {
		nextmc=document.all['modeli'+c]
		nextmj=document.all['modeli'+j]
	} else {
		nextmc=document.getElementById('modeli'+c)
		nextmj=document.getElementById('modeli'+j)	
	}
	
	nextmc.style.display='none';
	nextmj.style.display='';
}

function checkEmpty() {
	th = document.forms['thf'];
	
	if (!th['qs'].value) {
		selTh = th['parent'].options[th['parent'].selectedIndex].value;
		document.location = 'large.asp?parent='+selTh;
		return false;
	} else {
	//	th.submit();
	}
}

function show_fpo(i) {	
	if (document.getElementById('fpoid' + i))
		document.getElementById('fpoid' + i).style.display = ''; 
}
function hide_fpo(i) {	
	if (document.getElementById('fpoid' + i))
		document.getElementById('fpoid' + i).style.display = 'none'; 
}

function shfpo(oid) {
	for (i = 0; i < 6; i++) {
		if (i == oid) {
			if (document.getElementById('fpop'+i))
				document.getElementById('fpop'+i).style.fontWeight = 'bold';
			show_fpo(2*i);
			show_fpo(1+2*i);
		}
		else {
			if (document.getElementById('fpop'+i))
				document.getElementById('fpop'+i).style.fontWeight = 'normal';
			hide_fpo(2*i);
			hide_fpo(1+2*i);
		}
	}
}

var pgsid = 0; var pgsi = 0;
function ClearPGS() {if(pgsid){clearInterval(pgsid);pgsid=0;}}
function SetPGS() {pgsid=setInterval("ScrollPGS()", 4000);}
function ScrollPGS(){if(++pgsi==6)pgsi=0;shfpo(pgsi);}