
function validateFrm()
{
	
	if(document.form.viewbycountry.value == "United States" && document.form.state.value == "")
	{
		var themessage = "Please choose a state.";
		alert(themessage);
		return false;
	}

	else
	{
		return true;
	}

}

function pop(URLin)
{
window.open(URLin,'products','width=750,height=500,resize=1,resizable=1,scrollbars=1,screenX=50,left=50,screenY=50,top=50');
	return false;
}

browser_name = navigator.appName;
browser_version = parseFloat(navigator.appVersion); 

if (browser_name == "Netscape" && browser_version >= 3.0) {
	roll = 'true';
	}

else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 4.0) {
	roll = 'true';
	}

else {
	roll = 'false';
    }

arImageSrc = new Array (
	"images/hp-nav-products-roll.gif",
	"images/hp-nav-applications-roll.gif",
	"images/hp-nav-resources-roll.gif",
	"images/hp-nav-news-roll.gif",
	"images/hp-nav-about-roll.gif",
	"images/hp-nav-contact-roll.gif",
	"images/hp-nav-zone-roll.gif",
	"images/nav-products-roll.gif",
	"images/nav-applications-roll.gif",
	"images/nav-resources-roll.gif",
	"images/nav-news-roll.gif",
	"images/nav-about-roll.gif",
	"images/nav-contact-roll.gif",
	"images/nav-home-roll.gif",
	"images/search-tree-roll.gif",
	"images/hp-salescontact-roll.gif",
	"images/salescontact-roll.gif")

arImageList = new Array ();
	for (counter in arImageSrc) {
		arImageList[counter] = new Image();
		arImageList[counter].src = arImageSrc[counter];
	}

function msover(img1,ref1) {
	if (roll == 'true') {
		document.images[img1].src = ref1;
		}
	}
        
function msout(img1,ref1) {
	if (roll == 'true') {
		document.images[img1].src = ref1;
		}
	}

function showHide(viewbycountry){
	if (document.form.viewbycountry.value == "United States") {
		tr1.style.display = "block";
		tr2.style.display = "block";
		}
	else {
		tr1.style.display = "none";
		tr2.style.display = "none";
		}
	};
