function open_n_w(page, pn, wth, hth)
{
	n_win=window.open(page,pn,'width='+wth+',height='+hth+', menubar=no, location=no, resizable=no, scrollbars=yes, status=no');
	n_win.focus();
}

function open_m_w(page, pn, wth, hth)
{
	n_win=window.open(page,pn,'width='+wth+',height='+hth+', menubar=no, location=no, resizable=no, scrollbars=no, status=no');
	n_win.focus();
}

function str_replace(search, replace, subject) {
    return subject.split(search).join(replace);
}

function getargs(lng) {
af=document.getElementById("anvsrc");
var arur=str_replace(" ","+",af.ar.options[af.ar.selectedIndex].value);
var chlur=str_replace(" ","+",af.chl.options[af.chl.selectedIndex].value);
var chbur=str_replace(" ","+",af.chb.options[af.chb.selectedIndex].value);
var shur=str_replace(" ","+",af.sh.options[af.sh.selectedIndex].value);
var teur=str_replace(" ","+",af.te.options[af.te.selectedIndex].value);
var allur='/'+lng+'/tyres/'+arur+'/'+chlur+'/'+chbur+'/'+shur+'/'+teur+'/';
self.location.href=allur;
}
