function mod_qty(inc,who) {
	var after=parseInt($("amount_of_"+who).value)+inc;
	if (after>=1) $("amount_of_"+who).value=after;
}

function switch_tab(id) {
	$("tab_1").className="simple_tab";
	$("tab_2").className="simple_tab";
	$("tab_3").className="simple_tab";
	$("tab1").style.zIndex="1";
	$("tab2").style.zIndex="1";
	$("tab3").style.zIndex="1";
	$("tab_"+id).className="first";
	$("tab"+id).style.zIndex="2";
	return false;
}

var timer=new Array;

function tabstopscroll(id) {
	clearInterval(timer[id]);
}

function tabscroll(inc,id) {
	tabstopscroll(id);
	timer[id]=setInterval("move("+inc+","+id+")",100);
	return false;
}

function move(inc,id) {
	$("over_"+id).scrollTop=$("over_"+id).scrollTop+(inc*4);	
}


function faster(inc,id) {
	$("over_"+id).scrollTop=$("over_"+id).scrollTop+(inc*100);
	return false;
}

function open_localisation() {
	$("localisation").style.height="110px";
}

function hide_localisation() {
	$("localisation").style.height="20px";
}

function hide_block_files() {
	if ($("linked_files").innerHTML=="") $("linked_eng").style.display="none";
}
