var today= new Date()
var theyear=today.getFullYear()
var themonth=today.getMonth()+1
var thetoday=today.getDate()
var weektime=new Date()
weektime.setDate(weektime.getDate()+7) //today now is set to be 7 days into the future
var weektimetheyear=weektime.getFullYear()
var weektimethemonth=weektime.getMonth()+1
var weektimethetoday=weektime.getDate()

document.write('<table class="contact" id="contact_form" cellspacing="0" cellpadding="0" border="0">')
document.write('<tbody>                                                                            ')
document.write('<tr>                                                                               ')
document.write('<td>Your Name&nbsp;&nbsp;&nbsp;</td>                                               ')
document.write('<td><input class="text" name="realname"></td>                                      ')
document.write('</tr>                                                                              ')
document.write('<tr>                                                                               ')
document.write('<td>Your E-mail&nbsp;&nbsp;&nbsp;</td>                                             ')
document.write('<td><input class="text" name="email"></td>                                         ')
document.write('</tr>                                                                              ')
document.write('<tr>                                                                               ')
document.write('<td>Telephone&nbsp;&nbsp;</td>                                                     ')
document.write('<td><input class="text" name="from_tel"></td>                                      ')
document.write('</tr>                                                                              ')
document.write('<tr>                                                                               ')
document.write('<td>Dates From</td>                                                                 ')
document.write('<td>                                                                               ')

document.write('<input value="')
document.write(thetoday)
document.write('" name="arrival_day" maxlength="2" size="2">')

document.write('<select name="arrival_month">')
document.write('<option value="Jan"')
if (themonth==1)document.write(' selected')
document.write('>Jan</option>')
document.write('<option value="Feb"')
if (themonth==2)document.write(' selected')
document.write('>Feb</option>')
document.write('<option value="Mar"')
if (themonth==3)document.write(' selected')
document.write('>Mar</option>')
document.write('<option value="Apr"')
if (themonth==4)document.write(' selected')
document.write('>Apr</option>')
document.write('<option value="May"')
if (themonth==5)document.write(' selected')
document.write('>May</option>')
document.write('<option value="Jun"')
if (themonth==6)document.write(' selected')
document.write('>Jun</option>')
document.write('<option value="Jul"')
if (themonth==7)document.write(' selected')
document.write('>Jul</option>')
document.write('<option value="Aug"')
if (themonth==8)document.write(' selected')
document.write('>Aug</option>')
document.write('<option value="Sep"')
if (themonth==9)document.write(' selected')
document.write('>Sep</option>')
document.write('<option value="Oct"')
if (themonth==10)document.write(' selected')
document.write('>Oct</option>')
document.write('<option value="Nov"')
if (themonth==11)document.write(' selected')
document.write('>Nov</option>')
document.write('<option value="Dec"')
if (themonth==12)document.write(' selected')
document.write('>Dec</option>')
document.write('</select>')

document.write('<input value="')
document.write(theyear)
document.write('" name="arrival_Year" maxlength="4" size="4"><br>to &nbsp;')

document.write('<input value="')
document.write(weektimethetoday)
document.write('" name="departure_day" maxlength="2" size="2">')

document.write('<select name="departure_month">')
document.write('<option value="Jan"')
if (weektimethemonth==1)document.write(' selected')
document.write('>Jan</option>')
document.write('<option value="Feb"')
if (weektimethemonth==2)document.write(' selected')
document.write('>Feb</option>')
document.write('<option value="Mar"')
if (weektimethemonth==3)document.write(' selected')
document.write('>Mar</option>')
document.write('<option value="Apr"')
if (weektimethemonth==4)document.write(' selected')
document.write('>Apr</option>')
document.write('<option value="May"')
if (weektimethemonth==5)document.write(' selected')
document.write('>May</option>')
document.write('<option value="Jun"')
if (weektimethemonth==6)document.write(' selected')
document.write('>Jun</option>')
document.write('<option value="Jul"')
if (weektimethemonth==7)document.write(' selected')
document.write('>Jul</option>')
document.write('<option value="Aug"')
if (weektimethemonth==8)document.write(' selected')
document.write('>Aug</option>')
document.write('<option value="Sep"')
if (weektimethemonth==9)document.write(' selected')
document.write('>Sep</option>')
document.write('<option value="Oct"')
if (weektimethemonth==10)document.write(' selected')
document.write('>Oct</option>')
document.write('<option value="Nov"')
if (weektimethemonth==11)document.write(' selected')
document.write('>Nov</option>')
document.write('<option value="Dec"')
if (weektimethemonth==12)document.write(' selected')
document.write('>Dec</option>')
document.write('</select>')

document.write('<input value="')
document.write(weektimetheyear)
document.write('" name="departure_year" maxlength="4" size="4">')

document.write('</td>')
document.write('</tr>')
document.write('<tr>')
document.write('<td>Adults</td>')
document.write('<td><input name="num_adults" maxlength="2" size="2"> &nbsp; Children &nbsp;')
document.write('&nbsp; <input name="num_children" maxlength="2" size="2"></td>')
document.write('</tr>')
document.write('<tr>')
document.write('<td>Message</td>')
document.write('<td>')
document.write('<textarea name="main_message" rows="4">')
document.write('</textarea></td>')
document.write('</tr>')
document.write('<tr>')
document.write('<td colspan="2"><br /><br />')
document.write('<input value="Submit Enquiry" type="submit"> <input value="Clear Form" type=reset>')

document.write('</td>')
document.write('</tr>')

document.write('</tbody>')
document.write('</table>')

