// JavaScript Document	var menuOnCol = "#000";	var menuOffCol = "";	var LstOpenedDiv = '';//ADJUST FIELD HEIGHTS TO CONTENT ON KEYUPfunction hgtAdj(obj){obj.style.height=obj.scrollHeight+6}function swapImage(imgN,imgU){if(document.images)document.images[imgN].src=imgU;}//END OF MK Additions	function shwMnu(divid){		if(LstOpenedDiv != ''){		cDiv(LstOpenedDiv);		oDiv(divid);		}else	{			oDiv(divid);						}		LstOpenedDiv = divid;		}				//SHARED MENU CODE	function oDiv(divid){		window.document.getElementById(divid).style.display = 'block';		window.document.getElementById(divid + 'tab').style.background = menuOnCol;		}	function cDiv(LstOpenedDiv,obj){		window.document.getElementById(LstOpenedDiv).style.display = 'none';		window.document.getElementById(LstOpenedDiv + 'tab').style.background = menuOffCol;		}// CLOSES MENUS WHEN A NON-LINK IS CLICKED ===	function cls(e){		if(e)	{			var obj = e.target			}else{			var obj = event.srcElement			}			//================= menu closer			if(obj.nodeName != 'A')				{				if(LstOpenedDiv != ''){					cDiv(LstOpenedDiv);										}				}			//================= field focus highlight			//end			}	document.onclick = cls;		//		var colON = '#dddddd';	var colOFF = '#ffffff'		function hvrcol(obj,colr){		obj.parentNode.parentNode.bgColor = colr;		}//VALIDATE NUMBERSfunction fncNumbers(f)	{		// Validate numeric	var fieldname = f.name;     var fieldvalue = f.value    	var validN = '1234567890.,-';	var errfound = 0;   	if (fieldvalue.length == 0) { return 0 }         	for (var i=0; i < fieldvalue.length; i++) 	{		if (validN.indexOf(fieldvalue.substring(i,i+1)) <0) 		{                     		document.forms[0].elements[fieldname].focus();  			return 1;		};	};	} //End fncNumbers//SUBMIT VALUESfunction sbmt(){	//Validate mandatory entries first	if (window.document.getElementById('CSurname').value == "") 	{		alert("You MUST fill in your Name");		window.document.getElementById('CSurname').focus();		return;	}		if (window.document.getElementById('CTelephone').value == "") 	{		alert("You MUST fill in your Telephone Number");		window.document.getElementById('CTelephone').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('Surname').value = window.document.getElementById('CSurname').value ;	window.frames.SBMFR.document.getElementById('Address').value = window.document.getElementById('CAddress').value;		window.frames.SBMFR.document.getElementById('Telephone').value = window.document.getElementById('CTelephone').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('FirstName').value + ' '+window.frames.SBMFR.document.getElementById('Surname').value + ' your comments have been submitted.')	//history.back()	self.location.href = window.document.forms[0].DocLocation.value + '?OpenDocument';}
