/*
'==========================================================================================
'	JavaScript form validation and "date object" creation
'==========================================================================================
'	(c) Copyright 2003-2004 Ocktober Design Inc. All rights reserved.
'
'	Email			:	info@ocktober.com
'	Web Site		:	www.ocktober.com
'------------------------------------------------------------------------------------------
*/

function imageSwap(imgName, imgSrc){
  var objStr,obj;

  // Check to make sure that images are supported in the DOM.
  if(document.images){
    // Check to see whether you are using a name, number, or object
    if (typeof(imgName) == 'string') {
      // This whole objStr nonesense is here solely to gain compatability
      // with ie3 for the mac.
      objStr = 'document.' + imgName;
      obj = eval(objStr);
      obj.src = imgSrc;
    } else if ((typeof(imgName) == 'object') && imgName && imgName.src) {
      imgName.src = imgSrc;
    }
  }
}

function cssSwap(cssName, state){
	var cssComponent = document.getElementById( cssName );
	
	if( cssComponent ) {
		if( state == 'over' )
			cssComponent.className = 'menublockover';
		else if( state == 'out' )
			cssComponent.className = 'menublockoff';
	}
}