// Create by: Lukas Kristian
//	Time		: 22 April 2009 9:35:00

// search text default
var search_default = "SEARCH";

// This function is called when user enter the input field
function focusField(field, fieldName)
{
// If the input field that user entered is search
// erase the value if its the default value
 if(fieldName == "Search")
 {
  if(field.value == search_default)
  {
	field.value = "";
  }
 }
}

// This function is called when user exit the input field
function blurField(field, fieldName)
{
// If the input field that user exit from is search
// change the empty search field with its default value
 if(fieldName == "Search")
 {
  if(field.value == "")
  {
    field.value = search_default;
  }
 }
}


