// JavaScript Document
function ClearDefaultText(inO, inDefText, inColor){/* onFocus="ClearDefaultText(this,'<default text>');"
 example input attributes: style="color:##999999;"  value="mm/dd/yyyy" 
args: inO (required) object to clear
inDefText (required) object's default text to check for and clear if field has that value
inColor (optional) hexdec color of text when object is active to indicate user is typing a value in the field; default color is 000000 (black)
*/
	if(inColor==null) inColor="#000000";
	if(inO.value==inDefText){
		inO.value="";
		inO.style.color=inColor;
	}
}
function ClearDefaultVals(inArray){/*use on submit to clear default text from fields;
pass in 2D array of pairs of id and text to delete
args: inArray is [["field ID 1","default text 1"], ["field ID 2","default text 2"]...] 
*/
	for(var i=0;i<inArray.length;i++){
		var o=document.getElementById(inArray[i][0]);
		if(o.value && o.value==inArray[i][1]) o.value="";
	}
}
function ResetDefaultVals(inArray, inColor){
	if(inColor==null) inColor="#999999";
	for(var i=0;i<inArray.length;i++){
		var o=document.getElementById(inArray[i][0]);
		if(o.value==""){
			o.style.color=inColor;
			o.value=inArray[i][1];
		}
	}
}