END; $calendarjs = 1; } $strippedname = sanitise_string($vars['internalname']); $js = "cal" . $strippedname; if ($vars['value'] > 86400) { $val = date("d.m.Y",$vars['value']); } else { $val = $vars['value']; } ?> name="" id="" value="" onblur="javascript:check_date_validity(this, '');" />