<!--

var browser = {
	dom:(document.getElementById != null),
	ie:(document.all && parseInt(navigator.appVersion) >= 4),
	ns:(document.layers && parseInt(navigator.appVersion) >= 4)
}

function getLayer(name) {
	if (browser.dom) return document.getElementById(name);
	else if (browser.ie) return document.all[name];
	else if (browser.ns) return document.layers[name];
}

function change_picture(where, what){

	if (document.images){
		document.images[where].src = eval("loadImages." + what + ".src");
	}

}

function openW(urlW, width_w, height_w, scroll_bar) {
	center_x = Math.round((window.screen.availWidth - width_w) / 2);
	center_y = Math.round((window.screen.availHeight - height_w) / 2);

	window.open(urlW,'_blank','top=' + center_y + ',left=' + center_x + ',width=' + width_w + ',height=' + height_w + ',status=no,titlebar=no,toolbar=no,menubar=no,location=no,resizable=no,directories=no,scrollbars=' + scroll_bar);
}

function submitSend() {
	document.sendfrm.submit();
}

function submitCancel() {
	document.sendfrm.Action.value = "Cancel";
	document.sendfrm.submit();
}

function submitSearch() {
	document.searchfrm.submit();
}

function go_into_cars(ilink) {

	win_object = window.open(ilink, "drivencars");
	win_object.focus();

}

function switchElement (elmFirst, elmSecond) {

	elmFirst = document.getElementById(elmFirst);

	elmSecond = document.getElementById(elmSecond);

	if (elmFirst.checked) {

		if (browser.ie && !window.opera) {
			elmSecond.style.display = 'inline';
		} else {
			elmSecond.style.display = 'table-row';
		}

	} else {

		elmSecond.style.display = 'none';

	}
}


//-->

