window.name = "binformed";
browser = navigator.appName;
version = parseInt(navigator.appversion)
os = navigator.platform;
ie = "Microsoft Internet Explorer";
netscape = "Netscape";
mac = "MacPPC";
	
// NS4Bug Fix 					
NS4 = document.layers;
if (NS4) {
	origWidth = innerWidth;
	origHeight = innerHeight;
}
		
	function reDo() {
	if (innerWidth != origWidth || innerHeight != origHeight)
		location.reload();
	}

	if (NS4) onresize = reDo;		


	function openWindow(pPageName,windowName,AvailResize,pWidth,pHeight,pTop,pLeft) {
				window.open(pPageName, windowName,'resizable='+AvailResize+',width='+pWidth+',height='+pHeight+',top='+pTop+',left='+pLeft+',toolbar=no,location=no,scrollbars=yes');
	}

	function openWindowNoScroll(pPageName,windowName,AvailResize,pWidth,pHeight,pTop,pLeft) {
				window.open(pPageName, windowName,'resizable='+AvailResize+',width='+pWidth+',height='+pHeight+',top='+pTop+',left='+pLeft+',toolbar=no,location=no,scrollbars=no');
	}			
//This function can be called by a drop down to autmatically jump to a new URL
//when a new selection is made.
function gotosite(site) {            
        if (site != "") {                    
                self.location=site; 
        }
 }		

// 1 IMAGE SWAP 
function imgSwap(daImage, daSrc){
	    daImage.src = daSrc;
	}


// 2 IMAGE SWAP 
function img2Swap(nav1, navSrc1, nav2, navSrc2){
	    nav1.src = navSrc1;
		nav2.src = navSrc2;
	}

// VALIDATE EMAIL

	function checkSpaces(object_value){
		var white_space = " ";
		var nonwhitestring = "";
		for (var i = 0; i < object_value.length; i++)
		{
			check_char = white_space.indexOf(object_value.charAt(i))
			if (check_char < 0){
				nonwhitestring += object_value.substring(i, (i + 1));
			}	
		}	
		if (nonwhitestring.length == 0){
	    return false; //if there's something other than a space
		}
		else {return true;}
	}
		
	function checkemail() {
		var retmsg="";
		if (document.emailform1.email.value == ""||!checkSpaces(document.emailform1.email.value)){
			retmsg ="Please enter an email address!";
		}	
		else {
			var eStr = document.emailform1.email.value;
			if ((eStr.indexOf("@") ==-1)||(eStr.indexOf(".") ==-1)) {
			retmsg ="Please enter a valid e-mail address!";
			}
		}	
		
		if (retmsg ==""){
			
			document.emailform1.submit();
		}
		else {
			alert (retmsg);
		}
	}	





	
	