<?xml version="1.0" encoding="UTF-8"?>
<form jsname="dojs">

	<additionalhtml>
		Added in front of the closing form tag
	</additionalhtml>
  
  <javascript>
    <mode>strong</mode>
  </javascript>
  
  <defaults>
    <text size="1" maxlength="2"/>
    <file size="3"/>
    <image border="4"/>
    <intros errormsg = "Don't select me">
			<intro value="5">intro</intro>
		</intros>
    <css class="css class" id="id">style</css>
  </defaults>
  
  <elements nameprefix="elnp">
    
    <textarea name="name_textarea" elname="elname_textarea" rows="2" cols="20" wrap="virtual" readonly="false" frozen="false">
      textarea_value
      <css class="css class" id="id">style</css>
      <html accesskey="" tabindex="">additional html</html>   
      <validation>
  			<length min="1" max="4">length_e</length>
  			<regexp reg="[a-z]" icase="true">valid_e</regexp>
        <phpfunction callback="true">callback</phpfunction>
        <jsfunction>
          // must have the name of the (phpfunction)
          function callback(form) {
            // switch off length validaton 
            form.val_off("name_textarea", "l");
          }
        </jsfunction>
  		</validation>
  	</textarea>
    
     <submit name="submit" elname="submit" width="1" height="1" frozen="false" accesskey="" tabindex="">
      value
      <html accesskey="" tabindex="">additional html</html>   
      <css class="css class" id="id">style</css>
  	</submit>
    
  </elements>
  
</form>

