var message="You may use material from this site but please acknowledge\nLetsGoToWork.org.uk \xA9 2002"; 

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;


monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
var fullyear = modified.getYear();

if (fullyear < 100) 	{fullyear = fullyear + 2000 };
if (fullyear < 2000)	{fullyear = fullyear + 1900 };


if (top.location!=self.location) 	{
	top.location.href=self.location	};

function ShowTop() 			{
this.focus();				};

if (Image)				{

movearrow=new Image;
morearrow=new Image;
button0=new Image;
button1=new Image;

movearrow.src="graphics/move.gif";
morearrow.src="graphics/more.gif";
button0.src="graphics/button0.gif";
button1.src="graphics/button1.gif"
}

function WindowOpen(page)	{
newWindow=window.open(page, 'privwin', 'width=480,height=400,left=100,top=20,menubar=no,toolbar=no,location=No,directories=no,scrollbars=yes,status=no,resizable=no');
};

function checkSubmit(cookiename) {
if (alreadyclicked=="yes") {
alert("Form already being processed.");
return;	}

//validate Postcodes
if (document.registr.work.value.length <=4 ) {
	alert("We need your full work postcode")
	registr.work.focus()
	return false
}
if (document.registr.home.value.length <=4 ) {
	alert("You must enter your full home postcode")
	registr.home.focus()
	return false
}
if (document.registr.email.value == "your@company.email.co.uk") {
	alert("Please enter your company email address")
	registr.email.focus()
	return false
}
if (document.registr.email.value == "your@address.co.uk") {
	alert("Please enter your own email address")
	registr.email.focus()
	return false
}
if (document.registr.email.value == "" ) {
	alert("Please enter an email address")
	registr.email.focus()
	return false
}
fromaddress = "'" + document.registr.realname.value + "'<" + document.registr.email.value + ">";
document.registr.wfrom.value = fromaddress

if (document.cookie.indexOf(cookiename) > -1)	{
var mystart=document.cookie.indexOf(cookiename);
var myend=document.cookie.indexOf(";",mystart);

if (myend<0)	{myend=document.cookie.length;}
var mydate = document.cookie.substring(mystart + cookiename.length + 1, myend + 1 );
var myconfirm = "You submitted this form at ";
myconfirm = myconfirm + mydate;
myconfirm = myconfirm + ". Submit again?\n(Use the multiple registration for people at the same company)"
ret = confirm(myconfirm);
if (ret==false)	{return;	}
}

mydate = new Date();
expireDate = new Date();
expireDate.setTime(expireDate.getTime()+1000*60*10);
document.cookie = cookiename+"="+mydate+";expires="+expireDate.toGMTString();
alreadyclicked="yes";
document.registr.submit();
}
