
function resetsearchbox() {
document.getElementById('specialismselected').innerHTML='';
/*document.getElementById('specialismselected').style.display='none';*/
document.getElementById('jobtypeselected').innerHTML='';
/*document.getElementById('jobtypeselected').style.display='none';*/
document.getElementById('locationselected').innerHTML='';
/*document.getElementById('locationselected').style.display='none';*/
document.getElementById('salaryselected').innerHTML='';
/*document.getElementById('salaryselected').style.display='none';*/
document.getElementById('sectorselected').innerHTML='';
/*document.getElementById('sectorselected').style.display='none';*/
 document.getElementById('keywords').value='Keyword(s)'; 


if (document.form1.specialism) {
for (i=0;i<document.form1.specialism.length;i++) {
    thisid='spec'+ i;
    document.getElementById(thisid).style.backgroundColor='';
    document.form1.specialism[i].checked=false;
}
}
if (document.form1.sector) {
for (i=0;i<document.form1.sector.length;i++) {
    thisid='sector'+ i;
    document.getElementById(thisid).style.backgroundColor='';
    document.form1.sector[i].checked=false;
}
}
if (document.form1.location) {
for (i=0;i<document.form1.location.length;i++) {
    thisid='location'+ i;
    document.getElementById(thisid).style.backgroundColor='';
    document.form1.location[i].checked=false;
}
}
if (document.form1.salary) {
for (i=0;i<document.form1.salary.length;i++) {
    thisid='salary'+ i;
    document.getElementById(thisid).style.backgroundColor='';
    document.form1.salary[i].checked=false;
}
}
if (document.form1.jobtype) {
for (i=0;i<document.form1.jobtype.length;i++) {
    thisid='jobtype'+ i;
    document.getElementById(thisid).style.backgroundColor='';
    document.form1.jobtype[i].checked=false;
}
}


}


/* Makes radio buttons work like rollover row selections if the button's visibility is set to hidden. */
function highlightsel (radioobj, index, commonstr) {
 for (i=0;i<radioobj.length;i++) {
 thisid=commonstr+i;
 if (index==i) {
  document.getElementById(thisid).style.backgroundColor='#f2f2f2';
 } else {
  document.getElementById(thisid).style.backgroundColor='';
 }
 radioobj[index].checked=true;
 } 
 }

 
 
/* CLock functions */


  var timerID = null
  var timerRunning = false
  function MakeArray(size)
  {
  this.length = size;
  for(var i = 1; i <= size; i++)
  {
  this[i] = "";
  }
  return this;
  }
  function stopclock (){
  if(timerRunning)
  clearTimeout(timerID);
  timerRunning = false
  } 
  function showtime () {
  var now = new Date();
  var year = now.getYear();
  var month = now.getMonth() + 1;
  var date = now.getDate();
  var hours = now.getHours();
  var minutes = now.getMinutes();
  var seconds = now.getSeconds();
  var day = now.getDay();
  Day = new MakeArray(7);
  Day[0]="Sunday";
  Day[1]="Monday";
  Day[2]="Tuesday";
  Day[3]="Wednesday";
  Day[4]="Thursday";
  Day[5]="Friday";
  Day[6]="Saturday";
 
datetxt="th";
	datetxt=(( date==3 |date==23)? "rd" : datetxt);
	datetxt=(( date==1 |date==21 |date==31)? "st" : datetxt);
  datetxt=(( date==2 |date==22)? "nd" : datetxt);


  var timeValue = "";
  timeValue += ((hours <= 12) ? hours : hours - 12);
  timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
  

  timeValue += "   |" + (Day[day]) + "   ";
  timeValue += ((month > 10) ? " 0" : " ") + month + "-";
  timeValue += date + "-" + year + "    ";
/*	timeValue = formatDate(now,'HH:mm | E MMM d'); */
	timeValue = formatDate(now,'HH:mm |  MMM d'); 

	timeValue +=  datetxt + formatDate(now,' yyyy')
  document.getElementById('dateTime').innerHTML = timeValue;
  timerID = setTimeout("showtime()",1000);
  timerRunning = true
  }
  


/*timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
  timeValue += (hours < 12) ? " AM" : " PM";*/


	function startclock () {
  stopclock();
  showtime()

/* return 1; */
  }
   