
function text_validate() 

{
	 var period1 = document.search_form.period.options[document.search_form.period.options.selectedIndex].value;
	 var fromDay = document.search_form.fromDay.value;
	 var fromMonth = document.search_form.fromMonth.value;
	 var fromYear = document.search_form.fromYear.value;
	 var toDay = document.search_form.toDay.value;
	 var toMonth = document.search_form.toMonth.value;
	 var toYear = document.search_form.toYear.value;

 
	 if (document.search_form.keyword.value == '' || document.search_form.keyword.value == 'Enter Keyword') 
	 {
	      alert('Please enter your keyword');
	      document.search_form.keyword.focus();
	      return false;
	 }
 
 	

	 if (period1 == '-')
	 {
		   alert('Please select a time period from the list or enter dates in the space provided')
		   document.search_form.period.focus();
		   return false;
	   }


	 
	 else {
	          document.getElementById("search_form").submit();
	          return true;
	       }
	

 }
 
 
 
 


function dummyValues() {
  var dateArray = new Array(document.search_form.fromDay,document.search_form.fromMonth, document.search_form.fromYear,document.search_form.toDay,document.search_form.toMonth,document.search_form.toYear);
  for (var i=0; i<dateArray.length; i++) {
    if (dateArray[i].value=="")
    dateArray[i].selectedIndex=0;
  }
}


