// Login Drop Box Javascript
// All code property of Derek Sanford and Doggyhelp.com
function sendToAFriend(URL) {
	window.open(URL,'SendToAFriend','toolbar=no,width=500,height=550');
} 
function contactUs() {
	window.open('http://www.doggyhelp.com/contact.php','contactus','toolbar=no,width=500,height=450');
} 
function enlargePlants(URL) {
	window.open(URL,'enlargeplants','toolbar=no,width=500,height=500');
}

function fieldFocus(ID,TEXT) {
	if (document.getElementById(ID).value == TEXT) {
		document.getElementById(ID).value = '';
		if (ID == 'password1' || ID == 'password2') {
			var input = document.getElementById(ID);	
			var input2 = input.cloneNode(false);
			input2.type = 'password';
			input.parentNode.replaceChild(input2,input);
		}
	}
}

function fieldBlur(ID,TEXT) {
	if (document.getElementById(ID).value == '') {
		document.getElementById(ID).value = TEXT;	
		if (ID == 'password1' || ID == 'password2') {
			var input = document.getElementById(ID);	
			var input2 = input.cloneNode(false);
			input2.type = 'text';
			input.parentNode.replaceChild(input2,input);
		}
	}
}