function colorOn(tempobj)
{
	onobj=eval(tempobj);
	onobj.style.background="#4E5780";
}

function colorOff(tempobj)
{
	onobj=eval(tempobj);
	onobj.style.background="#9999CC";
}
function OpenUrl(str)
{
	document.open();
	document.writeln(str);
	document.close();
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function Change_trans() {
	url="location.href='/user/?r=transadd&t=avto&s_c=" + document.avto.select_country.value + "&s_g=" + document.avto.select_city.value + "&s_c2=" + document.avto.select_country2.value + "&s_g2=" + document.avto.select_city2.value + "'"; 
	setTimeout(url, 1);
}
function opencgi(findbutton){
	another=window.open('http://www.nikoletranscargo.ru/user/sel_country_city.php?bb='+findbutton,'sel', 'scrollbars=no,width=375,height=350,status=yes,titlebar=yes,toolbar=yes,location=yes,menubar=yes,resizable=yes,left=' + ((screen.width-375)/2) + ',top=' + ((screen.height-320)/2));
}
