I am using this code to display calender
This runs on IE but not on Firefox
<table border="0" cellpadding="0" cellspacing="0" style="height: 150px; border-collapse: collapse" width="100%" class="searchBox">
<form action="index.php?view=search2" method="post" name="SearchForm" onSubmit="Javascript: return checkSearchForm();">
<tr>
<td colspan="2" valign="top">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="normalHeading3">
<tr>
<td valign="top" width="13">
<img border="0" vspace="10" hspace="10" width="13" height="13" alt=""></td>
<td valign="top" class="normalHeading3">
<p style="margin-left: 5px; margin-top: 7px; margin-bottom: 0px" align="left">
Search Property </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="35%">
<p style="margin-left: 10px; margin-top: 5px; margin-bottom: 5px" align="left">
Arrival</p></td>
<td>
<p style="margin-top: 5px; margin-bottom: 5px" align="left">
<input type="text" name="arrival" value="<?=$arrival;?>" size="20" style="width:100px" class="inputBox"/>
<script type="text/javascript" language="javascript">
if(!document.layers) {
document.write('<a href="Javascript:void(0);" onclick="popUpCalendar(SearchForm.arrival,SearchForm.arrival, SearchForm.departure, \'yyyy-mm-dd\');"><img src="date/cal.gif" border="0" align="absmiddle" alt="Change Date"></a>');
}
</script></p>
</td>
</tr>
<tr>
<td>
<p style="margin-left: 10px; margin-top: 5px; margin-bottom: 5px" align="left">
Departure</p></td>
<td>
<p style="margin-top: 5px; margin-bottom: 5px" align="left">
<input type="text" name="departure" value="<?=$departure;?>" size="20" style="width:100px" class="inputBox"/>
<script type="text/javascript" language="javascript">
if (!document.layers) {
document.write('<a href="Javascript:void(0);" onclick="popUpCalendar(SearchForm.departure, SearchForm.departure, SearchForm.departure, \'yyyy-mm-dd\');"><img src="date/cal.gif" border="0" align="absmiddle" alt="Change Date"></a>');
}
</script></p>
</td>
</tr>
<tr> <td height="10"> </td></tr>
</form>
</table>
How to solve it??