
// Clear search box text (thank you, Mirek Komárek : http://js-playground.blogspot.com)
// -----------------------------------------------------------------

function clearSearchValues(){
if(!document.getElementById || !document.createTextNode){return;}

var searchArea = document.getElementById('email-updates');
if(!searchArea){return;}

var inp=searchArea.getElementsByTagName('input');
for(var i=0;i<inp.length;i++){
	if(inp[i].type=='text'){
		
		switch(inp[i].getAttribute('name')){
		case 'eu-email':inp[i].setAttribute('rel','Email Address');break;
		}
	
		inp[i].onfocus=function(){
			if(this.value==this.getAttribute('rel')){this.value='';}
			else{return false;}
	}
	inp[i].onblur=function(){
		if(this.value==''){this.value=this.getAttribute('rel');}
		else{return false;}}

	}}	
}

// Cue up the onloads
//-----------------------------------
addLoadEvent(clearSearchValues);