function mailerSwitch(file,name) {
	document.getElementById('mailerImage').src = 'images/specials/'+file;
	document.getElementById('specialName').innerHTML = name;
}


menu_status = new Array();

function showHide(theid){
    if (document.getElementById) {
    var switch_id = document.getElementById(theid);

        if(menu_status[theid] != 'show') {
           switch_id.className = 'show';
           menu_status[theid] = 'show';
        } else {
           switch_id.className = 'hide';
           menu_status[theid] = 'hide';
        }
    }
}

/*
menus_array = document.getElementsByClassName('hide');

function hideMenusExcept(menuid) {
	for(var i = 0; i < menus_array.length; i++) {
		var menu = document.getElementById(menus_array[i]);
		if(menuid != menus_array[i]) {
			menu.className = 'hide';
		} else {
			menu.className = 'show';
		}
	}
}
*/

function testInput() {
	var Email =  new String(document.inputForm.Email.value); 
	var Correct = true; 
	CharCount=1; 
	strLength=Email.length; 
	while ((CharCount < strLength) && (Email.charAt(CharCount) != '@')) { 
		CharCount++ 
	} 
	if ((CharCount>= strLength) || (Email.charAt(CharCount) != '@')) { 
		Correct = false; 
	} else { 
		CharCount += 2; 
	} 
	while ((CharCount < strLength) && (Email.charAt(CharCount) != '.')) { 
		CharCount++ 
	} 
	if ((CharCount>= strLength - 1) || (Email.charAt(CharCount) != '.')) { 
		Correct = false; 
	} 
	if (Correct == false) {
		alert ('Email address not valid.') 
	}
	return Correct 
} 
