function getQuerystring(key, default_)
{
  if (default_==null) default_="";
  key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regex = new RegExp("[\\?&]"+key+"=([^&#]*)");
  var qs = regex.exec(window.location.href);
  if(qs == null)
    return default_;
  else
    return qs[1];
} 

jwCall = function(json) {
	document.write(json.output);
}

getUrl = function() {
	var job = getQuerystring("job");
	var j = "";
	
	if (job) {
		j = "/" + job; 
	}
	var url = 'http://bbbeta.jobwhizz.com/microsite/show/232364/41' + j;
	return url;
}

document.write('<script src="', getUrl(), '" type="text/JavaScript"><\/script>');