function HCOch(cStr, sStr, wStr) {
	
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;

if (sStr=='ZZ'){sStr='';}

uArray = new Array();

uArray[0]='http://travel.ian.com/hotels/hotnetlist.jsp?cid=145867&city='+cStr+'&stateProvince='+sStr+'&country='+wStr+'&validateDates=true&arrivalMonth='+hcinmonth+'&arrivalDay='+theintoday+'&departureMonth='+hcoutmonth+'&departureDay='+theouttoday+'&numberOfRooms='+therooms+'&room-0-adult-total='+theadults+'&mode=2&validateCity=false&temp1=CR2-ZZ&temp2=CL';
uArray[1]='http://travel.ian.com/hotels/hotnetlist.jsp?cid=150135&city='+cStr+'&stateProvince='+sStr+'&country='+wStr+'&validateDates=true&arrivalMonth='+hcinmonth+'&arrivalDay='+theintoday+'&departureMonth='+hcoutmonth+'&departureDay='+theouttoday+'&numberOfRooms='+therooms+'&room-0-adult-total='+theadults+'&mode=2&validateCity=false&temp1=CR2-GO&temp2=CL';
uArray[2]='http://travel.ian.com/hotels/hotnetlist.jsp?cid=150135&city='+cStr+'&stateProvince='+sStr+'&country='+wStr+'&validateDates=true&arrivalMonth='+hcinmonth+'&arrivalDay='+theintoday+'&departureMonth='+hcoutmonth+'&departureDay='+theouttoday+'&numberOfRooms='+therooms+'&room-0-adult-total='+theadults+'&mode=2&validateCity=false&temp1=CR2-GT&temp2=CL';
uArray[3]='http://travel.ian.com/hotels/hotnetlist.jsp?cid=150135&city='+cStr+'&stateProvince='+sStr+'&country='+wStr+'&validateDates=true&arrivalMonth='+hcinmonth+'&arrivalDay='+theintoday+'&departureMonth='+hcoutmonth+'&departureDay='+theouttoday+'&numberOfRooms='+therooms+'&room-0-adult-total='+theadults+'&mode=2&validateCity=false&temp1=CR2-MS&temp2=CL';

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();
    }
}

