﻿// JavaScript template using Windows Script Host

function clickedInsideSearch() { // this function is executed when search box gets focus (onfocus event)
	var theSearchBox = document.getElementById("searchbox");
	if (theSearchBox.value == "Search")
		theSearchBox.value = "";
	
}

function clickedOutsideSearch() { // this function is executed when search box loses focus (onblur event)
	var theSearchBox = document.getElementById("searchbox");
	if (theSearchBox.value == "")
		theSearchBox.value = "Search";
}
