function createIframe(iframeName, iframeSrc) {
	var iframe;
	if (document.createElement && (iframe = document.createElement('iframe'))) {
		iframe.name = iframeName;
		iframe.src = iframeSrc;
		iframe.height = '300px';
		iframe.width = '615px';
		iframe.scrolling = 'no';
		iframe.style.padding = '0';
		iframe.frameBorder = '0';
		iframe.ALLOWTRANSPARENCY = 'true';
		document.getElementById('_hl_search_widget_container').appendChild(iframe);
	}
}

function urlencode(str) {
	str = (str+'').toString();
	return encodeURIComponent(str).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/\*/g, '%2A').replace(/%20/g, '+');
}

createIframe('_hl_search_widget', 'http://www.hermannlondon.com/search-form.php?ref=' + urlencode(location.href));
