

$(".close").click(
	function () {
		$(this).parent().fadeTo(400, 0, function () { // Links with the class "close" will close parent
			$(this).slideUp(600);
		});
		return false;
	}
);


function syncGive(y,z) {
	var formObject = document.getElementById(y);
	var formObject2 = document.getElementById(z);
	document.getElementById(z).value = formObject.value;
	
}
function replaceTxt(y,z) {
	var newtext = "";
	var formObject = document.getElementById(y)
	
	if (formObject.value == newtext) {
		formObject.value = z ;
		}
}
function clearTxt(y,z) {
	var newtext = z;
	
	var formObject = document.getElementById(y)
	
	if (formObject.value == newtext) {
		formObject.value = '';
		}
}
String.prototype.trim = function() {
a = this.replace(/^\s+/, '');
return a.replace(/\s+$/, '');
};     

