function getParamValue(paramName)
{
var url = window.location.search.substring(1); //get rid of “?” in querystring
var qArray = url.split(‘&’); //get key-value pairs
for (var i = 0; i < qArray.length; i++)
{
var pArr = qArray[i].split('='); //split key and value
if (pArr[0] == paramName)
return pArr[1]; //return value
}
}
var paramcheckin = getParamValue('A');
var paramcheckout = getParamValue('D');
var paramadults= getParamValue('Ad');
$(document).ready(function () {
$('#bookframe').attr('src', "https://bookings2.rms.com.au/obookings3/Rates/Index/8759/1?A=paramcheckin&D=paramcheckout&Ad=paramadults");
});

$(document).ready(function () {
var search = window.location.search;
$(“#bookframe”).attr(“src”, “https://bookings2.rms.com.au/obookings3/Rates/Index/8759/1″+search+”#!/rooms”);
});