handleLoginResponse=function(B){var A=window.parent.document.getElementById("loginDiv");
if(A){Element.Methods.update(A,B)
}var D=document.getElementById("loginframe");
var C=getIFrameDoc(D);
C.location.replace(D.src)
};
getIFrameDoc=function(B){var A;
if(B.contentDocument){A=B.contentDocument
}else{if(B.contentWindow){A=B.contentWindow.document
}else{if(B.document){A=B.document
}}}return A
};
postFormToIFrame=function(A){var E=document.getElementById("loginframe");
var D=getIFrameDoc(E);
if(D){var C=D.getElementById("IFrameLoginForm");
if(C){try{D.getElementById("mySonyId").value=document.getElementById("mySonyId").value;
D.getElementById("password").value=document.getElementById("password").value;
D.getElementById("csi").value=document.getElementById("rememberMe").checked;
D.getElementById("overridelinksecure").value=document.getElementById("overridelinksecure").value;
if(document.getElementById("pageStyle")!=null){D.getElementById("pageStyle").value=document.getElementById("pageStyle").value
}if(document.getElementById("authStartedFrom")!=null){D.getElementById("authStartedFrom").value=document.getElementById("authStartedFrom").value
}if(document.getElementById("authActionType")!=null){D.getElementById("authActionType").value=document.getElementById("authActionType").value
}C.action=A.action;
C.submit()
}catch(B){return true
}return false
}}return true
};
function postFormToIFrameOld2(F){var B;
if(!document.createElement){return true
}var H;
var I="/view/View.action?site=odw_en_GB&page=MySonyHomeAjaxExtension";
if(!B&&document.createElement){try{var L=document.createElement("iframe");
L.setAttribute("id","hiddenIFrame");
L.style.border="1px";
L.style.width="10px";
L.style.height="10px";
B=document.body.appendChild(L);
if(document.frames){B=document.frames.hiddenIFrame
}}catch(D){iframeHTML='<iframe id="hiddenIFrame" style="';
iframeHTML+="border:0px;";
iframeHTML+="width:0px;";
iframeHTML+="height:0px;";
iframeHTML+='"></iframe>';
document.body.innerHTML+=iframeHTML;
B=new Object();
B.document=new Object();
B.document.location=new Object();
B.document.location.iframe=document.getElementById("RSIFrame");
B.document.location.replace=function(M){this.iframe.src=M
}
}}if(navigator.userAgent.indexOf("Gecko")!=-1&&!B.contentDocument){setTimeout("callToServer()",10);
return false
}if(B.contentDocument){H=B.contentDocument
}else{if(B.contentWindow){H=B.contentWindow.document
}else{if(B.document){H=B.document
}else{return true
}}}H.location.replace(I);
var G=H.getElementById("loginFormIFrame");
if(G){H.getElementById("mySonyId").value=document.getElementById("mySonyId").value;
H.getElementById("password").value=document.getElementById("password").value;
G.action=frmObj.action;
G.submit();
return false
}else{try{var C=H.createElement("form");
C.setAttribute("id","loginFormIFrame");
C.setAttribute("action",F.action);
C.setAttribute("method","POST");
var E=H.body.appendChild(C);
var J=document.createElement("input");
J.setAttribute("id","mySonyId");
J.setAttribute("name","mySonyId");
J.setAttribute("type","hidden");
J.setAttribute("value",document.getElementById("mySonyId").value);
E.appendChild(J);
var K=document.createElement("input");
K.setAttribute("id","password");
K.setAttribute("name","password");
K.setAttribute("type","hidden");
K.setAttribute("value",document.getElementById("password").value);
E.appendChild(K);
var A=document.createElement("input");
A.setAttribute("id","overridelinksecure");
A.setAttribute("name","overridelinksecure");
A.setAttribute("type","hidden");
A.setAttribute("value",document.getElementById("overridelinksecure").value);
E.appendChild(A)
}catch(D){alert(D)
}}return false
};
