Calendar JavaScript does not date... Help!

This form makes me crazy! This is the third time I had to ask the help of this forum trying to complete a simple form. The timing of entry seems to work fine, but no date is recorded in my database. Someone at - it suggestions... this thing is me grinding to a halt. Thanks in advance!

Here is the code:

< cfinclude template = "mp_ck_auth1.cfm" >

< cfquery name = "CheckUser" datasource = "manna_premier" >
SELECT *.
USERS
WHERE UserID = #Session.UserID #.
< / cfquery >

< html >
< head >

< style type = "text/css" >

{.ds_box}
background-color: #FFF;
border: 1px solid #000;
position: absolute;
z index: 32767;
}

{.ds_tbl}
background-color: #FFF;
}

{.ds_head}
background-color: #333;
color: #FFF;
do-family: Arial, Helvetica, without serif.
font size: 13px;
make-weight: bold;
text-align: center;
letter-spacing: 2px;
}

{.ds_subhead}
background-color: #CCC;
Color: #000;
do-size: 12px;
make-weight: bold;
text-align: center;
do-family: Arial, Helvetica, without serif.
Width: 32px;
}

{.ds_cell}
background-color: #EEE;
Color: #000;
font size: 13px;
text-align: center;
do-family: Arial, Helvetica, without serif.
padding: 5px;
cursor: pointer;
}

{.ds_cell:hover}
background-color: #F3F3F3;
} / * This code hover does not work for IE * /.

< / style >
< / head >
< title > manna Pro Products, LLC < /title >
< body >

< table class = "ds_box" cellpadding = "0" cellspacing = "0" id = "ds_conclass" style = "" display: none; ">"
< tr > < id td = "ds_calclass" >
< table > < /tr >
< /table >

< script type = "text/javascript" >
<!-<! [CDATA]

Project: Date Picker Dynamics (DtTvB) - 2006-03-16
The script featured on JavaScript Kit - http://www.javascriptkit.com
Code to start...
Set the initial date.
var ds_i_date = new Date();
ds_c_month = ds_i_date.getMonth () + 1;
ds_c_year = ds_i_date.getFullYear ();

Get the item by Id
function ds_getel (id) {}
return document.getElementById (id);
}

Download the left and the top of the element.
function ds_getleft (el) {}
var tmp = el.offsetLeft;
El = el.offsetParent
{while (El)}
tmp += el.offsetLeft;
El = el.offsetParent;
}
return tmp;
}
function ds_gettop (el) {}
var tmp = el.offsetTop;
El = el.offsetParent
{while (El)}
tmp += el.offsetTop;
El = el.offsetParent;
}
return tmp;
}

Output element
var ds_oe = ds_getel ('ds_calclass');
Container
var ds_ce = ds_getel ('ds_conclass');

Output control
var ds_ob = ";
function ds_ob_clean() {}
ds_ob = ";
}
function ds_ob_flush() {}
ds_oe.innerHTML = ds_ob;
ds_ob_clean();
}
function ds_echo (t) {}
ds_ob += t;
}

var ds_element; Text element...

var ds_monthnames =]
'January', 'February', 'March', 'April', 'May', 'June ',.
'July', 'August', 'September', 'October', 'November', 'December '.
]; You can translate it into your language.

var ds_daynames =]
'Sun', 'Mon', 'Mar', 'Sea', 'Thursday', 'Sun', 'Sam '.
]; You can translate it into your language.

Model calendar
function ds_template_main_above (t) {}
"return ' < table cellpadding = '3' cellspacing ="1"class ="ds_tbl">"
+ "< tr >".
+ ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_py (); "> & lt; & lt; < table > '
+ ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_pm (); "> & lt; < table > '
+ ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_hi (); ' colspan = "3" > [close] < table > '
+ ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_nm (); "> & gt; < table > '
+ ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_ny (); "> & gt; & gt; < table > '
+ "< /tr >".
+ "< tr >".
+ '< td colspan = "7" class = "ds_head" >' t + '< table >.
+ "< /tr >".
+ "< tr >";
}

function ds_template_day_row (t) {}
return '< class td "ds_subhead" = >' t + '< table > ";
Set the width in CSS, XHTML Strict 1.0 does not have the width for her property.
}

function ds_template_new_week() {}
return '< /tr > < tr > ";
}

function ds_template_blank_cell (colspan) {}
return ' < td colspan = "' + colspan + '" > < table > '
}

function ds_template_day (d, m, y) {}
return ' < class td = "ds_cell" onclick = "ds_onclick (d + ',' + m + ',' + y + ')" > ' d + '< table > ";
Set the width of the line of the day.
}

function ds_template_main_below() {}
return '< /tr > ".
+ '< /table > ';
}

It is inspired by calendar...
function ds_draw_calendar (m, y) {}
Start by removing the output buffer.
ds_ob_clean();
Here, we will make the header
ds_echo (ds_template_main_above (ds_monthnames [m - 1] + ' ' + y));
for (i = 0; I < 7; i ++) {}
ds_echo (ds_template_day_row (ds_daynames [i]));
}
Make a date object.
var ds_dc_date = new Date();
ds_dc_date.setMonth (m - 1);
ds_dc_date.setFullYear (y);
ds_dc_date. SetDate (1);
If (m == 1 | m == 3 | m == 5: m == 7 | m == 8 | m == 10: m == 12) {}
days = 31;
} Else if (m == 4: m == 6 | m == 9 | m == 11) {}
days = 30;
} else {}
days = (y % 4 == 0)? 29: 28;
}
var first_day = ds_dc_date.getDay ();
var first_loop = 1;
Beginning of the first week
ds_echo (ds_template_new_week());
If Sunday is not the first day of the month, make an empty cell...
If (first_day! = 0) {}
ds_echo (ds_template_blank_cell (first_day));
}
var j = first_day;
for (i = 0; I < days; i ++) {}
Today is Sunday, a new week.
If this Sunday is the first day of the month,
We already have a new line for you.
If (j == 0 & &! first_loop) {}
New week!
ds_echo (ds_template_new_week());
}
Do a rank of this day here!
ds_echo (ds_template_day (i + 1, m, y));
Is not first loop more...
first_loop = 0;
What is the next day?
j ++;
j % = 7;
}
Make the footer
ds_echo (ds_template_main_below());
And we will show...
ds_ob_flush();
To scroll in the display.
ds_ce. ScrollIntoView();
}

Function to display the calendar.
When the user clicks on the date, it will define the content of t.
function ds_sh (t) {}
Set the element to set.
ds_element = t;
Make a new date and set the current month and year.
var ds_sh_date = new Date();
ds_c_month = ds_sh_date.getMonth () + 1;
ds_c_year = ds_sh_date.getFullYear ();
Draw schedule
ds_draw_calendar (ds_c_month, ds_c_year);
To change the position correctly, we must show first.
ds_ce.style.display = ";
Move the calendar container!
the_left = ds_getleft (t);
the_top = ds_gettop (t) + t.offsetHeight;
ds_ce.style.left = the_left + 'px ';
ds_ce.style.top = the_top + 'px ';
To scroll in the display.
ds_ce. ScrollIntoView();
}

Hide the calendar.
function ds_hi() {}
ds_ce.style.display = 'none ';
}

Moves to next month...
function ds_nm() {}
Increase the current month.
ds_c_month ++;
We have past December, back to next year.
Increase the current year and set the month of January.
If {(ds_c_month > 12)
ds_c_month = 1;
ds_c_year ++;
}
Redraw the calendar.
ds_draw_calendar (ds_c_month, ds_c_year);
}

Moves to the previous month.
function ds_pm() {}
ds_c_month = ds_c_month - 1; Impossible to use the dashboard dashboard here, getting the invalid page.
We stayed in January, let's go back to the previous year.
Decrease the current year and set the month of December.
If (ds_c_month < 1) {}
ds_c_month = 12;
ds_c_year = ds_c_year - 1; Impossible to use the dashboard dashboard here, getting the invalid page.
}
Redraw the calendar.
ds_draw_calendar (ds_c_month, ds_c_year);
}

Moves to next year...
function ds_ny() {}
Increase in the current year.
ds_c_year ++;
Redraw the calendar.
ds_draw_calendar (ds_c_month, ds_c_year);
}

Moves to the previous year...
function ds_py() {}
Reduction in the current year.
ds_c_year = ds_c_year - 1; Impossible to use the dashboard dashboard here, getting the invalid page.
Redraw the calendar.
ds_draw_calendar (ds_c_month, ds_c_year);
}

The format of the release date.
function ds_format_date (d, m, y) {}
2-digit month.
M2 = '00' + m;
M2 = m2.substr (m2.length - 2);
day 2-digit.
D2 = '00' + d;
D2 = d2.substr (d2.length - 2);
AAAA-MM-JJ
return y + '-' + m2 + '-' + d2;
}

When the user clicks on the day.
function ds_onclick (d, m, y) {}
Hide the calendar.
ds_hi();
Set the value of it, if we can.
If (typeof (ds_element.value)! = 'undefined') {}
ds_element. Value = ds_format_date (d, m, y);
Maybe we want to define the HTML in there.
} else if (typeof (ds_element.innerHTML)! = 'undefined') {}
ds_element.innerHTML = ds_format_date (d, m, y);
I don't know how we should view, only he warn the user.
} else {}
Alert (ds_format_date (d, m, y));
}
}

And this is the end.

[]] >-->
< /script >

< style type = "text/css" >
<!--
{.style1}
do-family: "Arial Black";
do-size: 18px;
make-weight: bold;
}
. Style2 {make-size: 24 PX}
. Style7 {make-size: 18px; do-family: Tahoma ;}}
. Style8 {do-family: Tahoma}
->
< / style >

< style type = "text/css" >
<!--
{body
background-image: url();
background-repeat: no-repeat;
left margin: 0px;
margin-top: 0px;
}
a: link {}
text-decoration: none;
}
a: visited {}
text-decoration: none;
}
a: hover {}
text-decoration: none;
}
a: active {}
text-decoration: none;
}
.style12 {do-size: 12}
{.style15}
do-size: 14px;
make-weight: bold;
}
.style16 {do-size: 12px}
.style17 {do-size: 18px}
->
< / style >


< table align = "center" width = "755" background = "images/manna_premier_bg.jpg" border = "0" cellspacing = "0" cellpadding = "0" > "
< b >
< td width = "27%" >
< table border = "0" cellpadding = "0" cellspacing = "0" width = "159" >
"<!-fwtable fwsrc ="manna_premier_menu.png"fwbase =" manna_premier_menu.jpg "fwstyle ="Dreamweaver"fwdocid ="90849735"fwnested ="0"->
< b >
"< td > < img src ="images/spacer.gif"width ="4"height ="1"border ="0"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="7"height ="1"border ="0"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="36"height ="1"border ="0"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="54"height ="1"border ="0"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="2"height ="1"border ="0"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="21"height ="1"border ="0"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="21"height ="1"border ="0"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="1"border ="0"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="1"border ="0"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="8"height ="1"border ="0"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="4"height ="1"border ="0"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="1"border ="0"alt =" "/ > < table >
< /tr >

< b >
"< td colspan ="11"> < img name ="manna_premier_menu_r1_c1"src ="images/manna_premier_menu_r1_c1.jpg"width = '159' height = '86' border ="0"id ="manna_premier_menu_r1_c1"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="86"border ="0"alt =" "/ > < table >
< /tr >
< b >
"< td rowspan ="14"colspan ="2"> < img name ="manna_premier_menu_r2_c1"src ="images/manna_premier_menu_r2_c1.jpg"width ="11"height ="463"border ="0"id ="manna_premier_menu_r2_c1"alt =" "/ > < table >
< td colspan = "4" > < a href = "mp_imagelibrary.cfm" target = "_self" onClick ="MM_nbGroup ('down', 'navbar1', 'manna_premier_menu_r2_c3', ' images/manna_premier_men u_r2_c3_f3.jpg', 1); "onMouseOver =" MM_nbGroup ('over', 'manna_premier_menu_r2_c3',' images/manna_premier_menu_r2_c 3_f2.jpg','images/manna_premier_menu_r2_c3_f4.jpg',1);"onMouseOut =" MM_nbGroup ('out'); "" > < img name = "manna_premier_menu_r2_c3" src = "images/manna_premier_menu_r2_c3.jpg" width = "113" height = "12" border = "0" id = "manna_premier_menu_r2_c3" alt ="" / > < /a > < table >
"< td rowspan ="4"colspan ="5"> < img name ="manna_premier_menu_r2_c7"src ="images/manna_premier_menu_r2_c7.jpg"width ="35"height ="68"border ="0"id ="manna_premier_menu_r2_c7"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="12"border ="0"alt =" "/ > < table >
< /tr >
< b >
"< td colspan ="4"> < img name ="manna_premier_menu_r3_c3"src ="images/manna_premier_menu_r3_c3.jpg"width ="113"height ="22"border ="0"id ="manna_premier_menu_r3_c3"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="22"border ="0"alt =" "/ > < table >
< /tr >
< b >
< td colspan = "2" > < a href = "mpremier_whatsnew.cfm" target = "_self" onClick ="MM_nbGroup ('down', 'navbar1', 'manna_premier_menu_r4_c3', ' images/manna_premier_men u_r4_c3_f3.jpg', 1); "onMouseOver =" MM_nbGroup ('over', 'manna_premier_menu_r4_c3',' images/manna_premier_menu_r4_c 3_f2.jpg','images/manna_premier_menu_r4_c3_f3.jpg',1);"onMouseOut =" MM_nbGroup ('out'); "" > < img name = "manna_premier_menu_r4_c3" src = "images/manna_premier_menu_r4_c3.jpg" width = "90" height = "12" border = "0" id = "manna_premier_menu_r4_c3" alt ="" / > < /a > < table >
"< td rowspan ="2"colspan ="2"> < img name ="manna_premier_menu_r4_c5"src ="images/manna_premier_menu_r4_c5.jpg"width ="23"height ="34"border ="0"id ="manna_premier_menu_r4_c5"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="12"border ="0"alt =" "/ > < table >
< /tr >
< b >
"< td colspan ="2"> < img name ="manna_premier_menu_r5_c3"src ="images/manna_premier_menu_r5_c3.jpg"width ="90"height ="22"border ="0"id ="manna_premier_menu_r5_c3"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="22"border ="0"alt =" "/ > < table >
< /tr >
< b >
< td colspan = "6" > < a href = "mp_open_promos.cfm" target = "_self" onClick ="MM_nbGroup ('down', 'navbar1', 'manna_premier_menu_r6_c3', ' images/manna_premier_men u_r6_c3_f3.jpg', 1); "onMouseOver =" MM_nbGroup ('over', 'manna_premier_menu_r6_c3',' images/manna_premier_menu_r6_c 3_f2.jpg','images/manna_premier_menu_r6_c3_f3.jpg',1);"onMouseOut =" MM_nbGroup ('out'); "" > < img name = "manna_premier_menu_r6_c3" src = "images/manna_premier_menu_r6_c3.jpg" width = "135" height = "12" border = "0" id = "manna_premier_menu_r6_c3" alt ="" / > < / a > < table >
"< td rowspan ="2"colspan ="3"> < img name ="manna_premier_menu_r6_c9"src ="images/manna_premier_menu_r6_c9.jpg"width ="13"height ="34"border ="0"id ="manna_premier_menu_r6_c9"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="12"border ="0"alt =" "/ > < table >
< /tr >
< b >
"< td colspan ="6"> < img name ="manna_premier_menu_r7_c3"src ="images/manna_premier_menu_r7_c3.jpg"width ="135"height ="22"border ="0"id ="manna_premier_menu_r7_c3"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="22"border ="0"alt =" "/ > < table >
< /tr >
< b >
< td colspan = "7" > < a href = "mp_events.cfm" target = "_self" onClick ="MM_nbGroup ('down', 'navbar1', 'manna_premier_menu_r8_c3', ' images/manna_premier_men u_r8_c3_f3.jpg', 1); "onMouseOver =" MM_nbGroup ('over', 'manna_premier_menu_r8_c3',' images/manna_premier_menu_r8_c 3_f2.jpg','images/manna_premier_menu_r8_c3_f4.jpg',1);"onMouseOut =" MM_nbGroup ('out'); "" > < img name = "manna_premier_menu_r8_c3" src = "images/manna_premier_menu_r8_c3.jpg" width = "136" height = "12" border = "0" id = "manna_premier_menu_r8_c3" alt ="" / > < / a > < table >
"< td rowspan ="8"colspan ="2"> < img name ="manna_premier_menu_r8_c10"src ="images/manna_premier_menu_r8_c10.jpg"width ="12"height ="361"border ="0"id ="manna_premier_menu_r8_c10"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="12"border ="0"alt =" "/ > < table >
< /tr >
< b >
"< td colspan ="7"> < img name ="manna_premier_menu_r9_c3"src ="images/manna_premier_menu_r9_c3.jpg"width ="136"height ="22"border ="0"id ="manna_premier_menu_r9_c3"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="22"border ="0"alt =" "/ > < table >
< /tr >
< b >
< td colspan = "5" > < a href = "bookings.cfm" target = "_self" onMouseOut ="MM_nbGroup ('out'); "onMouseOver =" MM_nbGroup ('over', 'manna_premier_menu_r10_c3',' images/manna_premier_menu_r10 _c3_f2.jpg','images/manna_premier_menu_r10_c3_f4.jpg',1);' onClick = "MM_nbGroup ('down', 'navbar1', 'manna_premier_menu_r10_c3', ' images/manna_premier_me nu_r10_c3_f3.jpg', 1); "" > < img name = "manna_premier_menu_r10_c3" src = "images/manna_premier_menu_r10_c3.jpg" width = "134" height = "12" border = "0" id = "manna_premier_menu_r10_c3" alt ="" / > < / a > < table >
"< td rowspan ="6"colspan ="2"> < img name ="manna_premier_menu_r10_c8"src ="images/manna_premier_menu_r10_c8.jpg"width ="2"height ="327"border ="0"id ="manna_premier_menu_r10_c8"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="12"border ="0"alt =" "/ > < table >
< /tr >
< b >
"< td colspan ="5"> < img name ="manna_premier_menu_r11_c3"src ="images/manna_premier_menu_r11_c3.jpg"width ="134"height ="22"border ="0"id ="manna_premier_menu_r11_c3"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="22"border ="0"alt =" "/ > < table >
< /tr >
< b >
"< td > < a href =" mpremier_faq.cfm"target ="_self"> < img name ="manna_premier_menu_r12_c3"src =" images/manna_premier_menu_r12_c3.jpg "width ="36"height ="12"border ="0"id ="manna_premier_menu_r12_c3"alt =" "/ > < /a > < table >"
"< td rowspan ="2"colspan ="4"> < img name ="manna_premier_menu_r12_c4"src ="images/manna_premier_menu_r12_c4.jpg"width ="98"height ="34"border ="0"id ="manna_premier_menu_r12_c4"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="12"border ="0"alt =" "/ > < table >
< /tr >
< b >
"< td > < img name ="manna_premier_menu_r13_c3"src ="images/manna_premier_menu_r13_c3.jpg"width ="36"height ="22"border ="0"id ="manna_premier_menu_r13_c3"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="22"border ="0"alt =" "/ > < table >
< /tr >
< b >
< td colspan = "3" > < a href = "mpremier_contact.cfm" target = "_self" onClick ="MM_nbGroup ('down', 'navbar1', 'manna_premier_menu_r14_c3', ' images/manna_premier_me nu_r14_c3_f3.jpg', 1); "onMouseOver =" MM_nbGroup ('over', 'manna_premier_menu_r14_c3',' images/manna_premier_menu_r14 _c3_f2.jpg','images/manna_premier_menu_r14_c3_f4.jpg',1);"onMouseOut =" MM_nbGroup ('out'); "" > < img name = "manna_premier_menu_r14_c3" src = "images/manna_premier_menu_r14_c3.jpg" width = "92" height = "12" border = "0" id = "manna_premier_menu_r14_c3" alt ="" / > < /a > < table >
"< td rowspan ="2"colspan ="2"> < img name ="manna_premier_menu_r14_c6"src ="images/manna_premier_menu_r14_c6.jpg"width ="42"height ="259"border ="0"id ="manna_premier_menu_r14_c6"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="12"border ="0"alt =" "/ > < table >
< /tr >
< b >
"< td colspan ="3"> < img name ="manna_premier_menu_r15_c3"src ="images/manna_premier_menu_r15_c3.jpg"width ="92"height ="247"border ="0"id ="manna_premier_menu_r15_c3"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="247"border ="0"alt =" "/ > < table >
< /tr >
< b >
"< td rowspan ="2"> < img name ="manna_premier_menu_r16_c1"src ="images/manna_premier_menu_r16_c1.jpg"width ="4"height ="42"border ="0"id ="manna_premier_menu_r16_c1"alt =" "/ > < table >
< td colspan = "9" > < a href = "mpremier_main.cfm" target = "_self" onClick ="MM_nbGroup ('down', 'navbar1', 'manna_premier_menu_r16_c2', ' images/manna_premier_me nu_r16_c2_f3.jpg', 1); "onMouseOver =" MM_nbGroup ('over', 'manna_premier_menu_r16_c2',' images/manna_premier_menu_r16 _c2_f2.jpg','images/manna_premier_menu_r16_c2_f4.jpg',1);"onMouseOut =" MM_nbGroup ('out'); "" > < img name = "manna_premier_menu_r16_c2" src = "images/manna_premier_menu_r16_c2.jpg" width = "151" height = "36" border = "0" id = "manna_premier_menu_r16_c2" alt ="" / > < /a > < table >
"< td rowspan ="2"> < img name ="manna_premier_menu_r16_c11"src ="images/manna_premier_menu_r16_c11.jpg"width ="4"height ="42"border ="0"id ="manna_premier_menu_r16_c11"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="36"border ="0"alt =" "/ > < table >
< /tr >
< b >
"< td colspan ="9"> < img name ="manna_premier_menu_r17_c2"src ="images/manna_premier_menu_r17_c2.jpg"width ="151"height ="6"border ="0"id ="manna_premier_menu_r17_c2"alt =" "/ > < table >
"< td > < img src ="images/spacer.gif"width ="1"height ="6"border ="0"alt =" "/ > < table >
< /tr >
< / table > < table >
< td width = "73%" valign = "top" > < table border = "0" align = "center" cellpadding = "0" cellspacing = "0" >
< b >
< td colspan = "3" > < div align = "center" class = "style1 style2" > STATUS of territory MANAGER < / div > < table >
< /tr >
< b >
< td colspan = "3" valign = "top" > < cfoutput query = 'CheckUser' > < div align = "center" >
< div align = "center" > < span class = "style7" > Welcome back #UserFirstName # #UserLastName #!
Your last login was #DateFormat(LastLogin, "mmm dd, yyyy") # to #TimeFormat (LastLogin, "h: mm tt") # PST.
You have logged in to the site a total of #TotalLogins # time. </span > < / div >
< / cfoutput >
< cfform method = "post" action = "log_entry.cfm" >
< div align = "center" > < cfoutput >
< input type = "hidden" name = "LogDate" value = "#DateFormat (Now (), ' mm/dd/yyyy') #" >
< / cfoutput >
< table width = "525" border = "0" align = "center" cellpadding = "0" cellspacing = "0" >
< b >
< td width = "177" align = "left" class = "style8 style15" > Territory Manager: < table >
< td width = "363" height = "16" align = "left" > < span class = "style12" >
< label > < cfoutput query = 'CheckUser' >
< input name = "TerritoryManager" type = "text" id = "TerritoryManager" value = "" #UserFirstName # #UserLastName # "/ >"
< / label >
</span > < / cfoutput > < table >
< /tr >
< b >
< td align = "left" bgcolor = "#CCCCCC" class = "style8 style15" > status: < table >
< height td = '20' bgcolor = "#CCCCCC" class = "style12" >
< label > < / label > < table >
< /tr >
< b >
< td align = "left" class = "style8 style16" > < strong >
< input name = "Status" type = "radio" value = "in the field" / >
In the field < facilities > < table >
< class td 'style12' = >
< label > < / label > < table >
< /tr >
< b >
< td align = "left" bgcolor = "#CCCCCC" class = "style8 style16" > < strong >
< input name = "Status" type = "radio" value = "Vacation" / >
Holiday < facilities > < table >
< td bgcolor = "#CCCCCC" > < table >
< /tr >
< b >
< td align = "left" > < blockquote >
< class p = "style16 style8" > < strong > start date:
< facilities > < / p >
< / blockquote > < table >
< td align = "left" > < input type = "text" onclick = "ds_sh (this); "name ="VacStart"style =" "cursor: text" / > < table > "
< /tr >
< b >
< td align = "left" > < blockquote >
< class p = "style16 style8" > < strong > end date:
< facilities > < / p >
< / blockquote > < table >
< td align = "left" > "> < input type ="text"onclick =" ds_sh (this); "name ="VacEnd"style =" "cursor: text" / > < table > "
< /tr >
< b >
< td align = "left" class = "style8 style16" > < strong >
< label >
< input name = "Status" type = "radio" value = "Sick day" / >
< / label >
Sick day < / strong > < table >
< td > < table >
< /tr >
< b >
< td align = "left" class = "style8 style16" > < strong >
< label >
< input name = "Status" type = "radio" value = "Admin Day" / >
< / label >
Admin Day < facilities > < table >
< td > < table >
< /tr >
< b >
< td align = "left" class = "style8 style16" > < strong >
< input name = "Status" type = "radio" value = "DSR Ride Along" / >
DSR Ride Along < facilities > < table >
< td align = "left" > < label >
< input name = "DSRName" type = "text" id = "DSRName" / >
< / label > < table >
< /tr >
< b >
< td align = "left" class = "style8 style16" > < strong >
< label >
< input name = "Status" type = "radio" value = 'ServiceCall' / >
< / label >
Calls for service < facilities > < table >
< td align = "left" > < label >
< input type = "text" name = "ServiceName" / >
< / label > < table >
< /tr >
< b >
< td align = "left" > < table >
< td align = "left" > < table >
< /tr >
< b >
< td colspan = "2" align = "center" > < label >
< input type = "submit" value = "Submit" / >
< / label >
< label >
< input type = "reset" value = "Reset" / >
< / label > < table >
< /tr >
< /table >
< / div >
< / cfform >
< p align = "center" class = "style7" > < br / >
< a href = "TM_launch.html" target = "_self" > continue without updating of status. " < /a > < /p >
< / div > < table >
< /tr >
< b >
< td colspan = "3" > < p > < / p >
< p > < / p > < p > < / p > < table >
< /tr >
< b >
< td colspan = "3" bordercolor = "#000000" > < table >
< /tr >
< tr valign = "top" >
< td colspan = "3" > < div align = "center" class = "style8" > < / div > < table >
< /tr >
< b >
< td > < table >
< td > < table >
< td > < table >
< /tr >
< / table > < table >
< /tr >
< /table >
< / body >
< / html >

Ah

See... Here's a deal at the point of why it's good to NPA as little as possible (while making sure that all the code is displayed.  "It is a delicate balance sometimes).  I don't at all look @ your original code and did not notice that you rolled your own calendar control.

Now, my first reaction is the reason why you do not use for this: http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_c_02.html#3798877 ?

Second... I'm not sure what you're asking, it's actually a ColdFusion question, possibly more JS or DHTML question.

Yet, a few thoughts:

* is your calendar control actually enter a date correctly on the client?  IE: when you choose a date, is - this one) actually save a value (pop up you can an alert() with the correct value); (b) is the value in a form control.  I'm not going to study your logic to follow what is happening, but at some point, he must put a value into a form field.  I guess it is a hidden... change to an input text to ensure that it is actually be filled.

* the value gives thanks to the action page?  Replace your current action code by .  Are the dates it?

* How will you put the data in the Database?  A bit of code that you do not publish is the action page.

If there is a problem with the first point above, it's really a matter of JS is not a question of CF.

--

Adam

Tags: ColdFusion

Similar Questions

  • I followed the instructions for "Go Thunderbird data to a new computer," but the calendar data has not been transferred and the calendar program does not work.

    I manually moved my profile of Thunderbird in Ubuntu 12.04 LTS to 8.1 Windows. I followed the instructions and everything settled as expected except the calendar. Not only the calendar data has not been transferred, the calendar itself does not, for example no dates & everyday of the week, etc., all the menus associated with the calendar are "grey," etc. I'd appreciate any help. TIA KellyJMorris

    Calendar (aka Lightning) contains binary components, which are dependent on OS. Thus, you should not remove the add-on lightning in your add-ons Manager and install the Windows version of lightning.
    https://addons.Mozilla.org/en-us/Thunderbird/addon/lightning/

  • JavaScript does not work, even if activated in the preferences

    OK, so javascript does not work in my Firefox. I'm going to websites, try to activate some tabs, or similar, and nothing happens. Theres is a new site, which is linked to my University, and when I try to connect I get a message: Javascript must be enabled to use this Web site.
    Thing - it is turned on. I tried to restart (close-> close-> open-> mozilla mozilla activate on-> close mozilla-> open mozilla-> go to the website) but no dice...

    When I try to use IE, everything works, so I have NO idea what to do... Can anyone help?

    Hello

    Please check if this occurs in Safe Mode

    Extensions of the issues

    Troubleshooting Extensions and themes

    Uninstalling the modules

    Uninstalling toolbars

  • Calendar app does not work after soft. upgd.

    I have a Motorola Fire XT, and recently updated the software with Motorola Software Update application. It updated my Android phone 2.3.5 but after that I noticed that calendar app does not work, he said : "the application calendar (process.com.android.calendar) has stopped unexpectedly. Please try again. " and asked to force close. I tried several times, in vain. How can I solve the problem?

    I have also faced the same problem after update.

    Support staff recommended I reset the phone to factory settings.

    It worked. But I had to reinstall many applications.

    But take backup of phonebook, messages, and other data.

  • JavaScript does not

    When I visit this site:http://www.apolloarchive.com/apollo_gallery.html I see is no longer the image thumbnails when I click the image IDs. I contacted the owner of the site, and he said it worked for FF on his computer, but I'm afraid that my javascript does not work here. I have everything done, deleted cookies, run safe mode, checked options - if I have goofed. And I'm pretty sure that javascript is enabled here. I have Win XP. I don't want to see another browser; If the problem is here that it needs fixing. I expect more word from the owner of the site, but I have tried everything what he suggests. Then what should I do? Download an another Javascript?


  • CAPTCHA does not. have tried all the solutions support and installed the new FF. still does not. Help.

    CAPTCHA does not. have tried all the solutions support and installed the new FF. still does not. Help.

    Try creating a new profile as a test to check whether your profile is the source of the problems.

    See "basic troubleshooting: a new profile:

    There may be extensions and plugins installed by default in a new profile, so check that in "tools > Modules > Extensions & Plugins" in case there are still problems.

    If the new profile works then you can transfer files from the old profile to the new profile, but make sure not to copy corrupted files.

    See:

  • I DOWNLOADED FLASH PLAYER BUT WHEN I TRY TO WATCH A CLIP IT IS SAID TO GET FLASH PLAYER, I HAVE ALREADY. I CONTINUE TO DOWNLOAD, BUT IT DOES NOT ALWAYS HELP

    Question
    I DOWNLOADED FLASH PLAYER BUT WHEN I TRY TO WATCH A CLIP IT IS SAID TO GET FLASH PLAYER, I HAVE ALREADY. I CONTINUE TO DOWNLOAD, BUT IT DOES NOT ALWAYS HELP. Thank you

    --> Updated Firefox to version 10.0.1

    Follow the suggestions mentioned in the section "Flash does not work properly or will not update" in the following article:

    Check and tell if its working.

  • DVD player does not? Help!

    DVD player does not? Help!

    See the Article KB

    Have you tried VLC Media Player?

  • tried everyting to sort the "assertion failed" in LightroomCC, uninstall and installed it again, tried to check the photo folder in the user account, it still does not, PLEASE HELP!

    Had "assertion failure" at the launch of LightroomCC, tried everything help, uninstall and installed it again, tried to check the photo in the user account folder, still does not, PLEASE HELP!

    Thanks for the help.

    My computer scientist has created a new user in my computer and now the 6 Lightroom

    works very well.

    Thank you

  • Calendar Creator does not start. I reinstalled the program - the same result. If I uninstallthe and reinstall then, will I lose all my data?

    I use Windows XP.
    Calendar Creator of Broderbund does not open. I reinstalled from the disk and got the same results. I have used this program for a few years.
    If I uninstall, will I lose my data? Your suggestion (s)?

    Hi Jerry,

    I suggest that you contact the software manufacturer for further assistance. In addition, check if there is an update of the program version.

  • JavaScript does not update/adjustment of the value of the point

    I currently have the function in my header html
    <script language="JavaScript" type="text/javascript">
    function rfc_emergency()
    {
    if ($v('P3_TARGET_COMPLETE_DATE') <= $v('P3_EMERGENCY_DATE'))
    {
    $v('P3_PRIORITY_EMERGENCY').value = 'Y';
    alert("this will be classified as a priority");
    }
    }
    </script>
    and I have this in the form P3_TARGET_COMPLETE_DATE html element attribute
    OnChange = rfc_emergency (this);

    I know the date by comparing work and I know $v('P3_PRIORITY_EMERGENCY').value = "Y"; is ongoing because I'm alert to work. My problem is $v('P3_PRIORITY_EMERGENCY').value = "Y"; in fact, does not appear to do anything. My radio (P3_PRIORITY_EMERGENCY) button remains unchanged. Any suggestions as to why P3_PRIORITY_EMERGENCY is not to 'Y '?

    I'm running 3.2 and I apologize for not having much experience with the java script.
    Thanks in advance.

    My mistake - missed you ask on an option button - they are more delicate with javascript because they are stored under a range of choices, then a simple $x () .value won't.

    You can also make use of $s () to set the value of the elements of the ApEx, which is actually cleaner than $x () .value as it automatically represents the different types of items:

    $s('P3_PRIORITY_EMERGENCY', 'Y');
    

    Hope this helps,
    John

    If you find this information useful, please do not forget to mark the 'useful' or 'correct' post so that others benefit as well.

  • My javascript does not work on Firefox

    I wrote a very small javascript. It works perfectly on IE, but it does not work on Firefox. Each javascript, I am writing to you, face the same problem. JavaScript is not disabled in my firefox browser, and I use the latest version (3.6.9). It's one of my scripts.

    < content meta = text/html"; charset = utf-8 "http-equiv ="Content-Type">"
    < title > Untitled Document < /title >
    < script language = "javascript" >

    function namechecker()
    {
    var firstNameLength = txtFirstName.value.length;

    even if (firstNameLength == 0)
    {
    firstNameLength = prompt ("enter your first name","" ");
    txtFirstName.value = firstNameLength;
    }
    }

    < /script >

    Enter your first name:
    < name of entry = "txtFirstName" type = "text" >


    Enter your last name:
    < input name = "txtlastName" onfocus = "namechecker ()" type = "text" > "

    This problem persists for me after updating to 3.6.10. Many web sites, even Google, unusable due to JavaScript errors. The problem could be solved by disabling the cache. I also noticed that some images for some pages do not load until the cache has been cleared, so I suspect that this is not a JavaScript problem but a bug in the way Firefox handles caching. Unfortunately, I can't reproduce this problem systematically.

    This problem occurs on 2 separate machines that are both running Windows 7 Pro 64 bit. Some installed extensions: Firebug (disabled), Xmarks.

    A page that I am wrong with this time is http://cgsmd.isi.edu/dbsnpq. Errors are "$ is not defined", "jQuery is not defined" and some images do not appear, while some arise. When I go to about: cache? device = disk I can located at the URL of the JavaScript file. When I followed links to this cache entry, and I can see that the corresponding cache file does not exist. This is the file:

    C:\Users\Scott\AppData\Local\Mozilla\Firefox\Profiles\jlz39414.default\Cache\83E84132d01

    I did the same thing for some images. Some I can find in everything: put in cache and view them, other are listed, but the data is not - these are those who were not initially. In all: cache he requests these minutes just cached were there probably isn't another 'cleaning' software removes these files.

    Conclusion: there are bugs in the system cache of Firefox that make many common web sites, such as Google, unusable.

  • Subscribe to calendar link does not work in the iOS 9.2

    I'd be curious to know if someone comes to work. In my tests, it fails.

    Doc iOS 9.2 applications:

    http://help.Apple.com/iPhone/9/#/iph3d1110d4

    "... You can also subscribe to an iCalendar (.ics) calendar published on the web, clicking on a link to the calendar"

    When I test this with a. ICS URL I get a screen asking me to add (all or nothing) events to a calendar. It does not create a subscription. When I tested this on a phone that had only Google calendars it them added to one iPhone calendar.

    I never tried to download a calendar on an iPhone directly.  But if you have a Mac, I downloaded calendars here successfully:

    http://www.Apple.com/downloads/macosx/calendars/

  • calendar gadget does not open

    The calendar that comes with the sidebar gadget worked fine until today.  It now appears only as a white 'calendar) - orange in color.

    No dates, etc.

    I recently installed, uninstalled and reinstalled Carbonite.

    All the other gadgets I use work: clock, weater, notes, currency.

    It happened briefly some time ago, but I don't remember which caused his return to normal.

    Ideas?

    E-mail address is removed from the privacy *.

    Thank you.

    See patch here:

    Calendar Gadget has all orange background and does not show any date information
    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-desktop/calendar-gadget-has-an-all-orange-background-and/18a43a7d-E163-4F84-b2f9-c7da1fcbd9f3

  • MyCD Rom does not work help!

    In Device Manager it sayes windows cannot load device for theis hardware drivers. The driver may be corrupted or missing. (code39)   I uninstalled and unplugged the computer and when I plugged it back in and turned on it says please consult the manufacturer of your device to help get this device installed I have no ideal what I do to help someone! I did everything I know!

    Hello

    Please make all below even if you have done some before as it is often the set of operations which solves
    the question.

    Try this - Panel - Device Manager - CD/DVD - double-click on the device - driver tab - click
    Update the drivers (this will probably do nothing) - then RIGHT click the drive - UNINSTALL - REBOOT
    This will refresh the default driver stack. Even if the reader does not appear to continue below.

    Then, work your way through these - don't forget the drive might be bad, could be a loose cable or
    slight corrosion on the contacts (usually for a laptop) and other issues.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.microsoft.com/kb/314060 - a Mr Fixit

    Try this fix manually if the Fixit 314060 does not work
    http://www.pchell.com/hardware/cd_drive_error_code_39.shtml

    Your CD or DVD drive is missing or is not recognized by Windows or other programs-
    a Mr Fixit
    http://support.Microsoft.com/kb/982116

    The CD drive or the DVD drive does not work as expected on a computer that you upgraded to Windows Vista
    http://support.Microsoft.com/kb/929461

    When you insert a CD or a DVD, Windows Vista may not recognize the disc
    http://support.Microsoft.com/kb/939052

    Your CD or DVD drive cannot read or write media - A Mr Fixit
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    CD/DVD drive does not appear in Windows Vista, or you receive this error during the installation of Windows Vista after booting from the DVD (AHCI)
    http://support.Microsoft.com/kb/952951
    Drive CD - R or CD - RW Drive is not recognized as a recordable device
    http://support.Microsoft.com/kb/316529/

    Hardware devices not detected or not working - A Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    Another possibility is that the cables are loose. Remove ALL power, then make sure that the cables in both
    ends. Remove and replace, do not just tight. For laptops, you can often clean power and
    contacts data with a pencil eraser.

    --------------------------------------------------------------

    Also check with your system manufacturer to see if there are any updated drivers for your DVD. Or even if it
    are you can reinstall the 'old'. Many use Windows default drivers however some special aura
    ones. Also check the website of the manufacturer of the car.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    Hope these helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

Maybe you are looking for