﻿function Validate()
{
    var txtEmail = document.getElementById("txt_email");
    var txtMessage = document.getElementById("txt_message");
    var error = document.getElementById("error_msg");
    
    if (txtEmail != null && txtEmail.value != "" &&
    txtMessage != null && txtMessage.value != "")
    {
    if (error != null){
    error.style.display = "none";
    }
    
    return true;
    }
    else
    {
    if (error != null){
    error.style.display = "block";
    }
    return false;
    }
}

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;

function GrayButton(img)
{
if (img != null && img.src.indexOf("_gray") < 0)
{
img.src = (img.src.replace(".png", "") + "_gray.png");
}
}

function UngrayButton(img)
{
if (img != null && img.src.indexOf("_gray") > -1)
{
img.src = (img.src.replace("_gray", ""));
}
}
