//SHOW AN OBJECT BY IDfunction oShw(oNme){	window.document.getElementById(oNme).style.display = '';}	//HIDE AN OBJECT BY IDfunction oHde(oNme){	window.document.getElementById(oNme).style.display = 'none';}// SHOWS SIDE MENUS & ENSURES EXPAND ON SECTION USER IS INfunction shwMnu(mnme){var PATHI = window.document.forms[0].PathInfo.value;	if (	window.document.getElementById(mnme + 'td').style.backgroundColor != '#ffffff')	{		if (window.document.getElementById(mnme).style.display == 'none')		{		oShw(mnme);		window.document.getElementById(mnme + 'td').style.backgroundColor = '#EDF2F9';		window.document.getElementById(mnme + 'txt').style.color = '#3399cc';		window.document.getElementById(mnme + 'arr').src =  PATHI + 'arr6.gif?openimageresource';		}		else			{		oHde(mnme);		window.document.getElementById(mnme + 'td').style.backgroundColor = '';		window.document.getElementById(mnme + 'txt').style.color = '#ffffff';		window.document.getElementById(mnme + 'arr').src =  PATHI + 'arr.gif?openimageresource';		}	}}			//TURNS A BUTTON ON AS HIGHLIGHTEDfunction btnon(){	if (window.document.forms[0].MenuTitle.value != 'MNUGallery') 	{	if (window.document.forms[0].AltPageTitle.value != "")		{var PTID = 'AltPageTitle';}	else		{var PTID = 'PageTitle';}			if (window.document.forms[0].NewDoc.value == false)	{		if (window.document.forms[0].MainMenu.value == '1') 		{			var WHICHMENU= window.document.forms[0].MenuTitle.value + window.document.getElementById(PTID).value;			var WHICHDOC = '';		}		else		{			var WHICHMENU= window.document.forms[0].MenuTitle.value;						if (window.document.forms[0].Status.value == 'Expired') 			{var WHICHDOC = 'View Expired Pages';}				else			{var WHICHDOC = window.document.getElementById(PTID).value;}		}		window.document.getElementById(WHICHMENU+'td').style.backgroundColor = '#ffffff';		window.document.getElementById(WHICHMENU+WHICHDOC+ 'lnkbg').style.color = '#ff9933';	}	}}//SUBMIT VALUESfunction sbmt(){	//Validate mandatory entries first	if (window.document.getElementById('CFirstName').value == "") 	{		alert("You MUST fill in your First Name");		window.document.getElementById('CFirstName').focus();		return;	}	if (window.document.getElementById('CSurname').value == "") 	{		alert("You MUST fill in your Surname");		window.document.getElementById('CSurname').focus();		return;	}	if (window.document.getElementById('CEmail').value == "") 	{		alert("You MUST fill in your Email address");		window.document.getElementById('CEmail').focus();		return;	}	if (window.document.getElementById('CComment').value == "") 	{		alert("You MUST fill in your comment/query");		window.document.getElementById('CComment').focus();		return;	}	window.frames.SBMFR.document.getElementById('Title').value = window.document.getElementById('CTitle').value;	window.frames.SBMFR.document.getElementById('FirstName').value = window.document.getElementById('CFirstName').value;	window.frames.SBMFR.document.getElementById('Surname').value = window.document.getElementById('CSurname').value ;	window.frames.SBMFR.document.getElementById('JobTitle').value = window.document.getElementById('CJobTitle').value;	window.frames.SBMFR.document.getElementById('Address1').value = window.document.getElementById('CAddress1').value;		window.frames.SBMFR.document.getElementById('Address2').value = window.document.getElementById('CAddress2').value;		window.frames.SBMFR.document.getElementById('Town').value = window.document.getElementById('CTown').value;	window.frames.SBMFR.document.getElementById('County').value = window.document.getElementById('CCounty').value;	window.frames.SBMFR.document.getElementById('Postcode').value = window.document.getElementById('CPostcode').value;	window.frames.SBMFR.document.getElementById('Telephone').value = window.document.getElementById('CTelephone').value;	window.frames.SBMFR.document.getElementById('Fax').value = window.document.getElementById('CFax').value;	window.frames.SBMFR.document.getElementById('Email').value = window.document.getElementById('CEmail').value;	window.frames.SBMFR.document.getElementById('Comment').value = window.document.getElementById('CComment').value;	//window.frames.SBMFR.FileSSubmit.click();	window.frames.SBMFR.document._SSubmit.submit();alert('Thank you ' + window.frames.SBMFR.document.getElementById('Title').value + ' '+window.frames.SBMFR.document.getElementById('Surname').value + ' your comments have been submitted.')}