function MM_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}
function updateCounter(xVal) {
	var currentCounter = xVal-1;
	var fieldID2 = 'fileName_'+addNumbers(currentCounter,1)
	var newTitle = "document.imageFrm."+fieldID2+".value"; /*imageFrm.+'fieldID.'+.value; */
	eval("document.imageFrm.photoTitle.value="+newTitle);
	document.imageFrm.imageCounter.value = xVal;
}

function showNext() {
	var currentCounter = document.imageFrm.imageCounter.value;
	if ( currentCounter < document.imageFrm.maxCounter.value )	{ 
		var fieldID = 'filePath_'+addNumbers(currentCounter,1)
		var fieldID2 = 'fileName_'+addNumbers(currentCounter,1)
		var newfilename = "document.imageFrm."+fieldID+".value"; /*imageFrm.+'fieldID.'+.value; */
		var newTitle = "document.imageFrm."+fieldID2+".value"; /*imageFrm.+'fieldID.'+.value; */
		eval("document.hero.src="+newfilename);
		eval(document.imageFrm.imageCounter.value = addNumbers(document.imageFrm.imageCounter.value,1)); 
		eval("document.imageFrm.photoTitle.value="+newTitle);
	} 
}
function showPrevious() {
	var currentCounter = document.imageFrm.imageCounter.value;
	if ( currentCounter > 1 )	{ 
		var fieldID = 'filePath_'+subtractNumbers(currentCounter,1)
		var fieldID2 = 'fileName_'+subtractNumbers(currentCounter,1)
		var newfilename = "document.imageFrm."+fieldID+".value"; /*imageFrm.+'fieldID.'+.value; */
		var newTitle = "document.imageFrm."+fieldID2+".value"; /*imageFrm.+'fieldID.'+.value; */
		eval("document.hero.src="+newfilename);
		eval(document.imageFrm.imageCounter.value = subtractNumbers(document.imageFrm.imageCounter.value,1)); 
		eval("document.imageFrm.photoTitle.value="+newTitle);
	} 
}
function addNumbers(a,b)
{
	var c = parseInt(a)+parseInt(b);
	return c;
}
function subtractNumbers(a,b)
{
	var c = parseInt(a)-parseInt(b);
	return c;
}
function loadURL(thisName) {
	document.newRange.byFilename.value = thisName;
}

function targetMe() {
	popImage(document.newRange.byFilename.value,'New Range')
}