// JavaScript Document

function greyInitial(element, colour) {
	var el = document.getElementById(element);
	if (!colour) { colour = "666"; }
	
	if(el != undefined){
		
		var ph = el.getAttribute("value");
		
		//initialize the placeholder text
		el.value=ph;
		el.style.color='#' + colour;
		
		el.onclick = el.onfocus = function(){
			if (this.value == ph){
				this.value='';
			}
			this.style.color='#000';
		}
		
		
		el.onblur = function(){
			if (this.value == ph || this.value == ""){
				this.value=ph;
				this.style.color='#' + colour;
			}
		}
		
	}else{ 
		return; 
	}
}