/*
This function checking input field on form submit - if the field is empty, it's being filled with default value before submitting,
also its clears input field from value, when clicked by mouse

Usage Example :

<form action="search.php" target="_self" name="searchForm" id="searchForm" onSubmit="return checkForm(this); return false;">
<input type="text" name="search" id="search" value="#search#" onFocus="clearText(this)" />&nbsp;

*/
function checkForm(f)
{
if (f.elements['search'].value == "")
{
document.getElementById('search').value="doctor femdom";
document.getElementById('search2').value="doctor femdom";
f.submit();
 return false;
 }
 else
{
f.submit();
return false;
}
}
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}
