This can be done. You have to invoke a javascript when the condition is passed. Later you have to change the location of the right frame page when the condition is passed. You can call the right frame with the name that you have given in the main frame.
eg: window.object..location.url="";
Regards
Rajesh