﻿// JScript File
menu1 = new Image();
menu2 = new Image();
menu3 = new Image();
menu4 = new Image();
menu5 = new Image();
menu1_on = new Image();
menu2_on = new Image();
menu3_on = new Image();
menu4_on = new Image();
menu5_on = new Image();

menu1.src="images/menu_home.gif";
menu2.src="images/menu_about.gif";
menu3.src="images/menu_testimonials.gif";
menu4.src="images/menu_blog.gif";
menu5.src="images/menu_contact.gif";
menu1_on.src="images/menu_home_on.gif";
menu2_on.src="images/menu_about_on.gif";
menu3_on.src="images/menu_testimonials_on.gif";
menu4_on.src="images/menu_blog_on.gif";
menu5_on.src="images/menu_contact_on.gif";

function rollover(image){
    document.images[image].src = 'images/' + image + '_on' + '.gif';
}

function rollout(image){
    document.images[image].src = 'images/' + image + '.gif';
}

function validateform(fm)
{
    var oFv=new FormValidator(fm);
    oFv.addFormField("txtEmail", "Email", true, "email");
    //oFv.addFormField("lstGender", "You are", true, "select");
	//oFv.addFormField("lstAge", "Aged", true, "select");
    //oFv.addFormField("lstState", "Living in", true, "select");
	return(oFv.validate());

}

function validatecomment(fm)
{
    var oFv=new FormValidator(fm);
    oFv.addFormField("txtComments", "Comments", true);
    return(oFv.validate());

}