//<script language="javascript">
	function resz()
	{
		if (document.layers)
		history.go(0);
	}
					
	function rollover(imgId,ImgSrc)
	{
		//alert(imgId)
		eval("document.images['"+imgId+"'].src='"+ImgSrc+"'")
	}
	
	function layerRollover(layID,imgId,ImgSrc)
	{
		if (document.layers)
		{
			if (eval("document.layers."+layID+".document.images['"+imgId+"']"))
				eval("document.layers."+layID+".document.images['"+imgId+"'].src='"+ImgSrc+"'")
		}
		else
		{
			if (eval("document.images['"+imgId+"']"))
				eval("document.images['"+imgId+"'].src='"+ImgSrc+"'")
		}
	}
	
	function trim(strRep) {
	arrRep = strRep.split(' ');
	var newstr = ''
	
	for(i=0;i<arrRep.length;i++) {
		if (arrRep[i] != '') {
			if (newstr == '') {
				newstr = arrRep[i];
			}
			else {
				newstr = newstr + ' ' + arrRep[i];
			}
		}
	}
	return(newstr);
}
	
	function checkForm()
	{
		msg='Please complete the following complusory fields:\n'
		if (document.forms.FeedbackForm.name.value=='')
			msg+='Name\n';
		if (document.forms.FeedbackForm.section.value=='')
			msg+='Section of site\n';
		if (document.forms.FeedbackForm.email.value=='')
		{
			msg+='Email address\n';
		}
    	else
    	{
    		if (!validEmail(document.forms.FeedbackForm.email.value))
    			msg+='Email: Please ensure your email is entered correctly';		
    	}	
    	if (document.forms.FeedbackForm.comments.value=='')
			msg+='Comments\n';
		if (msg=='Please complete the following complusory fields:\n')
		{
			//alert ("here");
			//alert(document.forms.FeedbackForm.section.options[document.forms.FeedbackForm.section.selectedIndex].text);
			document.forms.FeedbackForm.sectionname.value = document.forms.FeedbackForm.section.options[document.forms.FeedbackForm.section.selectedIndex].text;
			//document.forms.FeedbackForm.action="/output/Feedback.asp";
			//document.forms.FeedbackForm.method="post"
			document.forms.FeedbackForm.submit();
		}
		else
		{
			alert(msg);
		}
	}
	
	function validEmail(address) {
	var invalids = " /:,;";
	
	if (address == "")
		return false;
				
	for (i=0; i<invalids.length; i++) {
		badChar = invalids.charAt(i)
		if (address.indexOf(badChar,0)>1) {
			return false;
		}
	}
				
	atPos = address.indexOf("@",1)
	if (atPos == -1)
		return false;
				
	if (address.indexOf("@",atPos+1) != -1)
		return false;
				
	periodPos = address.indexOf(".",atPos)
	if (periodPos == -1)
		return false;
				
	if (periodPos+3 > address.length)
		return false;
	
	return true;
}

function SurfTo(PageLocation) {
	window.location.href = PageLocation;
}


//</script>	