// Deze functies worden in vrijwel alle pagina's van kozaktravel.com gebruikt. PM 

function checkForm2() {	// check op invoer keyboard submit
	if (document.zoek.zoekwoorden.value.length == 0) {
		alert("Je hebt geen land of trefwoord ingevoerd");
		return false;
		}
	}

function doSubmitTref() {	// check op invoer en submit trefwoord
	if (document.zoek.zoekwoorden.value.length == 0) {
		alert("Je hebt geen trefwoord ingevoerd");
		return false;
		}
	else {
		document.zoek.zoek.value = "trefwoord";
		document.zoek.submit();
		}
	}

function doSubmitLand() {	// check op invoer en submit zoekland
	if (document.zoek.zoekwoorden.value.length == 0) {
		alert("Je hebt geen land ingevoerd");
		return false;
		}
	else {
		document.zoek.zoekland.value = "land";
		document.zoek.submit();
		}
	}
	
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/3 : 0;
	settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable' 
	win = window.open(mypage,myname,settings)
	}
	
