I doubt that you need a separate function for each of those cases, but if it gets the job done... All you have to do to make it pop up a window when they click the submit button is to attach your function to either the form's onsubmit or the button's onclick event.
On the form: <form onsubmit="popup3('http://www.megavideo.com/','megavideo',1100,786); window.focus(); SetCookie('pop11','1','3');"> Code (markup): On the button: <input type="submit" onclick="popup3('http://www.megavideo.com/','megavideo',1100,786); window.focus(); SetCookie('pop11','1','3');"> Code (markup): Actually, you should probably just put the focus() method and SetCookie function in your custom functions instead of calling them directly. It's just cleaner and to be honest I'm not sure window.focus() works the way you want it to when used like that.
I don't think it works. How do I make it so that when I click submit it'll just create a popup? Thanks..
You can break it down to the bare bones if you want. I didn't bother testing the other ones, so you may be right, but I tested both of these and they work just fine. <form onsubmit="window.open('http://www.megavideo.com/','megavideo','width=1100,height=786,scrollbars=yes,status=yes,resizable=yes, toolbar=yes,location=yes,menubar=yes,left=0,top=0'); SetCookie('pop11','1','3');"> Code (markup): <input type="submit" onclick="window.open('http://www.megavideo.com/','megavideo','width=1100,height=786,scrollbars=yes,status=yes,resizable=yes, toolbar=yes,location=yes,menubar=yes,left=0,top=0'); SetCookie('pop11','1','3');"> Code (markup):