//no right click

var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")


function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
	target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
	target.style.MozUserSelect="none"
else //All other route (ie: Opera)
	target.onmousedown=function(){return false}
target.style.cursor = "default"
}

var adNrPro_1 = 0;
var newpos1 = 0;
var newpos2 = 0;

function proplus()
{
adNrPro_1 = adNrPro_1 + 1;
if(adNrPro_1>1){
	newpos1 = newpos1+35;
	newpos2 = newpos2+35;
	}
else{
	newpos1 = 230;
	newpos2 = 20;
	}
	//alert(newpos1+"-"+newpos2+"-"+adNrPro_1)
}

function prominus()
{
adNrPro_1 = adNrPro_1 - 1;
if(adNrPro_1>0){
	newpos1 = newpos1-35;
	newpos2 = newpos2-35;
	}
else{
	newpos1 = 230;
	newpos2 = 20;
	}
	//alert(newpos1+"-"+newpos2+"-"+adNrPro_1)
}

function hoveron()
{
document.getElementById("dhtmlwindowholder").style.background="red";
}

function hoverout()
{
document.getElementById("dhtmlwindowholder").style.background="black";
}

function submitonce(){
	if (document.all||document.getElementById){
		document.btForm.target="tonavimas";
		document.btForm.action="tonavimas.asp?tonCar="+document.btForm.btCar.value+"&tonColor="+document.btForm.btColor.value+"&tonFilter="+document.btForm.btFilter.value;
		document.btForm.submit();
}
}

