////////////////////////// Scripts added for new functionality. Don Demrow, 20071114 //////////////////////
function initializeSearchBlank()
{
document._DominoForm.srch.style.color = "#909090";
document._DominoForm.srch.value = "Enter Search Term Here";
return false;
}

function doSearch()
{
searchBlankValue = document._DominoForm.srch.value;
if ((searchBlankValue != "Enter Search Term Here") && (searchBlankValue != ""))
	{
	alert("This would open the search results page after searching for \"" + searchBlankValue + ".\"");
	initializeSearchBlank();
	return false;
	}
else
	{
	alert("Please enter some text to perform a search.");
	document._DominoForm.srch.focus();
	}
}


var openSearchDivCount = 0;
function openSearchDiv()
{
document.all.searchDiv.style.display = "";
openSearchDivCount++;
	if ((openSearchDivCount % 2) == 0)
		{
		openSearchDivCount = 0;
		document.all.searchDiv.style.display = "none";
		}
	initializeSearchBlank();
}


function noProto(addlMsg)
{
if (addlMsg != null)
	{
	alert("Not active in this prototype.\n\n" + addlMsg);
	}
else
	{
	alert("Not active in this prototype.");
	}
	if(navigator.userAgent.indexOf("Android") != -1)
	{
	location.href = this.location.href;
	}

}




function showDate()
{
var today = new Date()
var month = today.getMonth()
var monthWord;

if (month == 0){monthWord = "January"};
if (month == 1){monthWord = "February"};
if (month == 2){monthWord = "March"};
if (month == 3){monthWord = "April"};
if (month == 4){monthWord = "May"};
if (month == 5){monthWord = "June"};
if (month == 6){monthWord = "July"};
if (month == 7){monthWord = "August"};
if (month == 8){monthWord = "September"};
if (month == 9){monthWord = "October"};
if (month == 10){monthWord = "November"};
if (month == 11){monthWord = "December"};

var day = today.getDate()
var suffix;
if ((day ==1) || (day ==21) || (day ==31)){suffix = "st"};
if ((day ==2) || (day ==22)){suffix = "nd"};
if ((day ==3) || (day ==23)){suffix = "rd"};
if (suffix == null) {suffix = "th"};
var year = today.getYear()

if (year < 1900)
{
year = ((year / 1) + 1900);
}
var myDateString = "Today is " + monthWord + " " + day + suffix + ", " + year
document.getElementById('showDate').value = myDateString;
}



var rightNavCount = 1;
function showHideRightNav()
{
document.all.rightNav.style.display = "";
document.all.showRightNav.style.display = "none";
rightNavCount++;
if ((rightNavCount % 2) == 0)
		{
		rightNavCount = 0;
		document.all.rightNav.style.display = "none";
		document.all.showRightNav.style.display = "";
		}

}



function openSearchDiv()
{
document.all.searchDiv.style.display = "";
openSearchDivCount++;
	if ((openSearchDivCount % 2) == 0)
		{
		openSearchDivCount = 0;
		document.all.searchDiv.style.display = "none";
		}
	initializeSearchBlank();
}
