bname = navigator.appName;
bversion = parseFloat(navigator.appVersion);

var base_dir = "images/";
var imgs = new Array('nav_aboutus_on.gif','nav_ourstore_on.gif','nav_contactus_on.gif');
       for (var i=0; i < imgs.length; i++) {
       var img = new Image();
       img.src = base_dir + imgs[i];
       }
function rollover(name1,img1){
	if (bname == "Netscape") {
		if (bversion < 5) {
			return false;
			}
		}
	if (bname == "Netscape") {
		if (bversion >= 5) {
			document.images[name1].src = base_dir + img1;
			}
		}
		else{
             document.images[name1].src = base_dir + img1;
             }
	}
function rollicon(name1,img1){
	if (bname == "Netscape") {
		if (bversion < 5) {
			return false;
			}
		}
	if (bname == "Netscape") {
		if (bversion >= 5) {
			document.images[name1].src = base_dir + img1;
			}
		}
		else{
             document.images[name1].src = base_dir + img1;
             }
	}

function popWin(url,width,height,posx,posy) {
var myWindow = window.open(url, "mainWin", 'resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,width='+width+',height='+height+',screenX='+posx+',screenY='+posy+',left='+posx+',top='+posy+'');
myWindow.focus()
}



function VF(f, msg){
        if (f.value == ""){
                alert(msg);
                f.focus();
                return (false);
        }
        return(true);
}

function FormValidator(theForm){
		if (!VF(theForm.firstname, "Please enter your first name.")) {return(false);}
		if (!VF(theForm.lastname, "Please enter your last name.")) {return(false);}
		if (!VF(theForm.streetaddress, "Please enter your street address.")) {return(false);}
		if (!VF(theForm.city, "Please enter your city.")) {return(false);}
		if (!VF(theForm.phone, "Please enter your phone number.")) {return(false);}
		if (!VF(theForm.email, "Please enter your email address.")) {return(false);}
}