<% din=request("chk_in_date") dout=request("chk_out_date") 'din=request("checkInMonth")&"/"&request("checkInDate")&"/"&request("checkInYear") 'dout=request("checkOutMonth")&"/"&request("checkOutDate")&"/"&request("checkOutYear") inday=day(din) outday=day(dout) inmonth=month(din)-1 outmonth=month(dout)-1 inyear=year(din) outyear=year(dout) 'imonth=monthname(inmonth-1) 'omonth=monthname(outmonth-1) if inday<10 then inday=0&""&inday end if if outday<10 then outday=0&""&outday end if 'hpCheckinDate=imonth&"-"&inday&"-"&inyear 'hpCheckoutDate=omonth&"-"&outday&"-"&outyear numberOfNight=datediff("d",din,dout) checkInMonthYear=inmonth&""&inyear checkOutMonthYear=outmonth&""&outyear numberOfAdults=request("adult") checkInDate=inday numberOfChildren=request("children") checkOutDate=outday 'response.write "http://www.hiexpress.com/hotels/us/en/picayune/pcums/hoteldetail?hpCheckinDate="&hpCheckinDate&"&hpCheckoutDate="&hpCheckoutDate&"&numberOfNight="&numberOfNight&"&checkInMonthYear="&checkInMonthYear&"&checkOutMonthYear="&checkOutMonthYear&"&numberOfAdults="&numberOfAdults&"&checkInDate="&inday&"&numberOfChildren="&numberOfChildren&"&checkOutDate="&outday&"" 'response.end %>
">