function trim(stringToTrim) {
	return stringToTrim.replace(/^\s+|\s+$/g,"");
}



function validateml(theForm) {
if (trim(theForm.name.value) == "") {
	alert("נא למלא שם");
	theForm.name.focus();
	return (false);
	}
if (trim(theForm.email.value) == "") {
	alert("נא למלא כתובת אימייל");
	theForm.email.focus();
	return (false);
	}
if (theForm.email.value.indexOf("@")<1 || theForm.email.value.indexOf(".")<1) {
	alert("נא למלא כתובת אימייל תקינה");
	theForm.email.focus();
	return (false);
	}
return (true);
}






function validate(theForm) {
if (trim(theForm.name.value) == "") {
	alert("נא למלא שם");
	theForm.name.focus();
	return (false);
	}
if (trim(theForm.email.value) == "") {
	alert("נא למלא כתובת אימייל");
	theForm.email.focus();
	return (false);
	}
if (theForm.email.value.indexOf("@")<1 || theForm.email.value.indexOf(".")<1) {
	alert("נא למלא כתובת אימייל תקינה");
	theForm.email.focus();
	return (false);
	}
if (trim(theForm.ttl.value) == "") {
	alert("נא למלא נושא");
	theForm.ttl.focus();
	return (false);
	}
if (trim(theForm.comments.value) == "") {
	alert("נא למלא הודעתך");
	theForm.comments.focus();
	return (false);
	}
return (true);
}







function showHideDiv(which) {
theDiv = eval("document.getElementById('" + which + "').style")
if (theDiv.display=="none") theDiv.display="block"
else theDiv.display="none"
}


function showHideSongDet(which,but) {
theDiv = eval("document.getElementById('" + which + "').style")
theBut = eval("document." + but)
if (theDiv.display=="none") {
	theDiv.display="block";
	theBut.src='images/minus.gif';
	}
else {
	theDiv.display="none";
	theBut.src='images/plus.gif';
	}
}
