Leelium
67
<script language="Javascript">
function switchframecustom(button, iframeid, url, text) {
$(button).up(1).childElements().each(function(e) { e.removeClassName('current') });
$(button).up(0).addClassName('current');
$(iframeid).contentWindow.document.body.innerHTML = '<p><span style="color: #ffffff">Loading Search Form...</span></p>';
$(iframeid).src = url;
}
</script>
<div id="search" class="left_rounded_corners">
<h1 style="color:#ed9107; margin-left:10px"">Search your Holiday</h1>
<div style="margin-left:5px;padding: 0;position: relative;z-index: 1;">
<input type="radio" name="searchopt" value="FlightAndhotel" onclick="switchframecustom(this, 'searchformframe', '/tab_hotel_flight.phtml?country=[INC:getcgivalue("country")]&destair= [INC:getcgivalue("destair")]', 'Holidays');" checked="checked"/> Flight + Accommodation<br>
<input type="radio" name="searchopt" value="Flight" onclick="switchframecustom(this, 'searchformframe', '/tab_flight_carhire.phtml?country=[INC:getcgivalue("country")]&destair=[INC:getcgivalue("destair")]','Flights');"/> Flight + Car hire<br>
<input type="radio" name="searchopt" value="Hotel" onclick="switchframecustom(this, 'searchformframe', '/tab_hotel.phtml?country=[INC:getcgivalue("country")]&destair=[INC:getcgivalue("destair")]','Hotels');"/> Accommodation only<br></div>
<div id="searchformswitch">
<div id="searchContent">
<iframe src="/tab_hotel_flight.phtml?country=[INC:getcgivalue("country")]&destair=[INC:getcgivalue("destair")]" name="searchformframename" id="searchformframe" width="200" height="300" frameborder="0" border="0" scrolling="no" allowtransparency="true"></iframe>
<div class="clear"></div>
</div>
</div>
</div><!-- /search-->
<div class="spacer"></div>
<script src="/ssi/searchframe.js"></script>
<script>
monitoriframesize('searchformframe','tabform',1);
</script>