function ValidateForm()
	{

	if (document.frmPL.lstSearchGroup.selectedIndex == -1)
		{
		window.alert('Please select an organisation from the list.');
		document.frmPL.lstSearchGroup.focus();
		return false;
		}

	/*********************************************************************************
         ** Date: 08/12/99
         ** Author: J. Hales
	 ** If they selected Hospital then show the message saying that they should
         ** select a specific hospital type
         *********************************************************************************/
	if (document.frmPL.lstSearchGroup.value == 'HOSPITALMSG')
	{
		window.alert('Please select a type of Hospital from the list:\n\n  * BUPA Hospitals\n  * Partnership Network Hospitals\n  * All Participating Hospitals');
		document.frmPL.lstSearchGroup.focus();
		return false;
	}

	/*********************************************************************************
         ** Date: 08/11/99
         ** Author: J. Hales
	 ** Make sure there is a value otheriwse they may been on the top 2 dummy items
         *********************************************************************************/
	if (document.frmPL.lstSearchGroup.value == '')
	{
		window.alert('Please select an organisation from the list.');
		document.frmPL.lstSearchGroup.focus();
		return false;
	}

	/* They must be useing Netscape so the Action will not have been set.  It will be checked by our Class */
	if (document.frmPL.txtWhere.value == null || document.frmPL.txtWhere.value == '')
		{
		window.alert('Please enter a location, such as SW17 8DY, or Dundee.');
		document.frmPL.txtWhere.focus();
		return false;
		}

	if (document.frmPL.txtWhere.count < 2 )
		{
		window.alert('Please enter at least two characters for the location, such as SW17, or Brighton.');
		document.frmPL.txtWhere.focus();
		return false;
		}

	/*********************************************************************************
    ** Date: 05/07/01
    ** Author: Bryn Thomas
    ** Use the Wellness search page and results for Screening Centres
    *********************************************************************************/
	if (document.frmPL.lstSearchGroup.value == '9' )
		{
		document.frmPL.action = 'http://hcd2.bupa.co.uk/health_service/hs_search.asp?WCI=tplSearchCriteriaWellness&WCE=Submit';
		}

	return true;
	}

function ClearSpecField()
	{
	return true;
	}

  function GetDay(intDay){
    var DayArray = new Array("Sunday", "Monday", "Tuesday", "Wednesday", 
                         "Thursday", "Friday", "Saturday")
    return DayArray[intDay]
    }

  function GetMonth(intMonth){
    var MonthArray = new Array("January", "February", "March",
                               "April", "May", "June",
                               "July", "August", "September",
                               "October", "November", "December") 
    return MonthArray[intMonth] 	  	 
    }

  function getDateStrWithDOW()
    {
    var today = new Date();
    var yearNum = today.getYear();
    var yearStr = "";
    var todayStr = GetDay(today.getDay()) + '<br>'+ '<img src="/images/clearpix.GIF" width=1 height=5 border=0 ><br>'
	
	/*********************************************************************************
	** J. Hales
	** Note that .getYear() produces the following effects amongst different browsers
	**   Navigator2 & 3: for years between 1900-1999 it strips off 1900 from the year
	**   IE3: it always returns the year - 1900
	**********************************************************************************/
	if (yearNum <1000) 
	  {
	  yearNum += 1900;
	  }
    yearStr = "" + yearNum ;
	  
    todayStr += GetMonth(today.getMonth()) + " " + today.getDate();
    todayStr += ", " + yearStr ;
    
    return todayStr;
    }
