
function catselect() {
document.location = document.linkch.cat_select.options[document.linkch.cat_select.selectedIndex].value
}
function sizeselect() {
document.location = document.linkch4.size_select.options[document.linkch4.size_select.selectedIndex].value
}
function nemselect() {
document.location = document.linkch4.nem_select.options[document.linkch4.nem_select.selectedIndex].value
document.location = document.getElementById("nem_select").value;
//alert(document.getElementById("nem_select").value);
}
function factselect() {
document.location = document.linkch4.fact_select.options[document.linkch4.fact_select.selectedIndex].value
document.location = document.getElementById("fact_select").value;
}
function ujselect() {
document.location = document.linkch4.uj_select.options[document.linkch4.uj_select.selectedIndex].value
document.location = document.getElementById("uj_select").value;
}
function pselect() {
document.location = document.linkch5.p_select.options[document.linkch5.p_select.selectedIndex].value
}


function darabteszt(frm,sorszam) {

var darab = frm.elements['darab[]'];

		darab = darab[sorszam].value;

	if ('' == darab || '0' == darab) {
			alert('Nem adott meg darabszámot!');
			return false;
	}

}
function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}