hey VBGuy
I came up with this real quick but have to leave for a bit. possibly someone can get it working a bit more efficiently and more so dynamic as is. it should get you started though
<html>
<head>
<script>
function compOper(operator) {
var frm = document.forms[0];
var str1 = frm.elements[0].value;
var str2 = frm.elements[1].value;
//alert(eval("str1+operator+str2"

);
var expr = eval("str1+operator+str2"

if(eval(expr)) {
alert("it work, they are equal"

;
} else {
alert("they are not equal"

;
}
}
</script>
</head>
<body>
<form>
<input type="text" name="str1"><br>
<input type="text" name="str2"><br>
<input type="text" name="operator"><br>
<input type="button" value="text comparison function" onClick="compOper(document.forms[0].operator.value)">
</form>
</body>
</html>
I think it's pretty straight forward and eplains itself but if you need more explanation on what's going on in there let us know. _________________________________________________________
for the best results to your questions: FAQ333-2924
Is your question a most FAQ?? Find out here FAQ333-3048