
function check_address() 
	{
	
	var formType;
	formType = document.form1.formType.value;
	if (formType == "feedback")
		{
				if  (document.form1.firstname.value == ""){ alert("Please enter your First Name"); document.form1.firstname.focus(); return false; }
				if  (document.form1.surname.value == ""){ alert("Please enter your Surname"); document.form1.surname.focus(); return false; }
				if  (document.form1.company.value == ""){ alert("Please enter your company name"); document.form1.company.focus(); return false; }
				if  (document.form1.email.value == ""){ alert("Please enter your email address"); document.form1.email.focus(); return false; }
				if  (document.form1.enquiry.value == ""){ alert("Please complete your enquiry"); document.form1.enquiry.focus(); return false; }
		}

		if (formType == "register")
			{
				if  (document.form1.firstname.value == ""){ alert("Please enter your First Name"); document.form1.firstname.focus(); return false; }
				if  (document.form1.surname.value == ""){ alert("Please enter your Surname"); document.form1.surname.focus(); return false; }
				if  (document.form1.company.value == ""){ alert("Please enter your company name"); document.form1.company.focus(); return false; }
				if  (document.form1.email.value == ""){ alert("Please enter your email address"); document.form1.email.focus(); return false; }
				if  (document.form1.FirmReferenceNumber.value == ""){ alert("Please stage your firm reference number"); document.form1.FirmReferenceNumber.focus(); return false; }
			}
	}


if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) {
	window.attachEvent("onload", fnLoadPngs);
}

function fnLoadPngs() {
	var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
	var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);
	for (var i = document.all.length - 1, obj = null; (obj = document.all[i]); i--) {
		if (itsAllGood && obj.currentStyle.backgroundImage.match(/\.png/i) != null) {
			this.fnFixPng(obj);
			obj.attachEvent("onpropertychange", this.fnPropertyChanged);
		}
	}
}
	
function fnPropertyChanged() {
	if (window.event.propertyName == "style.backgroundImage") {
		var el = window.event.srcElement;
		if (!el.currentStyle.backgroundImage.match(/x\.gif/i)) {
			var bg	= el.currentStyle.backgroundImage;
			var src = bg.substring(5,bg.length-2);
			el.filters.item(0).src = src;
			el.style.backgroundImage = "url(x.gif)";
		}
	}
}
	
function fnFixPng(obj) {
	var bg	= obj.currentStyle.backgroundImage;
	var src = bg.substring(5,bg.length-2);
	obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')";
	obj.style.backgroundImage = "url(x.gif)";
}
