By the way, here is a copy of the code which demonstrates the problem I'm having:
Code:
<?php
require('includes/application_top.php');
require(DIR_WS_CLASSES . 'currencies.php');
include(DIR_WS_CLASSES . 'order.php');
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS">
<link rel="stylesheet" type="text/css" href="includes/javascript/spiffyCal/spiffyCal_v2_1.css">
<script language="JavaScript" src="includes/javascript/spiffyCal/spiffyCal_v2_1.js"></script>
<script language="javascript" src="includes/menu.js"></script>
<script language="javascript" src="includes/general.js"></script>
<script type="text/javascript">
<!--
function init()
{
cssjsmenu('navbar');
if (document.getElementById)
{
var kill = document.getElementById('hoverJS');
kill.disabled = true;
}
}
function popupWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=600,height=460,screenX=150,screenY=150,top=150,left=150')
}
// -->
</script>
</head>
<body onload="init()">
<!-- header //-->
<?php
require(DIR_WS_INCLUDES . 'header.php');
?>
<!-- header_eof //-->
<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
<tr>
<!-- body_text //-->
<td>
<tr>
<td class="pageHeading"><?php echo "<STRONG>Test</STRONG>"; ?></td>
</tr>
<tr>
<td><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" width=550 cellspacing="2" cellpadding="2">
<tr><?php echo zen_draw_form('search', FILENAME_STATS_ORDER_LISTING, '', 'get'); echo zen_draw_hidden_field('referral_code', $_GET['referral_code']); ?>
<td class="main"><?php echo zen_image_submit('button_display.gif', IMAGE_DISPLAY); ?></td>
</tr>
<tr>
<script language="javascript">
var StartDate = new ctlSpiffyCalendarBox("StartDate", "search", "start", "btnDate1","<?php echo ('2001-01-01') ; ?>",scBTNMODE_CUSTOMBLUE);
</script>
<td class="main"><?php echo "Test Start Date"; ?> </td>
<td class="main"><script language="javascript">StartDate.writeControl(); StartDate.dateFormat="<?php echo DATE_FORMAT_SPIFFYCAL; ?>";</script></td>
</tr>
</td></table>
</form>
</tr>
</table></td>
</tr>
</td>
</tr>
</table>
In Firefox I am getting the following javascript error on my console:
document.getElementByID(""+id+"") has no properties.
(However, when I view the value of 'id', it comes up with spiffycal).