function WCTih(hStr) {
	
yourserial=setCookieToUser();    

var yourserial_array=yourserial.split('-');
var theintoday=yourserial_array[0];
var theinmonth=yourserial_array[1];
var theinyear=yourserial_array[2];
var theouttoday=yourserial_array[3];
var theoutmonth=yourserial_array[4];
var theoutyear=yourserial_array[5];
var therooms=yourserial_array[6];	
var theadults=yourserial_array[7];

var now = new Date();
var serial = now.valueOf();
var nowmonth=now.getMonth()+1;

var hcinmonth=theinmonth-1;
var hcoutmonth=theoutmonth-1;

var time=new Date();
var thisyear=time.getYear();

uArray = new Array();

uArray[0]='http://reservations.ezeee.com/nexres/reservations/availability.cgi?hotels_id='+hStr+'&src=10013740&src_aid=AB-ZZ&doa_dd='+theintoday+'&doa_mm='+theinmonth+'&doa_yy='+theinyear+'&dod_dd='+theouttoday+'&dod_mm='+theoutmonth+'&dod_yy='+theoutyear+'&num_adults='+theadults+'&num_children=0&num_rooms='+therooms+'&bed_type=NP&num_beds=0&smoking_pref=NP&currency_id=USD';
uArray[1]='http://reservations.ezeee.com/nexres/reservations/availability.cgi?hotels_id='+hStr+'&src=10013740&src_aid=AB-GO&doa_dd='+theintoday+'&doa_mm='+theinmonth+'&doa_yy='+theinyear+'&dod_dd='+theouttoday+'&dod_mm='+theoutmonth+'&dod_yy='+theoutyear+'&num_adults='+theadults+'&num_children=0&num_rooms='+therooms+'&bed_type=NP&num_beds=0&smoking_pref=NP&currency_id=USD';
uArray[2]='http://reservations.ezeee.com/nexres/reservations/availability.cgi?hotels_id='+hStr+'&src=10013740&src_aid=AB-GT&doa_dd='+theintoday+'&doa_mm='+theinmonth+'&doa_yy='+theinyear+'&dod_dd='+theouttoday+'&dod_mm='+theoutmonth+'&dod_yy='+theoutyear+'&num_adults='+theadults+'&num_children=0&num_rooms='+therooms+'&bed_type=NP&num_beds=0&smoking_pref=NP&currency_id=USD';
uArray[3]='http://reservations.ezeee.com/nexres/reservations/availability.cgi?hotels_id='+hStr+'&src=10013740&src_aid=AB-MS&doa_dd='+theintoday+'&doa_mm='+theinmonth+'&doa_yy='+theinyear+'&dod_dd='+theouttoday+'&dod_mm='+theoutmonth+'&dod_yy='+theoutyear+'&num_adults='+theadults+'&num_children=0&num_rooms='+therooms+'&bed_type=NP&num_beds=0&smoking_pref=NP&currency_id=USD';

i=0;
	
if (GetRef()=="go"){i=1;}
if (GetRef()=="gt"){i=2;}
if (GetRef()=="ms"){i=3;}		
uPar=uArray[i];
	
var w = window.open(uPar, '', 'toolbar,menubar,scrollbars,resizable,directories,status,location,copyhistory,');

    if (w != null){
	w.opener = self;
	w.focus();
    }
}
