function jumpMenu(targ,selObj){
  jumpPage = selObj.options[selObj.selectedIndex].value;
  if (jumpPage != "" && jumpPage != "start") {
	document.location = jumpPage;
  }
}

function popup(page,width,height) {
	window.open(page, "popup", "width="+width+",height="+height+",toolbars=no,scrollbars=yes")
}

function regformValidate() {
	if (document.techform.firstname.value == "" || document.techform.lastname.value == "" || document.techform.position.value == "" || document.techform.company.value == "" || document.techform.address1.value == "" || document.techform.towncity.value == "" || document.techform.county.value == "" || document.techform.postcode.value == "" || document.techform.country.value == "" || document.techform.tel.value == "" || document.techform.email.value == "" || document.techform.application.value == "" || document.techform.question.value == "") {
		alert("You need to fill in all the required fields");
		return false;
	} else {
		return true;
	}
}

function formValidate() {
	if (document.techform.firstname.value == "" || document.techform.lastname.value == "" || document.techform.position.value == "" || document.techform.company.value == "" || document.techform.address1.value == "" || document.techform.towncity.value == "" || document.techform.county.value == "" || document.techform.postcode.value == "" || document.techform.country.value == "" || document.techform.tel.value == "" || document.techform.email.value == "" || document.techform.application.value == "" || document.techform.question.value == "") {
		alert("You need to fill in all the required fields");
		return false;
	} else {
		return true;
	}
}

function vidpopup(vidname,width,height) {
	window.open("viewvideo.asp?vidname="+vidname+"&height="+(height+15)+"&width="+width, "vidpopup", "width="+width+",height="+(height+15)+",toolbars=no,scrollbars=no")
}

function checkStock() {
	if (document.searchform.RequiredQty.value == "") {
		alert("Please fill in a quantity");
		return false;
	} else if (document.searchform.ItemNumber.value == "" && document.searchform.ItemNumber2.value == "") {
		alert("Please select an item from one of the drop-down lists");
		return false;
	} else if (document.searchform.ItemNumber.value != "" && document.searchform.ItemNumber2.value != "") {
		alert("Please select an item from just one of the drop-down lists (not both)");
		return false;
	} else {
		return true;
	}
}

function checkPrice() {
	if (document.searchform.ItemNumber.value == "" && document.searchform.ItemNumber2.value == "") {
		alert("Please select an item from one of the drop-down lists");
		return false;
	} else if (document.searchform.ItemNumber.value != "" && document.searchform.ItemNumber2.value != "") {
		alert("Please select an item from just one of the drop-down lists (not both)");
		return false;
	} else {
		return true;
	}
}