// JavaScript Document
function startTime()
{
var today=new Date()
var y=today.getYear()
var mth=today.getMonth() + 1
var d=today.getDay() - 1
var h=today.getHours()
var m=today.getMinutes()
var s=today.getSeconds()

mth=checkTime(mth)
d=checkTime(d)
m=checkTime(m)
s=checkTime(s)
document.mainform.Reference.value =" "+y+" "+mth+d+" "+h+m+" "+s
document.mainform.ContactDate.value = Date()
}
function checkTime(i)
{
if (i<10) 
  {i="0" + i}
  return i
}
function newHTML() {
HTMLstring='<HTML>\n';
HTMLstring+='<HEAD>\n';
HTMLstring+='<link href="../css/layout.css" rel="stylesheet" type="text/css">\n';
HTMLstring+='<link href="../css/header_contact.css" rel="stylesheet" type="text/css">\n';
HTMLstring+='<link rel="stylesheet" href="../css/print.css"type="text/css" media="print" />\n';
HTMLstring+='<TITLE>Warringah Community Centres Contact Confirmation</TITLE>\n';
HTMLstring+='</HEAD>\n';
HTMLstring+='<BODY onload="this.focus();">\n';
HTMLstring+='<div class="container_mainC"><div class="header"></div><div id="content" class="print"><div id="print"><div class="mtextC"><img src="../council/images/logo_sm.gif" alt="logo"><BR>Request Date: '+mainform.ContactDate.value+'</P><P>Dear: '+mainform.Name.value+',</P><P>Your Reference Number:<B> '+mainform.Reference.value+'</B></P><P><h1><B>'+mainform.Centre.value+' - Booking Request</h1></B> </P><P><B>Date</B>: '+mainform.Month.value+' '+mainform.Day.value+' '+mainform.Year.value+'</P><P><B>Time</B>: '+mainform.Starts.value+' '+mainform.am_pmS.value+' to '+mainform.Ends.value+' '+mainform.am_pmE.value+'</P><P><B>Room</B>: '+mainform.Room.value+'</P><P><B>Event Title</B>: '+mainform.EventTitle.value+'<P><B>Event Summary</B>: '+mainform.EventSummary.value+'</P><P>Thank you for your booking enquiry for a Warringah Community Centre.<BR>We will process your booking request as soon as possible.<BR>If you have any further enquiries relating to your booking request, please do not hesitate to call Community Centre Bookings - Eastern Area, between 9:00 am to 4:30 pm weekdays on (02) 9913 3231.</P><P>Warringah Council Community Services</P></div></div></div><div class="noprint" id="print_controlC"><a href="#" onclick="window.print();return false;"><img src="../images/printer_icon.gif" alt="print button" width="18" height="17" border="0" class="left"></a><a href="#" onclick="window.print();return false;"><span class="navthird">Print This Page For Your Records</span></a></div><input type="button" value="Close Window" class="noprint" onClick="javascript:self.close();"></div></P>\n';
HTMLstring+='</BODY>\n';
HTMLstring+='</HTML>';
newwindow=window.open('', 'WIN', 'resizable=yes,toolbar=no,menubar=no,scrollbars=yes,status=no,width=740,height=600,left=0,top=0;');
newdocument=newwindow.document;
newdocument.write(HTMLstring);
newdocument.close();
}
