Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <STYLE type="text/css">
- /* set the image to use and establish the lower-right position */
- .cssbox, .cssbox_body, .cssbox_head, .cssbox_head h2{
- background: transparent url(images/background2.png) no-repeat bottom right}
- .cssbox{
- /* intended total box width - padding-right(next) */
- width:335px !important; /* IE Win = width - padding */
- width: 320px;
- /* the gap on the right edge of the image (not content padding) */
- padding-right:15px; /* use to position the box */
- margin:20px auto}
- /* set the top-right image */
- .cssbox_head{background-position:top right;
- /* pull the right image over on top of border */
- margin-right:-15px;
- /* right-image-gap + right-inside padding */
- padding-right:40px}
- /* set the top-left image */
- .cssbox_head h2{
- background-position:top left;
- margin:0; /* reset main site styles*/
- border:0; /* ditto */
- /* padding-left = image gap + interior padding ... no padding-right */
- padding:25px 0 15px 40px;
- height:auto !important;
- height:1%} /* IE Holly Hack */
- /* set the lower-left corner image */
- .cssbox_body{
- background-position:bottom left;
- margin-right:25px; /* interior-padding right */
- padding:15px 0 15px 40px} /* mirror .cssbox_head right/left */
- #HEADLINE {
- font-family: Georgia, "Times New Roman", Times, serif;
- font-size:24px;
- margin-top: 5px; margin-bottom: 0px;
- text-align: left;
- font-weight: normal;
- color: #222;}
- fieldset {font-size: 10px;; border: 0px;}
- #SUBHEADLINE{
- font-family: "Lucida Grande", Tahoma;
- font-size: 10px;
- font-weight: lighter;
- font-variant: normal;
- text-transform: uppercase;
- color: #666666;
- margin-top: 10px;
- text-align: left!important;
- letter-spacing: 0.3em;}
- </style>
- <div class="cssbox">
- <div class="cssbox_head">
- <h2 id="HEADLINE"><img src="images/logo.png"><br>The New Yorker Hotel</h2>
- </div>
- <div class="cssbox_body" id="SUBHEADLINE">
- <style media="screen">
- .form-select {font-family: arial, helvetica, san-serif; font-size: 11px;}
- .index-select-dest-bg { font-weight: bold; font-family: arial, helvetica, san-serif; font-size: 11px;} /*change bg color*/
- .index-text {font-weight: normal; color: #000000;font-family: arial, helvetica, san-serif; font-size: 11px;}
- .button {background:#009ACE; color: #FFFFFF; font-weight: bold; font-size: 11px;border-bottom:none;border-top:none;border-left:none;border-right:none;height:16px;cursor:hand}
- </style>
- <table cellspacing="0" cellpadding="0" border="0">
- <tr><td>
- <table cellspacing="0" cellpadding="0" border="0" width="100%">
- <form action="http://travel.ian.com/index.jsp?pageName=hotAvail&cid=9999&isHotels=true&isCondos=false&hotelID=126913&passthrough=true" method="POST" name="hotForm">
- <tr>
- <td>
- <table width="100%" border="0" cellspacing="0" cellpadding="2">
- <tr>
- <td nowrap class="index-text">Arrival Date:<br/>
- <select class="form-select" name="arrivalMonth" onchange="javascript:amadChange(document.hotForm.arrivalMonth, document.hotForm.arrivalDay, document.hotForm.departureMonth, document.hotForm.departureDay);">
- <option value=0>January</option>
- <option value=1>February</option>
- <option value=2>March</option>
- <option value=3>April</option>
- <option value=4>May</option>
- <option value=5>June</option>
- <option value=6>July</option>
- <option value=7>August</option>
- <option value=8>September</option>
- <option value=9>October</option>
- <option value=10>November</option>
- <option value=11>December</option>
- </select>
- <select class="form-select" name="arrivalDay" onchange="amadChange(document.hotForm.arrivalMonth, document.hotForm.arrivalDay, document.hotForm.departureMonth, document.hotForm.departureDay)">
- <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>
- <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>
- </td>
- <td nowrap class="index-text">Departure Date:<br/>
- <select class="form-select" name="departureMonth" onchange="javascript:dmddChange(document.hotForm.departureMonth,document.hotForm.departureDay);">
- <option value=0>January</option>
- <option value=1>February</option>
- <option value=2>March</option>
- <option value=3>April</option>
- <option value=4>May</option>
- <option value=5>June</option>
- <option value=6>July</option>
- <option value=7>August</option>
- <option value=8>September</option>
- <option value=9>October</option>
- <option value=10>November</option>
- <option value=11>December</option>
- </select>
- <select class="form-select" name="departureDay" onchange="dmddChange(document.hotForm.departureMonth,document.hotForm.departureDay)">
- <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>
- <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>
- </td>
- </tr>
- <tr>
- <td><img src="http://images.ian.com/images/p.gif" height="5" width="100%" border="0" onload="loadDates(document.hotForm.arrivalMonth, document.hotForm.arrivalDay, document.hotForm.departureMonth, document.hotForm.departureDay)" /></td>
- </tr>
- <tr>
- <td rowspan="2" colspan="2" align="right"><input type="submit" name="Submit" value=" Search " class="button" ></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td><img src="http://images.ian.com/images/p.gif" height="5" width="100%" border="0" /></td>
- </tr>
- <input type="hidden" name="submitted" value="true"/>
- <input type="hidden" name="avail" value="true"/>
- <input type="hidden" name="pickUpLocation" value="A">
- <input type="hidden" name="passThrough" value="true">
- <input type="hidden" name="locale" value="en_US"/>
- </form>
- </table>
- </td></tr></table>
- <script langage="javascript">
- <!--
- //start new script code
- // Checks if browser is Netscape 2.0x since the options array properties don't work with Netscape 2.0x
- function isBrowserSupp() {
- // Get the version of the browser
- version = parseFloat( navigator.appVersion );
- if ( ( version >= 2.0 ) && ( version < 2.1 ) && ( navigator.appName.indexOf( "Netscape" ) != -1 ) ) {
- return false;
- } else {
- return true;
- }
- return true;
- }
- function isLeapYear( yrStr ) {
- var leapYear = false;
- var year = parseInt( yrStr, 10 );
- // every fourth year is a leap year
- if ( year % 4 == 0 ) {
- leapYear = true;
- // unless it's a multiple of 100
- if( year % 100 == 0 ) {
- leapYear = false;
- // unless it's a multiple of 400
- if( year % 400 == 0 ) {
- leapYear=true;
- }
- }
- }
- return leapYear;
- }
- function getDaysInMonth( mthIdx, YrStr ) {
- // all the rest have 31
- var maxDays = 31
- // expect Feb. (of course)
- if( mthIdx == 1 ) {
- if( isLeapYear( YrStr ) ) {
- maxDays=29;
- } else {
- maxDays=28;
- }
- }
- // thirty days hath...
- if( mthIdx == 3 || mthIdx == 5 || mthIdx == 8 || mthIdx == 10 ) {
- maxDays=30;
- }
- return maxDays;
- }
- //the function which does some magic to the date fields
- // return non-zero if it is the last day of the month
- function adjustDate( mthIdx, Dt ) {
- var value = 0;
- var today = new Date()
- var theYear = parseInt( today.getYear(), 10 )
- if( mthIdx < today.getMonth() ) {
- theYear = ( parseInt( today.getYear(), 10 ) + 1 )
- }
- if( theYear < 100 ) {
- theYear = "19" + theYear
- } else {
- if( ( theYear - 100 ) < 10 ) {
- theYear = "0" + ( theYear - 100 )
- } else {
- theYear = ( theYear - 100 ) + ""
- }
- theYear = "20" + theYear
- }
- var numDays = getDaysInMonth( mthIdx, theYear );
- if( mthIdx == 1 ) {
- if( Dt.options.selectedIndex + 1 < numDays ) {
- return 0;
- } else {
- Dt.options.selectedIndex=numDays - 1;
- //check for leap year
- if( numDays == 29 ) {
- return 99;
- } else {
- return 1;
- }
- }
- }
- if( Dt.options.selectedIndex + 1 < numDays ) {
- value = 0;
- } else {
- if ( Dt.options.selectedIndex + 1 > numDays ) {
- Dt.options.selectedIndex--;
- value = 3;
- } else {
- //index is 31 or 30
- value = 2;
- }
- }
- return value;
- }
- //changes departure month when arrival month is changed
- function amadChange( inM, inD, outM, outD ) {
- if ( !isBrowserSupp() ) {
- return;
- }
- var res = adjustDate( inM.options.selectedIndex, inD );
- if( res != 0 ) {
- outD.options.selectedIndex = 0;
- if ( outM.options.selectedIndex == 11 ) {
- outM.options.selectedIndex = 0
- } else {
- outM.options.selectedIndex=inM.options.selectedIndex + 1;
- outD.options.selectedIndex = 1;
- }
- } else {
- outM.options.selectedIndex = inM.options.selectedIndex;
- if (outD.options.selectedIndex <= inD.options.selectedIndex) {
- outD.options.selectedIndex = inD.options.selectedIndex + 2;
- }
- }
- return;
- }
- function dmddChange( outM, outD ) {
- if ( !isBrowserSupp() ) {
- return;
- }
- adjustDate( outM.options.selectedIndex, outD );
- return;
- }
- function loadDates(arrivalMonthSelect, arrivalDaySelect, departureMonthSelect, departureDaySelect)
- {
- var calendar = new Date();
- var calendar2 = new Date();
- var cal
- var cal2
- var date;
- var month;
- var year;
- var date2;
- var month2;
- var year2;
- //Here is the variable to change for to advance the arrival Date
- var advanceArrival = 14;
- //Here is the variable to change for to advance the departure Date
- var advanceDeparture = 16;
- //Set the arrival Days
- calendar.setDate(calendar.getDate()+ advanceArrival);
- date = calendar.getDate();
- month = calendar.getMonth();
- //Set the Departure Days
- calendar2.setDate(calendar2.getDate()+advanceDeparture);
- date2 = calendar2.getDate();
- month2 = calendar2.getMonth();
- arrivalMonthSelect.value=month;
- arrivalDaySelect.value=date;
- departureMonthSelect.value=month2;
- departureDaySelect.value=date2;
- }
- function OpenWindow(file, name, width, height) {
- OpenWindow(file, name, width, height, false);
- }
- function OpenWindow(file, name, width, height, showLeftTopScrollbar) {
- var attr = "";
- if(showLeftTopScrollbar) {
- attr += "top=50,left=50,scrollbars=1,";
- }
- attr += "width=" + width + ",height=" + height + ",resizeable=1";
- window.open(file, name, attr);
- }
- //-->
- </script>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement