﻿<!--
    /************************************************************************
    *   Check Email Form
    ************************************************************************/
    function checkform(p_objForm)
    {
        if (ValidateCheck(p_objForm.Email.value, MASK_EMAILADDRESS, true) != true)
        {
            alert( "Please enter a valid email address." );
            p_objForm.Email.focus();
            return false ;
        }
        
        if (isRequired(p_objForm.FirstName.value) != true)
        {
            alert( "Your first name is required!" );
            p_objForm.FirstName.focus();
            return false ;
        }

        if (isRequired(p_objForm.LastName.value) != true) {
            alert("Your last name is required!");
            p_objForm.LastName.focus();
            return false;
        }
        return true;
    }
    /************************************************************************
    * Floorplans Pop Up Window
    ************************************************************************/
    function popup(FloorPlan, windowname) {
            if (!window.focus) return true;
            var href;
            if (typeof (FloorPlan) == 'string')
                href = FloorPlan;
            else
                href = FloorPlan.href;
            window.open(href, windowname, 'width=415, height=800, resizable=yes, scrollbars=yes');
            return false;
    }
    /************************************************************************
    * Estate Floorplans Pop Up Window
    ************************************************************************/
    function popup(EstateFloorPlan, windowname) {
            if (!window.focus) return true;
            var href;
            if (typeof (EstateFloorPlan) == 'string')
                href = EstateFloorPlan;
            else
                href = EstateFloorPlan.href;
            window.open(href, windowname, 'width=500, height=627, resizable=yes, scrollbars=yes');
            return false;
    }
   
//-->

