function displaydate(){
	var day="";
	var month="";
	var myweekday="";
	var year="";
	newdate = new Date();
	mydate = new Date();
	dston =  new Date('April 4, 1999 2:59:59');
	dstoff = new Date('october 31, 1999 2:59:59');
	var myzone = newdate.getTimezoneOffset();
	newtime=newdate.getTime();
	
	var zone = -1;  // references your time zone
	
	if (newdate > dston && newdate < dstoff ) {
	zonea = zone - 1 ;
	dst = "  Pacific Daylight Savings Time";
	}
	else {
	zonea = zone ; dst = "  Pacific Standard Time";
	}
	var newzone = (zonea*60*60*1000);
	newtimea = newtime+(myzone*60*1000)-newzone;
	mydate.setTime(newtimea);
	myday = mydate.getDay();
	mymonth = mydate.getMonth();
	myweekday= mydate.getDate();
	myyear= mydate.getYear();
	year = myyear;
	
	if (year < 2000)   
	year = year + 1900; 
	myhours = mydate.getHours();
	if (myhours >= 12) {
	myhours = (myhours == 12) ? 12 : myhours - 12; mm = " PM";
	}
	else {
	myhours = (myhours == 0) ? 12 : myhours; mm = " AM";
	}
	myminutes = mydate.getMinutes();
	if (myminutes < 10){
	mytime = ":0" + myminutes;
	}
	else {
	mytime = ":" + myminutes;
	};
	arday = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
	armonth = new Array("January ","February ","March ","April ","May ","June ","July ","August ","September ", "October ","November ","December ")
	ardate = new Array("0th","1st","2nd","3rd","4th","5th","6th","7th","8th","9th","10th","11th","12th","13th","14th","15th","16th","17th","18th","19th","20th","21st","22nd","23rd","24th","25th","26th","27th","28th","29th","30th","31st");
	// rename locale as needed.
	
	var time = (ardate[myweekday] + " " +armonth[mymonth] +" " + year);
	document.write(time);
	//-->
}


function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


function checkFields() {
missinginfo = "";
if (document.form1.name.value == "") {
missinginfo += "\n     -  Name";
}
if ((document.form1.email.value == "") || 
(document.form1.email.value.indexOf('@') == -1) || 
(document.form1.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Email";
}
if (document.form1.telephone.value == "") {
missinginfo += "\n     -  Telephone Number";
}
if (document.form1.type.value == "") {
missinginfo += "\n     -  Type Of Enquiry";
}
if (document.form1.enquiry.value == "") {
missinginfo += "\n     -  Enquiry";
}

if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
document.returnValue= false;
}
else
document.returnValue= true;
}

function checkFields2() {
missinginfo = "";
if (document.form2.full_name.value == "") {
missinginfo += "\n     -  Your Name";
}
if (document.form2.job_title.value == "") {
missinginfo += "\n     -  Your Job Title";
}
if (document.form2.company_name.value == "") {
missinginfo += "\n     -  Company Name";
}
if (document.form2.postcode.value == "") {
missinginfo += "\n     -  Postcode";
}
if ((document.form2.email.value == "") || 
(document.form2.email.value.indexOf('@') == -1) || 
(document.form2.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Email";
}
if (document.form2.telephone_land.value == "") {
missinginfo += "\n     -  Telephone (land)";
}
if (document.form2.employee_number.value == "") {
missinginfo += "\n     -  Number of Employees";
}
if (document.form2.branches_number.value == "") {
missinginfo += "\n     -  Number of Branches in the UK";
}

if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else 
document.forms.form2.submit();
}



function checkFields3() {
missinginfo = "";
if (document.form3.full_name.value == "") {
missinginfo += "\n     -  Your Name";
}
if (document.form3.company_name.value == "") {
missinginfo += "\n     -  Company Name";
}
if (document.form3.postcode.value == "") {
missinginfo += "\n     -  Postcode";
}
if ((document.form3.email.value == "") || 
(document.form3.email.value.indexOf('@') == -1) || 
(document.form3.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Email";
}
if (document.form3.telephone_land.value == "") {
missinginfo += "\n     -  Telephone (land)";
}

if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else 
document.forms.form3.submit();
}



function checkFields4() {
missinginfo = "";
if (document.form4.full_name.value == "") {
missinginfo += "\n     -  Your Name";
}
if (document.form4.job_title.value == "") {
missinginfo += "\n     -  Your Job Title";
}
if (document.form4.company_name.value == "") {
missinginfo += "\n     -  Company Name";
}
if (document.form4.address1.value == "") {
missinginfo += "\n     -  Address";
}
if (document.form4.town.value == "") {
missinginfo += "\n     -  Town";
}
if (document.form4.postcode.value == "") {
missinginfo += "\n     -  Postcode";
}
if ((document.form4.email.value == "") || 
(document.form4.email.value.indexOf('@') == -1) || 
(document.form4.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Your Email";
}
if (document.form4.telephone_land.value == "") {
missinginfo += "\n     -  Telephone (land)";
}
if (document.form4.employee_number.value == "") {
missinginfo += "\n     -  Number of Employees";
}
if (document.form4.branches_number.value == "") {
missinginfo += "\n     -  Number of Branches in the UK";
}


if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else 
document.forms.form4.submit();
}



function checkFields5() {
missinginfo = "";
if (document.form5.full_name.value == "") {
missinginfo += "\n     -  Your Name";
}
if (document.form5.job_title.value == "") {
missinginfo += "\n     -  Your Job Title";
}
if (document.form5.company_name.value == "") {
missinginfo += "\n     -  Company Name";
}
if (document.form5.address1.value == "") {
missinginfo += "\n     -  Address";
}
if (document.form5.town.value == "") {
missinginfo += "\n     -  Town";
}
if (document.form5.postcode.value == "") {
missinginfo += "\n     -  Postcode";
}
if ((document.form5.email.value == "") || 
(document.form5.email.value.indexOf('@') == -1) || 
(document.form5.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Your Email";
}
if (document.form5.telephone_land.value == "") {
missinginfo += "\n     -  Telephone (land)";
}
if (document.form5.employee_number.value == "") {
missinginfo += "\n     -  Total Number of UK Employees";
}
if (document.form5.branches_number.value == "") {
missinginfo += "\n     -  Number of Branches in the UK";
}
if (document.form5.employees_per_branch.value == "") {
missinginfo += "\n     -  Number of Employees per Branch";
}
if (document.form5.branch_number_supply.value == "") {
missinginfo += "\n     -  How many branches do you wish us to supply?";
}
if (document.form5.locations.value == "") {
missinginfo += "\n     -  Preferred Locations";
}


if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else 
document.forms.form5.submit();
}




function checkFields6() {
missinginfo = "";
if (document.form6.full_name.value == "") {
missinginfo += "\n     -  Your Name";
}
if (document.form6.company_name.value == "") {
missinginfo += "\n     -  Company Name";
}
if (document.form6.postcode.value == "") {
missinginfo += "\n     -  Postcode";
}
if ((document.form6.email.value == "") || 
(document.form6.email.value.indexOf('@') == -1) || 
(document.form6.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Your Email";
}
if (document.form6.telephone_land.value == "") {
missinginfo += "\n     -  Telephone (land)";
}

if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else 
document.forms.form6.submit();
}



function checkFields7() {
missinginfo = "";
if (document.form7.name.value == "") {
missinginfo += "\n     -  Name";
}
if (document.form7.id.value == "") {
missinginfo += "\n     -  Therapist ID";
}
if ((document.form7.email.value == "") || 
(document.form7.email.value.indexOf('@') == -1) || 
(document.form7.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Email";
}
if (document.form7.telephone.value == "") {
missinginfo += "\n     -  Telephone Number";
}
if (document.form7.type.value == "") {
missinginfo += "\n     -  Type Of Enquiry";
}
if (document.form7.enquiry.value == "") {
missinginfo += "\n     -  Enquiry";
}

if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else 
document.forms.form7.submit();
}

