if (typeof window.postMessage !== 'undefined') {
window.onmessage = function(event) {
var msg = event || window.event; var data;
if (typeof JSON !== 'undefined') data = JSON.parse(msg.data);
else
data = str2JSON(msg.data);
switch (data.action) {
case 'close':
ptlogin2_onClose();
break;
case 'resize':
ptlogin2_onResize(data.width, data.height);
break;
default: break;
}
}
}
function str2JSON(str) {
eval('var __pt_json='+str);
return __pt_json;
}
function ptlogin2_onResize(width, height) {
var login_wnd = document.getElementById("login");
if (login_wnd) {
login_wnd.style.width = width + "px";
login_wnd.style.height = height + "px";
login_wnd.style.visibility = "hidden";
login_wnd.style.visibility = "visible";
}
}
if (typeof window.postMessage !== 'undefined') {
window.onmessage = function(event) {
var msg = event || window.event; var data;
if (typeof JSON !== 'undefined') data = JSON.parse(msg.data);
else
data = str2JSON(msg.data);
switch (data.action) {
case 'close':
ptlogin2_onClose();
break;
case 'resize':
ptlogin2_onResize(data.width, data.height);
break;
default: break;
}
}
}
function str2JSON(str) {
eval('var __pt_json='+str);
return __pt_json;
}
function ptlogin2_onResize(width, height) {
var login_wnd = document.getElementById("login");
if (login_wnd) {
login_wnd.style.width = width + "px";
login_wnd.style.height = height + "px";
login_wnd.style.visibility = "hidden";
login_wnd.style.visibility = "visible";
}
}
if (typeof window.postMessage !== 'undefined') {
window.onmessage = function(event) {
var msg = event || window.event; var data;
if (typeof JSON !== 'undefined') data = JSON.parse(msg.data);
else
data = str2JSON(msg.data);
switch (data.action) {
case 'close':
ptlogin2_onClose();
break;
case 'resize':
ptlogin2_onResize(data.width, data.height);
break;
default: break;
}
}
}
function str2JSON(str) {
eval('var __pt_json='+str);
return __pt_json;
}
function ptlogin2_onResize(width, height) {
var login_wnd = document.getElementById("login");
if (login_wnd) {
login_wnd.style.width = width + "px";
login_wnd.style.height = height + "px";
login_wnd.style.visibility = "hidden";
login_wnd.style.visibility = "visible";
}
}