here is the solution
hi nothing2lose
[code:1u3fwixt]
<HTML>
<script language=javascript>
function func1()
{
if(document.form1.text1.value==1)
return true;
else
return false;
}
function func2()
{
if(document.form1.text2.value==1)
return true;
else
return false;
}
function func3()
{
var x
var y
x=func1()
y=func2()
if(x==true && y==true)
alert("true")
else
alert("false")
}
</script>
<form name="form1">
<input type=text name=text1>
<input type=text name=text2>
<input type="button" value="Click here" onClick="func3()">
what happens in this probram is only if both values in text box is 1
"true" meaasage will be displayed else "false" will be displayed
</form>
</HTML>
[/code:1u3fwixt]
this is what exactly you want