<!-- Hide script from older browsers

        var pfp_defaults = {
            txtFName: "First Name",
            txtLName: "Last Name",
            txtAdd1:  "Address",
            txtAdd2:  "",
            txtCity:  "City",
            ddlState: "State",
            txtZip:   "Zip Code",
            txtEmail: "Email"
        };

        function CheckPortfolioPopup(f) {
            if (!f) {
                return false;
            }

            var errors = [];
            if ( !/\S/.exec(f.txtFName.value.replace(pfp_defaults["txtFName"],"")) ) {
                errors.push("First Name");
            }
            if ( !/\S/.exec(f.txtLName.value.replace(pfp_defaults["txtLName"],"")) ) {
                errors.push("Last Name");
            }
            if ( !( /\S/.exec(f.txtAdd1.value.replace(pfp_defaults["txtAdd1"],"")) ||
                    /\S/.exec(f.txtAdd2.value.replace(pfp_defaults["txtAdd2"],"")) )) {
                errors.push("Address");
            }
            if ( !/\S/.exec(f.txtCity.value.replace(pfp_defaults["txtCity"],"")) ) {
                errors.push("City");
            }
            if ( !/\S/.exec(f.txtZip.value.replace(pfp_defaults["txtZip"],"")) ) {
                errors.push("Zip Code");
            }
            if ( !/\S/.exec(f.ddlState.options[f.ddlState.selectedIndex].value.replace(pfp_defaults["ddlState"],"")) ) {
                errors.push("State");
            }
            if ( !/\S/.exec(f.txtEmail.value.replace(pfp_defaults["txtEmail"],"")) ||
                 !/.+@[^\.]+\.[^\.]+/.exec(f.txtEmail.value.replace(pfp_defaults["txtEmail"],""))
            ) {
                errors.push("Email (needed in case of problems--we'll never sell or rent it)");
            }

            if (errors.length == 0) {
                return true;
            }

            var errstr = errors.join("\n");
            alert("Please check these fields and try again:\n" + errstr);
            return false;
        }

		function PortfolioPopup(myForm,newWindow) {
            newWindow = typeof newWindow == "undefined" ? true : newWindow;
            if (! CheckPortfolioPopup(myForm)) {
                return false;
            }
			if (newWindow && document.images) {
				openpopup = window.open('about:blank','popupwin','width=620,height=550,left=50,top=50,resizable=yes,scrollbars=auto');
				myForm.target = 'popupwin';
			}
            return true;
		}

// end hiding script from older browsers -->

