function verify(frm){
        var valid_zip = /\d{5}/;
        if (!valid_zip.test(frm.zip.value)){
                alert("Please enter the Zip Code of the property to be insured.");
                frm.zip.focus();
                return false;
        }

        /*
        if (!document.frm.Currentlyinsured[0].checked && !document.frm.Currentlyinsured[1].checked ){
                alert('Please indicate rather you are curently insured or have been insured in the last 30 days.');
                document.frm.Currentlyinsured.focus();
                return false;
        }
        */

        return true;
}


function process_form(frm){
        if(verify(frm)){
                window.open('http://forms.insuranceagents.com/home/?a=99985&t=1468&c=home' + frm.zip.value , 'new_win', 'fullscreen=yes,scrollbars=yes');
                //window.open('http://network.mossaffiliatemarketing.com/z/1440/CD456/' + frm.subid1.value, 'new_win', 'fullscreen=yes,scrollbars=yes');
                window.location = 'Thankyou.html?zip=' + frm.zip.value + '&afftrack='+frm.afftrack.value;
        }
        return false;
}
