function hideS2Fdiv() {
	dd = document.getElementById('send2friend').style;
	dd.display = 'none';
}
function showS2Fdiv() {
	dd = document.getElementById('send2friend').style;
	dd.display = 'block';
}
function resetS2Fdiv() {
	document.getElementById('alert').innerHTML="";
	document.getElementById('sender').style.backgroundColor="FFFFFF";
	document.getElementById('friend').style.backgroundColor="FFFFFF";
	document.myForm.sender.value = "";
	document.myForm.friend.value = "";
}
function validate_S2F_required(field,alerttxt) {
	with (field) {
		if (value==null||value=="") {
			document.getElementById('alert').innerHTML='<B><font color="CC0000">' + alerttxt + '</font></B>';
			return false
		} else {
			return true
		}
	}
}
function validate_S2F_form(thisform) {
	with (thisform) {
	document.myForm.action="http://www.signs4free.com/send2friend/send2friend.php?url=" + location.href;
		if (validate_S2F_required(sender,"Sender Email must be filled out!")==false) {
			document.getElementById('sender').style.backgroundColor="FAF8CC";
			sender.focus();
			return false
		}
		if (validate_S2F_required(friend,"Friend Email must be filled out!")==false) {
			document.getElementById('friend').style.backgroundColor="FAF8CC";
			friend.focus();
			return false
		}
	}
}