<!-- // hide from old browsers

function focusField(element, text) { //removes default text in search field
  if (element.value == text) {
 element.value = "";
  }
}

function blurField(element, text) { //removes default text in search field if left empty
  if (element.value == "") {
 element.value = text;
  }
}

function valsearchform() { //prompts if search field is empty or default text
	var utxt;
	if (document.searchform.qt.value == ""||document.searchform.qt.value == "University site search") {
		utxt = prompt("Please enter a search term","");
		if (utxt == null||utxt == "") {
			document.searchform.qt.value = "";
			return false;
		}else{
			document.searchform.qt.value = utxt;
			return true;
		}
	}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function sendemail(x,y) { //email munger script
  void(top.location="\u006d\u0061\u0069\u006c\u0074\u006f\u003a"+x+"\u0040"+y);
  return false;
}

function openSeminarsWindow(w, h, semID)
{
	x = (screen.width / 2) - (w / 2);
	y = (screen.height / 2) - (h / 2);
	
	if(semID == 0)
		w=window.open('http://pluto.ecom.unimelb.edu.au/seminars/pub/', 'seminars', 'left=' + x + ',top=' + y + ',width=' + w + ',height=' + h+',toolbar=no,resizable=yes,location=no,scrollbars=yes');
	else
		w=window.open('http://pluto.ecom.unimelb.edu.au/seminars/pub/index.cfm?semID='+semID, 'seminars', 'left=' + x + ',top=' + y + ',width=' + w + ',height=' + h+',toolbar=no,resizable=yes,location=no,scrollbars=yes');
}	

// -->
