
// <!-- 

{
// main navigation
button1 = new Image;
button1.src = "images/nav/home.gif";

button2 = new Image;
button2.src = "images/nav/aboutus.gif";

button3 = new Image;
button3.src = "images/nav/solutions.gif";

button4 = new Image;
button4.src = "images/nav/downloads.gif";

button5 = new Image;
button5.src = "images/nav/forum.gif";

button6 = new Image;
button6.src = "images/nav/news.gif";

button7 = new Image;
button7.src = "images/nav/contactus.gif";

button8 = new Image;
button8.src = "images/nav/cart.gif";
// end of main navigation

// main navigation rollover
button1on = new Image;
button1on.src = "images/nav/home_roll.gif";

button2on = new Image;
button2on.src = "images/nav/aboutus_roll.gif";

button3on = new Image;
button3on.src = "images/nav/solutions_roll.gif";

button4on = new Image;
button4on.src = "images/nav/downloads_roll.gif";

button5on = new Image;
button5on.src = "images/nav/forum_roll.gif";

button6on = new Image;
button6on.src = "images/nav/news_roll.gif";

button7on = new Image;
button7on.src = "images/nav/contactus_roll.gif";

button8on = new Image;
button8on.src = "images/nav/cart_roll.gif";
// end of main navigation rollover


// this is left navigation 
button10 = new Image;
button10.src = "images/left/nav/xp_standard.gif";

button11 = new Image;
button11.src = "images/left/nav/xp_prof.gif";

button12 = new Image;
button12.src = "images/left/nav/xp_enterprise.gif";

button13 = new Image;
button13.src = "images/left/nav/xp_subscription.gif";

button14 = new Image;
button14.src = "images/left/nav/aaia_catalog.gif";

button15 = new Image;
button15.src = "images/left/nav/acc_payable.gif";

button16 = new Image;
button16.src = "images/left/nav/acc_receivable.gif";

button17 = new Image;
button17.src = "images/left/nav/gen_ledger.gif";

button18 = new Image;
button18.src = "images/left/nav/inven_control.gif";

button19 = new Image;
button19.src = "images/left/nav/pur_orders.gif";

button20 = new Image;
button20.src = "images/left/nav/sales_orders.gif";

button21 = new Image;
button21.src = "images/left/nav/sales_quotes.gif";

button22 = new Image;
button22.src = "images/left/nav/ser_orders.gif";

button23 = new Image;
button23.src = "images/left/nav/xp_modules.gif";

button24 = new Image;
button24.src = "images/left/nav/xp_autoplus.gif";

button25 = new Image;
button25.src = "images/left/nav/free_demo.gif";

button26 = new Image;
button26.src = "images/left/nav/affiliate.gif";
// end of left navigation

// this is left navigation rollover
button10on = new Image;
button10on.src = "images/left/nav/xp_standard_roll.gif";

button11on = new Image;
button11on.src = "images/left/nav/xp_prof_roll.gif";

button12on = new Image;
button12on.src = "images/left/nav/xp_enterprise_roll.gif";

button13on = new Image;
button13on.src = "images/left/nav/xp_subscription_roll.gif";

button14on = new Image;
button14on.src = "images/left/nav/aaia_catalog_roll.gif";

button15on = new Image;
button15on.src = "images/left/nav/acc_payable_roll.gif";

button16on = new Image;
button16on.src = "images/left/nav/acc_receivable_roll.gif";

button17on = new Image;
button17on.src = "images/left/nav/gen_ledger_roll.gif";

button18on = new Image;
button18on.src = "images/left/nav/inven_control_roll.gif";

button19on = new Image;
button19on.src = "images/left/nav/pur_orders_roll.gif";

button20on = new Image;
button20on.src = "images/left/nav/sales_orders_roll.gif";

button21on = new Image;
button21on.src = "images/left/nav/sales_quotes_roll.gif";

button22on = new Image;
button22on.src = "images/left/nav/ser_orders_roll.gif";

button23on = new Image;
button23on.src = "images/left/nav/xp_modules_roll.gif";

button24on = new Image;
button24on.src = "images/left/nav/xp_autoplus_roll.gif";

button25on = new Image;
button25on.src = "images/left/nav/free_demo_roll.gif";

button26on = new Image;
button26on.src = "images/left/nav/affiliate_roll.gif";
// end of left navigation rollover


// misc
button30 = new Image;
button30.src = "images/right/but_learnmore.gif";

button30on = new Image;
button30on.src = "images/right/but_learnmore_roll.gif";

button31 = new Image;
button31.src = "images/txt_top.gif";

button31on = new Image;
button31on.src = "images/txt_top_roll.gif";

button32 = new Image;
button32.src = "images/txt_click.gif";

button32on = new Image;
button32on.src = "images/txt_click_roll.gif";

button33 = new Image;
button33.src = "images/left/arrow_readmore.gif";

button33on = new Image;
button33on.src = "images/left/arrow_readmore_roll.gif";

button34 = new Image;
button34.src = "images/left/arrow_joinforum.gif";

button34on = new Image;
button34on.src = "images/left/arrow_joinforum_roll.gif";

button35 = new Image;
button35.src = "images/right/but_demo.gif";

button35on = new Image;
button35on.src = "images/right/but_demo_roll.gif";

button37 = new Image;
button37.src = "images/left/arrow_learnmore.gif";

button37on = new Image;
button37on.src = "images/left/arrow_learnmore_roll.gif";

button38 = new Image;
button38.src = "images/txt_view_video.gif";

button38on = new Image;
button38on.src = "images/txt_view_video_roll.gif";

button39 = new Image;
button39.src = "images/right/but_download_xp.gif";

button39on = new Image;
button39on.src = "images/right/but_download_xp_roll.gif";

button40 = new Image;
button40.src = "images/but_support.gif";

button40on = new Image;
button40on.src = "images/but_support_roll.gif";
// end of misc


}
function imageChange(imageID,imageName,imageID2,imageName2) { 

{
document.images[imageID].src = eval(imageName + ".src");
}

}


// popup new window
function openit(sURL,w,h,name){
var sNewURL;
sNewURL = sURL + "?id=" + Math.random();
newwindow=open(sNewURL,name,"scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=no,status=yes,left=0,top=0,width=" + w + ",height=" + h);
newwindow.focus();
}


// check email address
function isEmpty(str) {
	return (str.replace(/^[\s]+/g, "") == "");
	}
		
    function validate() {
        var error_msg = '';
        
        if (isEmpty(document.data.Email.value)) {
            error_msg = error_msg + '- Please enter an Email Address. Email Addresses must have the format: email@domain.com.\n';
        } else if (document.data.Email.value.search(/^[\w-_,;:\.']+@[\w-_,;:\.']+\.[a-z]{2,3}$/) == -1) {
            error_msg = error_msg + '- Please enter a valid Email Address. Email Addresses must have the format: email@domain.com.\n';
        }

        if (error_msg != '') { 
            alert("The following fields have errors:\n" + error_msg);
            return false; 
        }

      }

// -->
