
function highlight(obj, bIsSelected) {
	if (document.getElementById) {
		if(!bIsSelected) {
			obj.parentNode.parentNode.style.backgroundColor="#F6D170";
		} else {
			obj.parentNode.parentNode.style.backgroundColor="#FFF";
		}
	}
}

function formCheck()
			{
				if (document.contactForm.first_name.value == "")
				{
					alert("Please enter your first name");
					document.contactForm.first_name.focus();
					return false;
				}
				if (document.contactForm.last_name.value == "")
				{
					alert("Please enter your last name");
					document.contactForm.last_name.focus();
					return false;
				}				
				if (document.contactForm.email.value == "")
				{
					alert("Please enter your email address");
					document.contactForm.email.focus();
					return false;
				}
				
				if (document.contactForm.email.value.indexOf("@") == -1)
				{
					alert("Please enter a valid email address - you have not entered an @ sign");
					document.contactForm.email.focus();
					return false;
				}
				
				if (document.contactForm.email.value.indexOf(".") == -1)
				{
					alert("Please enter a valid email address - you have not entered a dot anywhere");
					document.contactForm.email.focus();
					return false;
				}
				

}




function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

var cmThemeOffice =
{
  	// main menu display attributes
  	//
  	// Note.  When the menu bar is horizontal,
  	// mainFolderLeft and mainFolderRight are
  	// put in <span></span>.  When the menu
  	// bar is vertical, they would be put in
  	// a separate TD cell.

  	// HTML code to the left of the folder item
  	mainFolderLeft: '',
  	// HTML code to the right of the folder item
  	//mainFolderRight: '&nbsp;',
    mainFolderRight: '',
	// HTML code to the left of the regular item
	mainItemLeft: '',
	// HTML code to the right of the regular item
	mainItemRight: '',

	// sub menu display attributes

	// 0, HTML code to the left of the folder item
	folderLeft: '&nbsp;',
	// 1, HTML code to the right of the folder item
	folderRight: '&nbsp;',
	// 2, HTML code to the left of the regular item
	itemLeft: '&nbsp;',
	// 3, HTML code to the right of the regular item
	itemRight: '&nbsp;',
	// 4, cell spacing for main menu
	mainSpacing: 0,
	// 5, cell spacing for sub menus
	subSpacing: 0,
	// 6, auto dispear time for submenus in milli-seconds
	delay: 500
};

// for horizontal menu split
//var cmThemeOfficeHSplit		= [_cmNoAction, '<td class="ThemeOfficeMenuItemLeft"></td><td colspan="2"><div class="ThemeOfficeMenuSplit"></div></td>'];
//var cmThemeOfficeMainHSplit = [_cmNoAction, '<td class="ThemeOfficeMainItemLeft"></td><td colspan="2"><div class="ThemeOfficeMenuSplit"></div></td>'];
//var cmThemeOfficeMainVSplit = [_cmNoAction, '|'];



