thanks Jari all seem to work perfectly just my replication isnt working with the "dialog", i didnt see if the dialog class name really matter right. iam still digging will let you know...thanks again.
iam trying various forms of url but they open another windows instead on replacing the parent page...thanks to much.
apex.navigation.redirect("f?p=&APP_ID.:2:&APP_SESSION."); also tried, apex.navigation.redirect("f?p=&APP_ID.:2:&APP_SESSION.:NO:::");