function menu1() {
    $(function() {
      $(this).toggleClass("menuItemHover");
    });
}

function menu2() {
    $(function() {
      $(this).toggleClass("menuItem");
    });
}


function clicked(contentFile, parameter) {
    var theUrl= contentFile + '?' + parameter;
    $('#MainFrame').text("Loading . . .");
    $(function() {
        $('#MainFrame').load(theUrl, function() {
            $('#MainFrame').show();
        });
    });
}


function deleteUser(usr) {
var ux = usr;
if (confirm("Are you sure you wish to delete this customer?  This will be permanent.")) {location.href='customerProcessor.php?ax=4&id='+ux}
}

function deleteIt(pr) {
var ix = pr;
if (confirm("Are you sure you wish to delete this product?  This will be permanent.")) {location.href='admin_productProcessor.php?ax=99&ix='+ix}
}

function deleteImage(ix) {
	var img = ix;
	if(confirm('Are you sure you want to remove this image? It is permanent. You will need to upload again.')) {location.href='admin_productImageProcessor.php?ax=4&ix=' + ix;}
}

function logOut() {
if (confirm("Are you sure you want to log out?")) {location.href='logoutHandler.php'}
}

function formValid() {
    var cf = document.contactForm;
    var nogo = 0;
    if (cf.name.value == '') {nogo = 1;}
    if (cf.emailAddress.value == '') {nogo = 1;}
    if (cf.month.value == '') {nogo = 1;}
    if (cf.day.value == '') {nogo = 1;}
    
    if (nogo == 1) {alert("Name, Email, and your birthday are required fields. Please check your entries."); return false;} else {return true;}
}


