function showform() {
	MM_showHideLayers('form','','show');
}

function closeform() {
	MM_showHideLayers('form','','hide');
}

function checkdata() {
	var d=document.forms[0];
	var issind=d.start_issue.selectedIndex;
	var tind=d.title.selectedIndex;
	var namefirst=d.firstname.value;
	var namelast=d.surname.value;
	var ad1=d.add1.value;
	var town=d.town.value;
	var countryind=d.country.selectedIndex;
	var pcode=d.postcode.value;
	var telphone=d.tel1.value;
	var e=d.email.value;
	var econf=d.emailconf.value;
	var lf=String.fromCharCode(10) + 'Please check the details and retry!';
	if (issind<=0 || tind<=0 || namefirst=='' || namelast=='' || ad1=='' || town=='' || countryind<=0 || pcode=='' || telphone=='' || e=='' || econf=='') {
		alert('You have not filled in all the required fields!' + lf);
		return;
		}
	if (e!=econf) {
		alert('Your e-mail addresses do not match!' + lf);
		return;
		}
	if (NoOfChars(e,"@") != 1 || NoOfChars(econf,".") < 1) {
		alert('That e-mail address does not appear to be valid!' + lf);
		return;
		}
	d.submit();
}
