function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

var x = readCookie('justluxe_cookie')
var promo_code = '';
if (x) {
	promo_code = x;
}
document.write('<table id="Table_01" width="226" height="260" border="0" cellpadding="0" cellspacing="0"><form action="http://www.secure-res.com/res/vn2/checka.asp?hotelid=2782" method="get" name="mpscheckaressrch" target="_blank">                  <tr>                    <td rowspan="2"><img id="res_01" src="http://www.harbourviewcharleston.com/images/res_01.jpg" width="20" height="21" alt="" /></td>                    <td><img id="res_02" src="http://www.harbourviewcharleston.com/images/res_02.jpg" width="200" height="7" alt="" /></td>                    <td rowspan="2"><img id="res_03" src="http://www.harbourviewcharleston.com/images/res_03.jpg" width="20" height="21" alt="" /></td>                    <td><img src="http://www.harbourviewcharleston.com/images/spacer.gif" width="1" height="7" alt="" /></td>                  </tr>                  <tr>                    <td rowspan="3"><table width="185" height="270" border="0" cellspacing="0" cellpadding="0" align="center">                      <tr>                        <td valign="top" class="bookrm"><div align="center" style="padding-top:16px; padding-bottom:8px"><strong><u>RESERVATIONS</u></strong><br />                        </div>                          <div align="left" class="restxt" style="padding-top:6px; padding-bottom:6px">Check-In Date:</div>                          <table width="185" height="30" border="0" cellpadding="0" cellspacing="0">                            <tr>                              <td width="66" style="padding-top:4px; padding-bottom:4px">							    <div align="center">							      <SELECT name=month size=1 class="resfield">							          <OPTION value=1>Jan</OPTION>							          <OPTION value=2>Feb</OPTION>							          <OPTION value=3>Mar</OPTION>							          <OPTION value=4>Apr</OPTION>							          <OPTION value=5>May</OPTION>							          <OPTION value=6>June</OPTION>							          <OPTION value=7>July</OPTION>							          <OPTION value=8>Aug</OPTION>							          <OPTION value=9>Sept</OPTION>							          <OPTION selected value=10>Oct</OPTION>							          <OPTION value=11>Nov</OPTION>							          <OPTION value=12>Dec</OPTION>							          </SELECT>							        </div></td>                              <td width="53" style="padding-top:4px; padding-bottom:4px"><div align="center">                                <SELECT name=day size=1 class="resfield">                                                                                        <OPTION value=1>1</OPTION>                                  <OPTION value=2>2</OPTION>                                  <OPTION value=3>3</OPTION>                                  <OPTION value=4>4</OPTION>                                  <OPTION value=5>5</OPTION>                                  <OPTION value=6>6</OPTION>                                                      			                                  <OPTION value=7>7</OPTION>							                                    <OPTION value=8>8</OPTION>                                                                                        <OPTION selected value=9>9</OPTION>                                                                     <OPTION value=10>10</OPTION>                                                                                        <OPTION value=11>11</OPTION>                                                                                        <OPTION value=12>12</OPTION>                                                                                        <OPTION value=13>13</OPTION>                                                                                        <OPTION value=14>14</OPTION>                                                                                        <OPTION value=15>15</OPTION>                                                                                        <OPTION value=16>16</OPTION>                                                                                        <OPTION value=17>17</OPTION>                                                                                        <OPTION value=18>18</OPTION>                                                                                        <OPTION value=19>19</OPTION>                                                                                        <OPTION value=20>20</OPTION>                                                                                        <OPTION value=21>21</OPTION>                                                                                        <OPTION value=22>22</OPTION>                                                                                        <OPTION value=23>23</OPTION>                                                                                        <OPTION value=24>24</OPTION>                                                                                        <OPTION value=25>25</OPTION>                                                                                        <OPTION value=26>26</OPTION>                                                                                        <OPTION value=27>27</OPTION>                                                                                        <OPTION value=28>28</OPTION>                                                                                        <OPTION value=29>29</OPTION>                                                                                        <OPTION value=30>30</OPTION>                                                                                        <OPTION value=31>31</OPTION>                                </SELECT>                              </div></td>                              <td width="45" style="padding-top:4px; padding-bottom:4px"><div align="center">                                <SELECT name=year size=1 class="resfield">                                  ');  
var temp_date=new Date()
temp_year = temp_date.getFullYear();
for(i=temp_year;i<temp_year+3;i++){
	document.write('<option value="'+i+'">'+i+'</option> ');
}                                 document.write('                                                 </SELECT>                              </div></td>                              <td width="21" style="padding-left:5px"><div align="center"><A HREF="#" onClick="cal.showCalendar(\'anchor\',getDateString(document.mpscheckaressrch.year,document.mpscheckaressrch.month,document.mpscheckaressrch.day)); return false;" NAME="anchor" ID="anchor"><img src="http://www.harbourviewcharleston.com/images/calendar.jpg" width="20" height="20" border=0/></a></div></td>                            </tr>                          </table>                          <table width="150" height="80" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td colspan="2"><div align="center" style="padding-bottom:3px"><span class="restxt">Corp/Promotion Code:</span><br /><input input name="PromoCode" type="text" class="dropdown" size="12" maxlength="20" value="'+promo_code+'" /> </div></td></tr><tr>                              <td><div align="center" class="restxt" style="padding-top:3px; padding-bottom:3px">Nights:<br />                              <select size="1" name="nights" ID="Select6" class="resfield">                                                            <OPTION value=1>1</OPTION>                                                            <OPTION value=2>2</OPTION>                                                            <OPTION selected value=3>3</OPTION>                                                            <OPTION value=4>4</OPTION>                                                            <OPTION value=5>5</OPTION>                                                            <OPTION value=6>6</OPTION>                                                            <OPTION value=7>7</OPTION>                                                            <OPTION value=8>8</OPTION>                                                            <OPTION value=9>9</OPTION>                                                            <OPTION value=10>10</OPTION>                                                            <OPTION value=11>11</OPTION>                                                            <OPTION value=12>12</OPTION>                                                            <OPTION value=13>13</OPTION>                                                            <OPTION value=14>14</OPTION>                                                          </select></div></td>                              <td><div align="center" class="restxt" style="padding-top:3px; padding-bottom:3px">Rooms:<br />                              <select size="1" name="rooms" ID="Select9" class="resfield">                                                            <OPTION selected value=1>1</OPTION>                                                            <OPTION value=2>2</OPTION>                                                            <OPTION value=3>3</OPTION>                                                            <OPTION value=4>4</OPTION>                                                          </select>  </div></td>                            </tr>                            <tr>                              <td><div align="center" class="restxt" style="padding-top:3px; padding-bottom:3px">Adults:<br />                              <select size="1" name="adults" ID="Select8" class="resfield">                                                            <OPTION selected value=1>1</OPTION>                                                            <OPTION value=2>2</OPTION>                                                            <OPTION value=3>3</OPTION>                                                            <OPTION value=4>4</OPTION>                                                            <OPTION value=5>5</OPTION>                                                            <OPTION value=6>6</OPTION>                                                            <OPTION value=7>7</OPTION>                                                            <OPTION value=8>8</OPTION>                                                            <OPTION value=9>9</OPTION>                                                          </select>       </div></td>                              <td><div align="center" class="restxt" style="padding-top:3px; padding-bottom:3px">Children:<br />                              <select size="1" name="children" ID="Select7" class="resfield">                                                            <OPTION selected value=0>0</OPTION>                                                            <OPTION value=1>1</OPTION>                                                            <OPTION value=2>2</OPTION>                                                            <OPTION value=3>3</OPTION>                                                            <OPTION value=4>4</OPTION>                                                            <OPTION value=5>5</OPTION>                                                            <OPTION value=6>6</OPTION>                                                            <OPTION value=7>7</OPTION>                                                            <OPTION value=8>8</OPTION>                                                            <OPTION value=9>9</OPTION>                                                          </select>      </div></td>                            </tr>                          </table>                          <table width="181" border="0" cellspacing="0" cellpadding="0">                                                <tr>                                                  <td><div align="center" style="padding-top:10px"><a href="#" onclick="document.mpscheckaressrch.submit();"><img src="http://www.harbourviewcharleston.com/images/check-avail.gif" width="121" height="22" border=0></a><div style="padding-top:8px"></div><a href="http://www.secure-res.com/res/vn3/agent-login.aspx?hotelid=2782" class="restxt">Travel Agents</a><input type="hidden" name="hotelid" value="2782" />                  </div></td>                                                </tr>                                            </table></td>                      </tr>                    </table>                                            </td>                    <td><img src="http://www.harbourviewcharleston.com/images/spacer.gif" width="1" height="14" alt="" /></td>                  </tr>                  <tr>                    <td background="http://www.harbourviewcharleston.com/images/res_05.jpg"><img src="http://www.harbourviewcharleston.com/images/res_05.jpg" alt="" name="res_05" width="20" height="270" id="res_05" /></td>                    <td background="http://www.harbourviewcharleston.com/images/res_06.jpg"><img src="http://www.harbourviewcharleston.com/images/res_06.jpg" alt="" name="res_06" width="20" height="156" id="res_06" /></td>                    <td><img src="http://www.harbourviewcharleston.com/images/spacer.gif" width="1" height="156" alt="" /></td>                  </tr>                  <tr>                    <td rowspan="2"><img id="res_07" src="http://www.harbourviewcharleston.com/images/res_07.jpg" width="20" height="21" alt="" /></td>                    <td rowspan="2"><img id="res_08" src="http://www.harbourviewcharleston.com/images/res_08.jpg" width="20" height="21" alt="" /></td>                    <td><img src="http://www.harbourviewcharleston.com/images/spacer.gif" width="1" height="13" alt="" /></td>                  </tr>                  <tr>                    <td><img id="res_09" src="http://www.harbourviewcharleston.com/images/res_09.jpg" width="200" height="8" alt="" /></td>                    <td><img src="http://www.harbourviewcharleston.com/images/spacer.gif" width="1" height="8" alt="" /></td>                  </tr>                </form></table>');