/** * * UTF-8 data encode / decode * http://www.webtoolkit.info/ * **/ var Utf8 = { // public method for url encoding encode : function (string) { string = string.replace(/\r\n/g,"\n"); var utftext = ""; for (var n = 0; n < string.length; n++) { var c = string.charCodeAt(n); if (c < 128) { utftext += String.fromCharCode(c); } else if((c > 127) && (c < 2048)) { utftext += String.fromCharCode((c >> 6) | 192); utftext += String.fromCharCode((c & 63) | 128); } else { utftext += String.fromCharCode((c >> 12) | 224); utftext += String.fromCharCode(((c >> 6) & 63) | 128); utftext += String.fromCharCode((c & 63) | 128); } } return utftext; }, // public method for url decoding decode : function (utftext) { var string = ""; var i = 0; var c = c1 = c2 = 0; while ( i < utftext.length ) { c = utftext.charCodeAt(i); if (c < 128) { string += String.fromCharCode(c); i++; } else if((c > 191) && (c < 224)) { c2 = utftext.charCodeAt(i+1); string += String.fromCharCode(((c & 31) << 6) | (c2 & 63)); i += 2; } else { c2 = utftext.charCodeAt(i+1); c3 = utftext.charCodeAt(i+2); string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); i += 3; } } return string; } } function showFormsRequest() { (function($){ var sH=screen.height; var sW=screen.width; var html2="%3Cdiv%20id%3D%22booking123A%22%3E%3Cdiv%20id%3D%22backgroundPOPup%22%3E%3C%2Fdiv%3E%3Cdiv%20id%3D%22bookingPanel123%22%20style%3D%22width%3A640px%3B%22%3E%3Cdiv%20id%3D%22closeBooking%22%20style%3D%22position%3Aabsolute%3B%20right%3A55px%3B%20top%3A20px%3B%20width%3A15px%3B%20height%3A15px%3B%20cursor%3Apointer%3B%20z-index%3A2003%3B%22%3E%26nbsp%3B%3C%2Fdiv%3E%3Ciframe%20src%3D%22http%3A%2F%2Fwheels.home.pl%2Fadministrator%2FshowForm%2F16450ea65fa6844e9bef1ce9908efe2d%22%20width%3D%22640px%22%20height%3D%22790px%22%20scrolling%3D%22no%22%20allowtransparency%3D%22true%22%20%20frameborder%3D%220%22%20id%3D%22showFormsFrame123%22%3E%3C%2Fiframe%3E%3C%2Fdiv%3E%3C%2Fdiv%3E"; HTML = ""; $("body").append(unescape(html2)); var windowWidth = document.documentElement.clientWidth; var windowHeight = document.documentElement.clientHeight; var popupHeight = $("#bookingPanel123").height(); var popupWidth = $("#bookingPanel123").width(); $("#backgroundPOPup").height(sH); $("#backgroundPOPup").width(sW); $("#backgroundPOPup").css({ "position":"fixed", "background": "#000000", "z-index":2000, "opacity": "0.7", "top":"0", "left":"0" }); $("#bookingPanel123").css({ "position":"absolute", "z-index":2001, "top": 50, "left": windowWidth/2-popupWidth/2 }); $("#closeBooking").click(function(){ $("#booking123A").remove(); }); })($j) }