function uppercasefirst(objElement){	//the first part removes spaces (if any) from the front of the string		if (objElement.value.charAt(0)==" "){	var countspaces=1		for (i=1; i<objElement.value.length; i++){			if (objElement.value.charAt(i)==" "){				countspaces+=1			}		}		var tempholder=""		for (i=countspaces; i<objElement.value.length; i++){			tempholder+=objElement.value.charAt(i)		}		objElement.value=tempholder	}	//set first letter to capital	var firstletter=objElement.value.charAt(0).toUpperCase()  	for (i=1;i<objElement.value.length; i++){		firstletter+=objElement.value.charAt(i).toLowerCase()	}	objElement.value=firstletter	//See if there is a second word to capitalize.	secondword=objElement.value.split(" ")	if (secondword.length>1){				secondword1=secondword[1].charAt(0).toUpperCase()		//secondword1.toUpperCase()		secondword2=secondword[1].substring(1,secondword[1].length).toLowerCase()		objElement.value=secondword[0]+" "+secondword1+secondword2	}}