﻿// JScript File
//open windows where the features can be added where needed
function WindowOpen(url, Features) {
    window.open(url, '', Features);
}
// used for the currency converter
function OpenPage() {
	 msgWindow=window.open("","popup","scrollbars=no,toolbar=no,WIDTH=600,HEIGHT=150");
}

//used by the home page to expand menu items
function toggleMenu(whichCat) {
	if (document.getElementById) {
		// this is the way the standards work
		var style2 = document.getElementById(whichCat).style;
		
		style2.display = (style2.display == 'none') ? 'block' : 'none';
		
	} else if (document.all) {
		// this is the way old msie versions work
		var style2 = document.all[whichCat].style;
		
		style2.display = (style2.display == 'none') ? 'block' : 'none';
		
	} else if (document.layers) {
		// this is the way nn4 works
		var style2 = document.layers[whichCat].style;
		
		style2.display = (style2.display == 'none') ? 'block' : 'none';
		
	}
}
