function sxu_isvalid(field,alerttxt){
	with (field) {
		if (value==null||value==""){
			alert(alerttxt);return false;
		} else {
			return true;
		}
	}
}


/* onsubmit='return sxuv_remsitepass(this)' */
function sxuv_remsitepass(thisform) {
	with (thisform) {
		if (sxu_isvalid(pword,"Password must be filled out!")==false) { pword.focus(); return false; }
	}
}


/* onsubmit='return sxuv_siteset(this)' */
function sxuv_siteset(thisform) {
	with (thisform) {
		if (sxu_isvalid(sitename,"The name of your site must be filled out!")==false) { sitename.focus(); return false; }
		if (sxu_isvalid(sitefoot,"The site footer must be filled out!")==false) { sitefoot.focus(); return false; }
		if (sxu_isvalid(sitedesc,"The site description must be filled out!")==false) { sitedesc.focus(); return false; }
		if (sxu_isvalid(sitekeyw,"The site keywords must be filled out!")==false) { sitekeyw.focus(); return false; }
	}
}


/* onsubmit='return sxuv_news(this)' */
function sxuv_news(thisform) {
	with (thisform) {
		if (sxu_isvalid(ntitle,"The title of your news must be filled out!")==false) { ntitle.focus(); return false; }
		if (sxu_isvalid(nbody,"The news body must be filled out!")==false) { nbody.focus(); return false; }
		if (sxu_isvalid(nauth,"The author of the news must be filled out!")==false) { nauth.focus(); return false; }
	}
}


/* onsubmit='return sxuv_events(this)' */
function sxuv_events(thisform) {
	with (thisform) {
		if (sxu_isvalid(etitle,"The title of your event must be filled out!")==false) { etitle.focus(); return false; }
		if (sxu_isvalid(ebody,"The event details must be filled out!")==false) { ebody.focus(); return false; }
	}
}


/* onsubmit='return sxuv_gals(this)' */
function sxuv_gals(thisform) {
	with (thisform) {
		if (sxu_isvalid(gtitle,"The title of your gallery must be filled out!")==false) { gtitle.focus(); return false; }
		if (sxu_isvalid(gdesc,"The description of your gallery must be filled out!")==false) { gdesc.focus(); return false; }
	}
}


/* onsubmit='return sxuv_alts(this)' */
function sxuv_alts(thisform) {
	with (thisform) {
		if (sxu_isvalid(alt,"The descriptions of your images must be filled out!")==false) { alt.focus(); return false; }
	}
}


/* onsubmit='return validate_searchform(this)' */
function validate_searchform(thisform)
{
	with (thisform)
	{
		if (sxu_isvalid(search,"Please enter what you wish to search for.")==false) {search.focus();return false;}
	}
}



function clearSearch(theText) 
{
	if (theText.value == theText.defaultValue)
	{
		theText.value = ""
	}
}

