<!--
var curX, curY;
var preloadFlag = false;

if (document.layers)
	document.captureEvents(Event.MOUSEMOVE); 

document.onmousemove = Move;

var message="Function Disabled!";
var timesClicked=1;
var timesAllowed=2;

function clickIE() {
	if (document.all) {
		timesClicked=timesClicked+1;
		window.status=message;
		if (timesClicked>timesAllowed) {
			alert(message);
			timesClicked=1;
			window.status="";
		}
		return false;
	}
}

function clickNS(e) {
	if (document.layers||(document.getElementById&&!document.all)) {
		if (e.which==2||e.which==3) {
			window.status=message;
			if (timesClicked>timesAllowed) {
				alert(message);
				timesClicked=1;
				window.status="";
			}
			return false;
		}
	}
}

if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS;
} else {
	document.onmouseup=clickNS;
	document.oncontextmenu=clickIE;
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		nav01 = newImage("images/navigation/captains-log-OVER.gif");
		nav02 = newImage("images/navigation/captains-bio-OVER.gif");
		nav03 = newImage("images/navigation/charters-OVER.gif");
		nav04 = newImage("images/navigation/sponsors-OVER.gif");
		nav05 = newImage("images/navigation/calendar-OVER.gif");
		nav06 = newImage("images/navigation/equipment-OVER.gif");
		nav07 = newImage("images/navigation/tournaments-OVER.gif");
		nav08 = newImage("images/navigation/contact-us-OVER.gif");
		nav09 = newImage("images/navigation/members-OVER.gif");
		preloadFlag = true;
	}
}

function Move(evt) {
	var e = evt ? evt : event;
	
	curX = (screenLeft + e.x);
	curY = (screenTop + e.y);
}

function checkEmail (address) {
	var msg = '';
	var emailPattern = /^\w+\.*\-?\w*\@(\w+\-?\w*\.{1}){1,3}\D{2,4}$/;
	if (address.match(emailPattern) == null)
		return false;
	else
		return true;
}

function checkMsg (msg, focusField) {
	if (msg == '')
		return true;
	else {
		msg = 'There Has Been An Error Processing Your Request.\nPlease Try Again!\n\n' + msg;
		alert (msg);
		focusField.focus();
		return false;
	}
}

var winLegal = null;
function goPrivacy() {
	var windowWidth = 500;
	var windowHeight = 500;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=1';
	
	if ((winLegal != null) && !winLegal.closed) {
		winLegal.close();
	};
	
	winLegal = open('privacy.aspx', 'winLegal', windowFeatures);
	winLegal.focus();
}

var winLegal = null;
function goNotices() {
	var windowWidth = 500;
	var windowHeight = 500;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=1';
	
	if ((winLegal != null) && !winLegal.closed) {
		winLegal.close();
	};
	
	winLegal = open('notices.aspx', 'winLegal', windowFeatures);
	winLegal.focus();
}

function checkMemberLogIn(form) {
	var msg = '';
	var firstField = '';
	
	if (!checkEmail(form.username.value)) {
		msg = msg + 'Invalid Email\n';
		if (firstField == '') firstField = form.username;
	}
	if (form.password.value == '') {
		msg = msg + 'Invalid Password\n';
		if (firstField == '') firstField = form.password;
	}
	return checkMsg(msg, firstField);
}

var winPop = null;
function goWinPop(contentfile) {
	var windowWidth = 467;
	var windowHeight = 400;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=1';
	if ((winPop != null) && !winPop.closed) {
		winPop.close();
	};
		
	winPop = open(contentfile + '.aspx', 'winPop', windowFeatures);
	winPop.focus();
}
var winSlideShow = null;

function goSlideShowPopUp(img, fish, log, id) {
	var windowWidth = 686;
	var windowHeight = 570;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=0';
	if ((winSlideShow != null) && !winSlideShow.closed) {
		winSlideShow.close();
	};
		
	winSlideShow = open('winslideshow.aspx?img=' + img + '&f=' + fish + '&l=' + log + '&id=' + id, 'winSlideShow', windowFeatures);
	winSlideShow.focus();
}

function showFullsize(src, id) {
	window.parent.document['fullsize'].src = src
	window.parent.showSlideShowCaption(id);
}

function showSlideShowCaption(which){
	if (captionObj != null) {
		thecontent=(which==-1)? "" : caption[which]
		if (document.getElementById||document.all)
			captionObj.innerHTML=thecontent
		else if (document.layers){
			captionObj.document.write(thecontent)
			captionObj.document.close()
		}
	}
}
// -->