I'm deferring to the more experienced programmers on the list...

I am getting an "object expected" error with this javascript...can anyone 
point out the problem?

TIA!

[snip]
<cfform onSubmit="return validateForm(this)" 
action="admin_edit.cfm?classid=#classid#" name="adminchange" method="POST" 
enablecab="Yes">
[snip]

<cfoutput>
<script language="Javascript">
function validateForm(){
var registeredCount = #registered.registered_count#;
        for (i=0;i<document.adminchange.length;i++){
                if (left(document.adminchange.elements(i).name, 11) ="status_name")
                        if (document.adminchange.elements(i).value = "1")
                                registeredCount = registeredCount + 1;
                                }
        if (registeredCount > #classname.class_size#){
                alert('The maximum class size is " & #classname.class_size# & "."');
                return false;
                }
        return true;
        }
        </script>
        </cfoutput>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to