//some vars???
  var time = new Date();

  ordval= (time.getTime());
//end of somevars
function on_banner() {
	cTime = new Date();
	sec = cTime.getSeconds();
	id = '';
	id = id + sec;
	s_call = 'http://www.kompass.ru/cgi-bin/rds9?&NoUser=1&PG=HOME&CMD=';
	s_img = s_call + 'bnr_img&id=';
	s_img = s_img + id;
	s_href = s_call + 'bnr_href&id=';
	s_href = s_href + id;
	document.write('<a target="_blank" href=');
	document.write(s_href);
	document.write('>');
	document.write('<img src=');
	document.write(s_img);
	document.write(' border=0>');
	document.write('</a>');
}
function till_date(day, mon, year) {
	mils_to=Date.UTC(year, mon-1, day, 0, 0, 0);
	data=new Date();
	year = (data.getYear()>200) ? data.getYear() : data.getYear()+1900;
	mils_now=Date.UTC(year, data.getMonth(), data.getDate(), 0, 0, 0);
	num=Math.ceil((mils_to-mils_now)/(24*60*60*1000));
	if (num < 0) { num=num+365; }
	ostatok=num % 10;
	if (num>=10 && num<=20) { end="дней"; }
	else if (ostatok == 1) { end="день"; }
	else if (ostatok==2 || ostatok==3 || ostatok==4) { end="дня"; }
	else { end="дней"; }
	document.write(num+" "+end);
}

function aps(prod_name) {
document.abc_prod_form._Keyword.value = prod_name;
document.abc_prod_form.submit();
}
