    var fwURL = "";
    function ModalPopupsCustom1() {  
        ModalPopups.Custom("fwModal",  
          "Thank you for requesting our whitepaper. In order to read this free article, please submit your name and email address:",
            "<div style='padding: 5px;'>" +   
            "<table>" +   
            "<tr><td>Name:</td><td><input type=text id='fwName' name='fwName' style='width:350px;'></td></tr>" +   
            "<tr><td>E-Mail:</td><td><input type=text id='fwEmail' name='fwEmail' style='width:350px;'></td></tr>" +   
            "</table>" +   
            "</div>",   
            {  
                width: 500,  
                buttons: "ok,cancel",  
                okButtonText: "Submit",  
                cancelButtonText: "Cancel",  
                onOk: "ModalPopupsCustom1Save()",  
                onCancel: "ModalPopupsCustom1Cancel()"  
            }  
        );  
                  
        ModalPopups.GetCustomControl("fwName").focus();   
    }  
    function ModalPopupsCustom1Save() {  
        var cust_name = ModalPopups.GetCustomControl("fwName");   
        var cust_email = ModalPopups.GetCustomControl("fwEmail");   
        if(cust_name.value == "") {  
            alert("Please enter a name.");  
            cust_name.focus();  
	    return;
        }
        if(cust_email.value == "") {  
            alert("Please enter an email address.");  
            cust_email.focus();  
	    return;
        }
  	$.ajax({
		type: "POST",
		url: "/staticpages/fwn/" + cust_name.value + "/" + cust_email.value,
		success: function(msg) {window.location.href=fwURL;}
	});
        ModalPopups.Close("fwModal");  
    }  
      
    function ModalPopupsCustom1Cancel() {  
        ModalPopups.Cancel("fwModal");  
    }

