/**
 * Sets/unsets the pointer in browse mode
 *
 * @param   object   the table row
 * @param   object   the color to use for this row
 *
 * @return  boolean  whether pointer is set or not
 */
function setPointer(theRow, thePointerColor)
{
	if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
		return false;
	}

	var row_cells_cnt           = theRow.cells.length;
	
	for (var c = 0; c < row_cells_cnt; c++) {
		theRow.cells[c].bgColor = thePointerColor;
	}

	return true;
} // end of the 'setPointer()' function
	
var menu_OffSet = [-200];

var menus = [
	new ypSlideOutMenu("menu1", "across", 0, 185, 170, 200)								
]

for (var i = 0; i < menus.length; i++) {
        menus[i].onactivate = new Function("var newLeft = getWindowWidth() / 2 + menu_OffSet[" + i + "]; menus[" + i + "].container.style ? menus[" + i + "].container.style.left = newLeft : menus[" + i + "].container.left = newLeft;")
 }

function getWindowWidth()
{
        return window.innerWidth ? window.innerWidth : document.body.offsetWidth;
}

var timercontrol;
<!--
function checkrequired(which) {
  var pass=true;
  if (document.images) {
  	for (i=0;i<which.length;i++) {
  		var tempobj=which.elements[i];
  		if (tempobj.name.substring(0,8)=="required") {
  			if (((tempobj.type=="text"||tempobj.type=="textarea")&& tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&& tempobj.selectedIndex==0)) {
  				pass=false;
  				break;
  			}
  		}
  	}
  }
  
  if (!pass) {
  	shortFieldName=tempobj.name.substring(8,30).toUpperCase();
  	alert("Please make sure the "+shortFieldName+" field was properly completed.");
  	return false;
  }
  else
  return true;
}

function popup(page,w,h) {
	window.open( page , "popup", "width=" + w + ",height=" + h + ",resizable=0,scrollbars=1");
}

function submitForm(f) {
  f.submit()
}

function swap_feature_photo (newsrc) {
  feature_photo.src=newsrc;
}
