function MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function MM_swapImgRestore() { //v3.0  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}function MM_findObj(n, d) { //v4.0  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && document.getElementById) x=document.getElementById(n); return x;}function MM_swapImage() { //v3.0  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}var times=0;function login(){	var bad=0;	if((document.forms[0].email.value=="") || (document.forms[0].email.value=="Please enter your email address")){document.forms[0].email.value='Please enter your email address';document.forms[0].email.style.color='#0066cc';bad=1;}	if((document.forms[0].password.value=="") || (document.forms[0].password.value=="Enter password")){document.forms[0].password.value='Enter password';document.forms[0].password.style.color='#0066cc';bad=1;}	if((bad==1) && (times>=2)){alert('You must enter your email address and your password');return false;}	if(bad==1){times++;return false;}	if(screen.availWidth<900){		if(!confirm('Your screen resolution is low.\n\nThis means that you have a reduced viewing area which will\nmake it hard to use the Learning Zone.\n\nWe would recommend you change your screen resolution\nbefore continuing.\n\nDo you wish to continue?')){return false;}		var x=(screen.availWidth-15);		var y=(screen.availHeight-30);		var lefty = 0;		var toppy = 0;	}	if(screen.availWidth>=900){		var x=(screen.availWidth-15);		var y=(screen.availHeight-30);		var lefty = 0;		var toppy = 0;	}		if(document.forms[0].level.value=="a"){document.forms[0].action="cgi-bin/level_a/welcome.pl"}	if(document.forms[0].level.value=="b"){document.forms[0].action="cgi-bin/level_b/welcome.pl"}	trcwin = window.open("","trcwin","status=yes,resizable=yes,scrollbars=yes,fullscreen=no,left="+lefty+",top="+toppy+",width="+x+",height="+y);}function openNews(){	window.open('http://www.psychological-consultancy.com/cgi-bin/-news.pl','news','width=850,height=600,resizable=yes,status=yes,scrollbars=yes')}function openpromo(){	//location='http://www.cipd.co.uk/cande/hrd/'	location='products_training.htm'}function openlzdemo(){	window.open('cgi-bin/promo.pl','promo','width=510,height=550,resizable=no,status=yes')}function openDemo(){	window.open('learning_demo.htm','learning','width=760,height=600,resizable=no,status=yes')}function openCourse(){	window.open('/course_booking_01.asp','booking','width=600,height=700,resizable=yes,status=yes,scrollbars=yes')}function openRR(n){	window.open('rr_01.asp?rr='+n,'Research','width=600,height=400,resizable=yes,status=yes,scrollbars=yes')}function resProj(){	window.open('research_project.htm','','width=760,height=550,resizable=yes,status=yes,scrollbars=yes')}window.focus();function loadDates(){		if((document.forms[0].course.value==2)||(document.forms[0].course.value==3)||(document.forms[0].course.value==5)||(document.forms[0].course.value==6)){			document.forms[0].payment[2].disabled=true;			document.forms[0].payment[3].disabled=true;			}		document.forms[0].other.value="";		document.forms[0].action="http://www.psychological-consultancy.com/cgi-bin/course_booking.pl";		document.forms[0].submit();}function submitIt(){	var bad=0;	var ok=0;	if(document.forms[0].fname.value==""){bad=1};	if(document.forms[0].lname.value==""){bad=1};	if(document.forms[0].company.value==""){bad=1};	if((document.forms[0].ad1.value!="") ||(document.forms[0].ad2.value!="") || (document.forms[0].ad3.value!="")){ok=1}	else{bad=1}	if(document.forms[0].town.value==""){bad=1};	if(document.forms[0].county.value==""){bad=1};	if(document.forms[0].postcode.value==""){bad=1};	if(document.forms[0].std.value==""){bad=1};	if(document.forms[0].tel.value==""){bad=1};	if(document.forms[0].email.value==""){bad=1}; 	if((document.forms[0].course.value=="") && (document.forms[0].other.value=="")){bad=1}	if((document.forms[0].payment[0].checked==true)||(document.forms[0].payment[1].checked==true)||(document.forms[0].payment[2].checked==true)||(document.forms[0].payment[3].checked==true)){ok=1}	else{bad=1}	if(bad==1){alert('You must fill in all fields marked with an asterisk * '); return false;}	if(document.forms[0].confirmbox.checked==false){alert('You must confirm that you agree and will abide to the terms and conditions set out above'); return false;}	document.forms[0].action="cgi-bin/sendBooking.pl"	return true;	}function MM_openBrWindow(theURL,winName,features) { //v2.0  window.open(theURL,winName,features);}