function getActiveClass(id,mode){
	if (mode == 'show') {
		document.getElementById('menu_left'+id+'1').className='left_menu_item_mouseover';
		document.getElementById('menu_center'+id+'2').className='center_menu_item_mouseover';
		document.getElementById('menu_right'+id+'3').className='right_menu_item_mouseover';
	} else {
		document.getElementById('menu_left'+id+'1').className='left_menu_item';
		document.getElementById('menu_center'+id+'2').className='center_menu_item';
		document.getElementById('menu_right'+id+'3').className='right_menu_item';							
	}	
	if (mode == 'opvallend_show') {
		document.getElementById('menu_left'+id+'1').className='opvallend_left_menu_item_mouseover';
		document.getElementById('menu_center'+id+'2').className='opvallend_center_menu_item_mouseover';
		document.getElementById('menu_right'+id+'3').className='opvallend_right_menu_item_mouseover';
	}
	
}

function validateEmail(field, msg)
{
	if (field.value != '')
	{
		if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(field.value))
		{
			return true;
		}
		alert(msg);
		field.focus();
		field.select();
		return false;
	}
	return true;
}


function validateNotEmpty(field, msg)
{
if(trimAll(field.value).length > 0)
	{
  return true;
  }  
  alert(msg);
  field.focus();
  return false;
}

function trimAll(strValue)
{
var objRegExp = /^(\s*)$/;

//check for all spaces
if(objRegExp.test(strValue)) {
	strValue = strValue.replace(objRegExp, '');
  if( strValue.length == 0)
  	return strValue;
	}

	//check for leading & trailing spaces
	objRegExp = /^(\s*)([\W\w]*)(\b\s*$)/;
	if(objRegExp.test(strValue)) {
	//remove leading and trailing whitespace characters
  strValue = strValue.replace(objRegExp, '$2');
  }
return strValue;
}