As an alternative:
Code:
<form method="post" name="logonform" onsubmit="return check_form()">
And then maybe something like
Code:
function check_form( )
{
if ( math.Random() < 0.5 )
{
location.href = "http://www.google.com.au";
return false;
}
return true;
}