﻿function doPODwindow() {uploadWin=window.open('http://194.196.143.10/','PODWindow','width=750,height=600,location=no,toolbars=no,scrollbars=yes,status=yes');}function openAWindow(theURL,uniqueName,windowWidth,windowHeight) {windowToOpen=window.open(theURL,uniqueName,'width='+windowWidth+',height='+windowHeight+',location=no,toolbars=no,scrollbars=yes,status=yes');}function doEmail(tld, start, dname) {	document.location.href="mailto:" + start + "@" + dname + tld;	document.location.href="contact.asp?email=y";}function doIGwindow(imageRef) {imageWin=window.open('http://www.tuffnells.co.uk/mediacentre-image.asp?file='+imageRef,'ImageWindow','width=700,height=580,location=no,toolbars=no,scrollbars=yes,status=no');}function checkEmail(myForm) {if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.email.value) || myForm.postcode.length>3){// when the site is dynamic use this line below instead of the one above// if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm["emailaddress[1]"].value)){return (true)}alert("Please check your E-Mail Address and Postcode!")return (false)}