<!--
var blnChangeMade = false;

function setChange(blnValue) {
	blnChangeMade = blnValue;
}

function promptChange() {
	if(blnChangeMade)
	{
		if(confirm("You have made changes to the information on this form. \nYou will lose your changes if you exit without saving. \n\nAre you sure you want to exit without saving?\n(Click 'Cancel' to return to the page)"))
			return(true);
		else
			return(false);
	}
	else
	{
		return(true);
	}
}

function timerRedirect(url, timer) {
	setTimeout("self.location.href='" + url +"'", timer);
}

function confirmSubmit(varMsg) {
    if (confirm(varMsg)) {
        return(true);
    }
    else {
        return(false);
    }   
}

var submitcount=0;

function checkSubmitCount() {
if (submitcount == 0)
  {
  submitcount++;
  return true;
  }
else 
  {
  alert("This form has already been submitted.");
  return false;
  }
}


function printDate() {
var day="";
var month="";
var myweekday="";
var year="";

newdate = new Date();
mydate = new Date();
newtime=newdate.getTime();

myday = mydate.getDay();
mymonth = mydate.getMonth();
myweekday= mydate.getDate();
myyear= mydate.getYear();
year = myyear;

if (year < 2000)    // Y2K Fix, Isaac Powell
year = year + 1900; // http://onyx.idbsu.edu/~ipowell
myhours = mydate.getHours();
if (myhours >= 12) {
myhours = (myhours == 12) ? 12 : myhours - 12; mm = " PM";
}
else {
myhours = (myhours == 0) ? 12 : myhours; mm = " AM";
}

myminutes = mydate.getMinutes();

if (myminutes < 10){
mytime = ":0" + myminutes;
}
else {
mytime = ":" + myminutes;
};

var time = (mymonth+1 + "/" + myweekday + "/" + year + " " + myhours + mytime + mm);
document.write(time);
}


function toggleTable(idTable)
//IN:  the ID of the table we are collapsing/expanding
{
	theTable = document.getElementById(idTable);

	if (theTable.style.display == "")
		theTable.style.display = "none";
	else
		theTable.style.display = "";
}

function collapseTable(idTable)
//IN:  the ID of the table we are collapsing
{
	theTable = document.getElementById(idTable);
	theTable.style.display = "none";
}

var popUpWin=0;
function popUpWindow(URLStr, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left=5,top=5,screenX=5,screenY=5');
}


function toggleRow(idCell, idTable, idLink)
//IN:  the ID of the containing cell we are collapsing/expanding
//	   the ID of the table within the row we are collapsing/expanding
//	   the ID of the hyperlink which we need to toggle between the different link names.
{
	objTbl = document.getElementById(idTable);
	objCell = document.getElementById(idCell);
	objLink = document.getElementById(idLink);

	if (objCell.style.display == "")
	{
		objCell.style.display = "none";
		objTbl.style.display = "none";
		objLink.innerHTML = "Display";
	}
	else
	{
		objCell.style.display = "";
		objTbl.style.display = "";
		objLink.innerHTML = "Hide";
	}
}


//-->

