function verifyKeySearch(){
		errorCount = 0;
		if(document.keysearch.searchval.value.length < 2)
	  	{ alert("You must enter at least two characters to search by."); errorCount = 1 }
		if(errorCount == 0)
			{ document.keysearch.submit(); }
	}

function verifyGenreSearch(){
		errorCount = 0;
		if(document.genresearch.genreval.value == 'ALL')
	  	{ alert("Please select a genre from the drop box."); errorCount = 1 }
		if(errorCount == 0)
			{ document.genresearch.submit(); }
	}

function confirmDelete(where) {
	if(confirm('Are you sure you want to delete this record?  This action CAN NOT be undone!')) {
		document.location = where;
	}
}

function updateChanged(which,val) {
	var whichField = "changed_"+which;
	if(document.update[whichField].value.length==0) {
		document.update[whichField].value += val;
	} else {
		if((","+document.update[whichField].value+",").indexOf(","+val+",")==-1) {
			document.update[whichField].value += "," + val;
		}
	}
}


function rowOverSC(obj, state) {
	document.getElementById(obj).className = (state) ? 'scROver' : 'scR';
}

function rowOverLeftNav(obj, state) {
	document.getElementById(obj).className = (state) ? 'lnROver' : 'lnR';
}

function rowOverLetter(obj, state) {
	document.getElementById(obj).className = (state) ? 'lOver' : 'l';
}

function rowOverTopNav(obj, state) {
	document.getElementById(obj).className = (state) ? 'tnBOver' : 'tnB';
}

function rowOverSubNav(obj, state) {
	document.getElementById(obj).className = (state) ? 'snBOver' : 'snB';
}

function rowOverRec(obj, state) {
	var thisObj = document.getElementById(obj)
	if(state) thisObj.lastObj = thisObj.className;
	document.getElementById(obj).className = (state) ? 'recRowOver' : thisObj.lastObj;
}

