
function getRandom(maxValue) {
	rnumber = Math.round(Math.random()*(maxValue-1))+1;
	return rnumber;
}

function setBoat() {
	var today = new Date();
	var theBoat = document.getElementById("mapBoat");
	if (today.getMonth()>9 || today.getMonth()<2) {
		var theTop  = -1;
		var theLeft = -1;
		while (theTop<0  || theTop>302)  {theTop  = getRandom(302)+"px";}
		while (theLeft<0 || theLeft>604) {theLeft = getRandom(604)+"px";}
		theBoat.style.top=theTop;
		theBoat.style.left=theLeft;
	} else {
		theBoat.style.display="none";

	}
}

function sFlag(theFlagNum) {
	var theFlag = document.getElementById("flag"+theFlagNum);
	theFlag.style.visibility="visible";
}
function hFlag(theFlagNum) {
	var theFlag = document.getElementById("flag"+theFlagNum);
	theFlag.style.visibility="hidden";
}