function validate_search_form() {
    valid = true;
    if (document.search_form.search.value == "") {
        alert ("Please enter a search term.");
        valid = false;
    }
    return valid;
}

function validate_changeusrnum_form() {
    valid = true;
    if (document.usrnum_form.newnum.value == "") {
        alert ("Please enter number.");
        valid = false;
    }
    return valid;
}

function validate_uplfanimg_form() {
    valid = true;
    if (document.uplfanimg_form.my_field.value == "") {
        alert ("Click browse and select image!");
        valid = false;
    } else if (document.uplfanimg_form.picTitle.value == "") {
        alert ("Enter name for your image!");
        valid = false;
    } else if (document.uplfanimg_form.picTags.value == "") {
        alert ("Enter tags for your image!");
        valid = false;
    }
    return valid;
}

function validate_addtestimonial_form() {
    valid = true;
	if (document.addtestimonial_form.fullname.value == "") {
        alert ("Enter your full name!");
        valid = false;
    } else if (document.addtestimonial_form.testimonial.value == "") {
        alert ("Enter your opinion about Image Gallery Pro!");
        valid = false;
	}
    return valid;
}

function validate_suggestfeature_form() {
    valid = true;
    if (document.suggestfeature_form.suggestion.value == "") {
        alert ("You must enter some text!");
        valid = false;
	}
    return valid;
}