function dPopup(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

	function dPopup2(url, width, height , winName) {
		var name = winName; // popup name
		var width = width; // popup width
		var height = height; // popup height
		var left = (screen.width - width) / 2 ;
		var top = (screen.height - height) / 2;
		var windowproperties = "width="+ width +",height="+ height +",left="+ left +",top="+ top;
		window.open(url, name, windowproperties);
	}


function go(){
if (document.pProducer.pName.options[document.pProducer.pName.selectedIndex].value != "none") {
	location = '/w/lampy_do_projektorow/' + document.pProducer.pName.options[document.pProducer.pName.selectedIndex].value
	}
}


function go2(){
if (document.pModel.mName.options[document.pModel.mName.selectedIndex].value != "none") {
	location = '/w/lampa_do_projektora/' + document.pModel.pName.value + '/' + document.pModel.mName.options[document.pModel.mName.selectedIndex].value
	}
}

function go3(){
if (document.scrSearchHistory.scr.options[document.scrSearchHistory.scr.selectedIndex].value != "none") {
	location = '/ekran/' + document.scrSearchHistory.scr.options[document.scrSearchHistory.scr.selectedIndex].value + '.html';
	}
}

function go4(){
if (document.nNavForm.nId.options[document.nNavForm.nId.selectedIndex].value != "none") {
	location = '/v3.php?g=' + document.nNavForm.g.value + '&galId=' + document.nNavForm.nId.options[document.nNavForm.nId.selectedIndex].value + '&thumb=' + document.nNavForm.thumb.value;
	}
}

function go5(){
if (document.scrSearchHistory.scr.options[document.scrSearchHistory.scr.selectedIndex].value != "none") {
	location = '/projektor/' + document.scrSearchHistory.scr.options[document.scrSearchHistory.scr.selectedIndex].value + '.html';
	}
}

function scrSearchGetMode(){
	return document.forms['scr_search'].elements['lm'].value;
}

function scrSearchModeChange(){
	var oldMod = scrSearchGetMode();
	if(oldMod ==  1){
		document.forms['scr_search'].elements['lm'].value = 0;
	}
	else{
		document.forms['scr_search'].elements['lm'].value = 1;
	}

	document.forms['scr_search'].submit();
}