Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Help with a validation function?


daveVk - 1:03 am on Mar 16, 2008 (gmt 0)


function checkpass(Pass1,Pass2,alerttxt)
{
if (Pass1.value != Pass2.value)
{alert(alerttxt);return false}
else {return true}
}

Perhaps ?

In any case do away with the "with" statement


Thread source:: http://www.webmasterworld.com/javascript/3601646.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com