function Calculate() {
	if(notNull(document.frmNothing.txtValue.value)) {
		if(isDigits(document.frmNothing.txtValue.value)) {
			// document.frmNothing.submit();
			doit();
		}else{
			alert("You must specify a valid numeric value to proceed.");
		}
	}else{
		alert("You must specify a numeric value to convert.");
	}
}

function doit() {
	var x = document.frmNothing.txtValue.value ;
	var z = 0;
	var first = document.frmNothing.selFrom.options[document.frmNothing.selFrom.selectedIndex].value;
	var second = document.frmNothing.selTo.options[document.frmNothing.selTo.selectedIndex].value;
	eval("z = x * " + first + "2" + second);
	document.frmNothing.txtAnswer.value = z;
}
function PopFract() {
	window.open("fractions.asp", "FRACT", "scrollbars=yes,left=100,top=100,width=440,height=480,resizable=yes,toolbar=yes",2); 
}
function open_window(url)
{
	calcWin = window.open(url,"","toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=371,height=250,left=50,top=50");
}
