// Name: Cookie
// Language: JavaScript
// Author: Travis Beckham | squidfingers.com
// Description: Remove anchor outlines from all links in the document
// --------------------------------------------------

function blurAnchors() {
	if (document.getElementsByTagName) {
		var a = document.getElementsByTagName("a");
		for(var i = 0; i < a.length; i++) {
			a[i].onfocus = function(){this.blur()};
		}
	}
}
window.onload = blurAnchors;

function verify() {
	if (confirm("Are you certain that you want to do that?")) {
		return true;
	} else {
		return false;
	}
}


// Clear text in search input field
// --------------------------------------------------
function clearSearch()
{
if (document.searchForm.words.value == 'search')
	{
	document.searchForm.words.value = '';
	}
}


// Reset text in search input field
// --------------------------------------------------
function resetSearch()
{
if (document.searchForm.words.value == '')
	{
	document.searchForm.words.value = 'search';
	}
}


// Popup window for image enlargements
// --------------------------------------------------
function popupWindow(url) {
	window.open(url, 'popupWindow', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}