var hotelCode = 'HSAP';

function foreignL(href){
	var hnElement = document.createElement('input');
	hnElement.setAttribute('type','hidden');
	hnElement.setAttribute('name','HotelCode');
	hnElement.setAttribute('value',hotelCode);

	document.foreignForm.appendChild(hnElement);
	document.foreignForm.method = 'POST';
	document.foreignForm.action = href;
	document.foreignForm.target = '_blank';
	document.foreignForm.submit();
}
