bname = navigator.appName;
bversion = parseFloat(navigator.appVersion);

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(Input_Form.name, "Please enter your name.")) {return(false);}
		if (!VF(Input_Form.email, "Please enter your email address.")) {return(false);}
		//if (!VF(Input_Form.Message, "Please enter your comments.")) {return(false);}
}

function mergeBoxes() {
		//alert("test");
		var theSearch;
		var theWidth;
		var theLength;
		var theWidthIndex;
		var theLengthIndex;
		var theMM;
		var theForm;
		var theType;
		
		theType = document.getElementById("type").value;
		theForm = document.getElementById("specSearch");
		//alert(theForm);
		theMM = document.getElementById("mm").value;
		switch ( theMM ) {
				case '2':
					theMM = '2.0'; break;
				case '3':
					theMM = '3.0'; break;
				case '4':
					theMM = '4.0'; break;
		}
		
		/*theWidth = document.getElementById("searchWidth").selectedIndex + 1;
		theWidth = document.getElementById("searchWidth").selectedIndex.value;*/
		theWidthIndex = document.getElementById("searchWidth").selectedIndex;
		theWidth = document.getElementById("searchWidth").options[theWidthIndex].value;
		
		//alert("test 2");
		/*theLength = document.getElementById("searchLength").selectedIndex + 2;
		theLength = document.getElementById("searchLength").selectedIndex.value;*/
		theLengthIndex = document.getElementById("searchLength").selectedIndex;
		theLength = document.getElementById("searchLength").options[theLengthIndex].value;
		//alert("test 3");
		theSearch = theWidth + " x " + theLength + " " + theType + " " + theMM + " mil";
		
		theForm.Search.value = theSearch;
		//alert("Searching for" + theForm.Search.value );
		return true;
	
	}