Login  Register

Need help with a pop up form

Posted by tammerboo on Sep 25, 2011; 6:29pm
URL: https://support.nabble.com/Need-help-with-a-pop-up-form-tp6829710.html

        <script type="text/javascript">
             
            function calc_price()
            {
                var price = document.getElementById('price');
                var cust = document.getElementById('cust');
                var seo44 = document.getElementById('seo44');
                var month = document.getElementById('month');
                
                var custVal = (cust.checked == true) ? parseInt(cust.value) : 0;
                var seo44Val = (seo44.checked == true) ? parseInt(seo44.value) : 0;
				
				var multiply  = (seo44.checked == true) ? parseInt(month.value) : 1;
                
                var total = (parseInt(price.value)+custVal+(multiply*seo44Val));
                
                var shadowBoxlink = '<div id="contactus"><a href="http://www.mysite.com/form/html/htmlform.html" onClick="shad(); return false;"><center>Contact Us</center></a></div>';
                
                document.getElementById('total').innerHTML = '$ '+total+shadowBoxlink;
                return false;
            }
                
            Shadowbox.init({
                
            });

            function shad() {

                Shadowbox.open({
                    content:    '',
                    player:     "html, iframe",
                    title:      "Contact Us",
                    height:     620,
                    width:      450
                });

            };
        </script>

Everything works until I click on "Contact Us and the form does not appear. Any suggestions is appreciated.