if(typeof window.OboutInc=="undefined")window.OboutInc={};if(document.body.ownerDocument.defaultView&&document.body.ownerDocument.defaultView.getComputedStyle)try{if(OboutInc._saved_getComputedStyle_=="undefined"||OboutInc._saved_getComputedStyle_==null){OboutInc._saved_getComputedStyle_=document.body.ownerDocument.defaultView.getComputedStyle;document.body.ownerDocument.defaultView.getComputedStyle=function(){var a=OboutInc._saved_getComputedStyle_.apply(this,arguments);if(a==null)a={getPropertyValue:function(){return""}};return a}}}catch(ex){}OboutInc.FileUploadProgress=function(u,x,v,t,s,w,h,o,i,j,q,r,g,l,k,n,m,p){var d="background-image",f=false,e=null,a=this;a.ClientID=u;a.CurrentStatus={};a.Uploaded={};a.TimeFormat="%HOURS%:%MINUTES%:%SECONDS%s";if(g!=e&&typeof g!="undefined")a.TimeFormat=g;a.guid=x;a.CallbackUrl=t;a.FormId=w;a.UniqueRequestIdentifier="OboutIncFileUploadSessionId";a._eventPointers=[];a.OnClientSubmitting=o;a.OnClientProgressStarted=i;a.OnClientProgressStopped=j;a.OnClientProgressRefreshed=h;a.OnClientFileRejected=l;a.OnClientServerException=k;a.OnClientFileCleared=m;a._refreshPeriod=Math.max(s,50);a.gifName=v;a.ShowUploadedFiles=q;a.PreservePlace=r;a.AllowedFileFormats=n;a.IgnoreStatusPanel=p;a._opera=f;var b=document.getElementById(a.ClientID+"_PrimaryProgress");if(a.getStyle(b,d).length==0||a.getStyle(b,d)=="none")b.style.backgroundImage="url("+a.gifName+")";b=a.getStyle(b,d);b=b.replace(/^url\([\"\']?(.+)[\"\']?\)$/i,"$1");document.getElementById(a.ClientID+"_ProgressImage").src=b.replace(/(\s)/g,"%20");b=document.getElementById(a.ClientID+"_PrimaryRemainder");if(a.getStyle(b,d).length>0&&a.getStyle(b,d)!="none"){b=a.getStyle(b,d);b=b.replace(/^url\([\"\']?(.+)[\"\']?\)$/i,"$1");document.getElementById(a.ClientID+"_RemainderImage").src=b.replace(/(\s)/g,"%20")}var c=document.getElementById(a.FormId);if(c==e)c=document.forms[0];if(c!=e){a._savedEnctype=c.enctype;c._savedSubmit=c.submit;var z=a,y=document.getElementById("__OboutIncFileUploadKey__"+a.ClientID);y.value=z.guid;a.UpdateFormAction(c);a.RegisterForSubmit(c);if(a.CallbackUrl=="")a.CallbackUrl=c.action.replace(/(\?.*)/,"")+"?OboutIncFileUploadPolling=true"}a._form=c;a._callbackUrl=a.CreateCallbackUrl(a.CallbackUrl);a._waitingForResponse=f;a.RegisterForAutomaticDisposal("Hide");a._startTime=e;a.isCanceled=f;a.isCanceledClicked=f};OboutInc.FileUploadProgress.agt=navigator.userAgent.toLowerCase();OboutInc.FileUploadProgress.is_safari=OboutInc.FileUploadProgress.agt.indexOf("safari")!=-1;OboutInc.FileUploadProgress.is_chrome=OboutInc.FileUploadProgress.agt.indexOf("chrome")!=-1;OboutInc.FileUploadProgress.is_opera=OboutInc.FileUploadProgress.agt.indexOf("opera")!=-1||window.opera;OboutInc.FileUploadProgress.prototype.getGUID=function(){try{return document.getElementById("__OboutIncFileUploadKey__"+this.ClientID).value}catch(a){return this.guid}};OboutInc.FileUploadProgress.prototype.CreateCallbackUrl=function(a){var b=a.indexOf("?")<0?"?":"&";return a+b+this.UniqueRequestIdentifier+"="+this.getGUID()};OboutInc.FileUploadProgress.prototype.RegisterForSubmit=function(a){this.RegisterForLinkButtons(a);this.RegisterForRegularButtons(a)};OboutInc.FileUploadProgress.prototype.RegisterForLinkButtons=function(b){var a="function",c=this.CreateEventHandler("ClientSubmitHandler"),e=b.submit;try{b.submit=function(){if(c()==false)return false;b.submit1=e;return b.submit1()}}catch(f){try{if(typeof __doPostBack==a){var d=__doPostBack;__doPostBack=function(e,f){var b=true;if(typeof Page_ClientValidate==a)b=Page_ClientValidate();if(b){if(c()==false)return;d(e,f)}}}}catch(f){}}};OboutInc.FileUploadProgress.prototype.RegisterForRegularButtons=function(a){this.AttachDomEvent(a,"submit","ClientSubmitHandler")};OboutInc.FileUploadProgress.prototype.ClientSubmitHandler=function(c){var d="function",b=false,a=this;if(a.isCanceled||a.isCanceledClicked){a.isCanceledClicked=b;a.CancelEvent(c);return b}if(typeof a.OnClientSubmitting==d)try{if(a.OnClientSubmitting()==b){a.CancelEvent(c);return b}}catch(g){a.CancelEvent(c);return b}try{var e=a.testSelectedFiles();if(e.length>0){a.CancelEvent(c);if(typeof a.OnClientFileCleared==d)try{a.OnClientFileCleared(e)}catch(g){}return b}}catch(g){}a.InitSelectedFilesCount();if(a._selectedFilesCount>0){var f=a;if(a._form!=null){a.setFormAction(a._form);if(OboutInc.StatusPanel.Colllection.length>0)a._form.target=OboutInc.StatusPanel.IframeName}if((OboutInc.FileUploadProgress.is_safari||OboutInc.FileUploadProgress.is_opera)&&!(a._form.target&&a._form.target==OboutInc.StatusPanel.IframeName))a._opera=true;window.setTimeout(function(){f.StartProgressPolling()},a._refreshPeriod)}else if(a._form!=null){if(OboutInc.StatusPanel.Colllection.length>0)if(!a.IgnoreStatusPanel)a._form.target=OboutInc.StatusPanel.IframeName;else a._form.target=a._form._initialTarget;a.clearFormAction(a._form)}return true};OboutInc.FileUploadProgress.prototype.testSelectedFiles=function(){var g=this;if(g.AllowedFileFormats.length==0)return"";for(var e="",m=document.getElementsByTagName("input"),l=0;l<m.length;l++){var a=m[l];if(a.type=="file"&&a.value!=""){var c="*",d=a.value,k=d.lastIndexOf("."),j=d.lastIndexOf("/"),i=d.lastIndexOf("\\");if(k>j&&k>i)c=d.substr(k+1);var n=d.substr((j>i?j:i)+1);if(c.length==0)c="*";c=c.toLowerCase();for(var h=0;h<g.AllowedFileFormats.length;h++){var f=g.AllowedFileFormats[h][0].toLowerCase();if(f.length==0)f="*";if(f==c||f=="*")break}if(h==g.AllowedFileFormats.length){if(document.all&&!window.opera){a.parentNode.insertBefore(a.cloneNode(false),a);a.parentNode.removeChild(a)}else{var b=document.createElement("SPAN");a.parentNode.insertBefore(b,a);b.appendChild(a);b.innerHTML=b.innerHTML;b.parentNode.insertBefore(b.firstChild,b);b.parentNode.removeChild(b)}if(e.length>0)e+="\n";e+=n}}}return e};OboutInc.FileUploadProgress.prototype.StartProgressPolling=function(){var a=this;if(typeof a.OnClientProgressStarted=="function")try{a.OnClientProgressStarted()}catch(b){}a._startTime=new Date;a.MakeCallback()};OboutInc.FileUploadProgress.prototype.InitSelectedFilesCount=function(){this._selectedFilesCount=0;for(var b=document.getElementsByTagName("input"),a=0;a<b.length;a++){var c=b[a];if(c.type=="file"&&c.value!="")this._selectedFilesCount++}return this._selectedFilesCount};OboutInc.FileUploadProgress.prototype.MakeCallback=function(){if(!this._waitingForResponse){this._waitingForResponse=true;this.SendXmlHttpRequest()}};OboutInc.FileUploadProgress.prototype.GetTimeStampedCallbackUrl=function(b){var a=this;a._callbackUrl=a.CreateCallbackUrl(a.CallbackUrl);return a._callbackUrl+"&OboutUploadTimeStamp="+(new Date).getTime()+(a.isCanceled?"&OboutUploadCanceled=true":"")+(b?"&OboutUploadUnload=true":"")};OboutInc.FileUploadProgress.prototype.PrepareXmlHttpRequest=function(){var a="undefined";if(typeof XMLHttpRequest!=a)this._xmlHttpRequest=new XMLHttpRequest;else if(typeof ActiveXObject!=a)this._xmlHttpRequest=new ActiveXObject("Microsoft.XMLHTTP");else return false;return true};OboutInc.FileUploadProgress.prototype.SendXmlHttpRequest=function(){var a=this;if(!a.PrepareXmlHttpRequest())return;a._xmlHttpRequest.onreadystatechange=a.CreateEventHandler("HandleCallback");a._xmlHttpRequest.open("GET",a.GetTimeStampedCallbackUrl(false),true);a._xmlHttpRequest.send("")};OboutInc.FileUploadProgress.prototype.SendXmlHttpRequestOnUnload=function(){var a=this;if(!a.PrepareXmlHttpRequest())return;a._xmlHttpRequest.open("GET",a.GetTimeStampedCallbackUrl(true),true);a._xmlHttpRequest.send("")};OboutInc.FileUploadProgress.prototype.CancelRequest=function(b){var a=this;if(a._form!=null&&a._startTime!=null)a.isCanceled=true;a.isCanceledClicked=typeof b=="undefined"};OboutInc.FileUploadProgress.prototype.innerCancelRequest=function(){var a=this;if(a._form!=null&&a._startTime!=null){a.clearFormAction(a._form);a._form.enctype=a._savedEnctype;a._form.encoding=a._savedEnctype;a._form.removeAttribute("enctype");a._form._savedSubmit();var b=a;setTimeout(function(){var a="multipart/form-data";b._form.enctype=a;b._form.encoding=a},100)}};OboutInc.FileUploadProgress.prototype.HandleCallback=function(){var b="function",a=this;if(a._xmlHttpRequest.readyState!=4)return;try{a._xmlHttpRequest.onreadystatechange=null}catch(i){}a._waitingForResponse=false;if(a.ErrorOccured()){a.Hide();return}var e=a._xmlHttpRequest.responseText;if(e){a.Uploaded.RequestSize=0;a.Uploaded.Bytes=0;a.Uploaded.CurrentException="";a.Uploaded.CurrentFileHeader="";try{eval(e)}catch(h){a.ShowInvalidContentMessage(h.message);a.Hide();return}if(a.Uploaded.CurrentFileHeader.length>0){if(a.Uploaded.CurrentFileHeader.indexOf("OboutCancel")==-1)if(typeof a.OnClientServerException==b)try{a.OnClientServerException(a.Uploaded.CurrentFileHeader)}catch(i){}a.innerCancelRequest();try{a.Hide()}catch(h){}return}if(a.Uploaded.RequestSize>0){a.Show();var g=a.ModifyProgressData();if(a.Uploaded.CurrentException.length>0)if(typeof a.OnClientFileRejected==b)try{var d=a.Uploaded.CurrentException.split("/");a.OnClientFileRejected(d[0],d[1],d[2])}catch(i){}if(g){document.getElementById(a.ClientID+"_Uploading").style.display="none";document.getElementById(a.ClientID+"_Uploaded").style.display="";if(typeof a.OnClientProgressStopped==b)try{a.OnClientProgressStopped()}catch(i){}a.Hide();return}}else{var c=document.getElementById(a.ClientID);if(c!=null){var f=!a.PreservePlace?c.style.display=="none":c.style.visibility=="hidden";if(!f){a.Hide();return}}}}window.setTimeout(a.CreateEventHandler("MakeCallback"),a._refreshPeriod)};OboutInc.FileUploadProgress.prototype.ErrorOccured=function(){var a=this;if(!document.all)return false;if(a._xmlHttpRequest.status==404)a.ShowNotFoundMessage();else if(a._xmlHttpRequest.status>0&&a._xmlHttpRequest.status!=200)a.ShowGenericErrorMessage();else return false;return true};OboutInc.FileUploadProgress.prototype.ShowNotFoundMessage=function(){alert("OboutUpload Ajax callback error. Source url was not found: \n\r\n\r"+this._callbackUrl)};OboutInc.FileUploadProgress.prototype.ShowGenericErrorMessage=function(){var a=" \n\r\n\r";alert("OboutUpload Ajax callback error. Source url returned error: "+this._xmlHttpRequest.status+a+this._xmlHttpRequest.statusText+a+this._callbackUrl)};OboutInc.FileUploadProgress.prototype.ShowInvalidContentMessage=function(a){alert("OboutUpload Ajax callback error. Source url returned invalid content: \n\r\n\r"+this._xmlHttpRequest.responseText+"\n\r\n\r"+this._callbackUrl+"\n\r\n\rMessage: "+a)};OboutInc.FileUploadProgress.prototype.CancelEvent=function(a){if(!a)a=window.event;if(!a)return false;try{a.returnValue=false;a.cancelBubble=true}catch(b){}a.stopPropagation&&a.stopPropagation();a.preventDefault&&a.preventDefault();return false};OboutInc.FileUploadProgress.prototype.CreateEventHandler=function(a){var b=this;return function(c){if(!c)c=window.event;return b[a](c)}};OboutInc.FileUploadProgress.prototype.AttachDomEvent=function(b,d,e){var a=this,c=a.CreateEventHandler(e);a._eventPointers[a._eventPointers.length]=[b,d,c];a.private_AttachDomEvent(b,d,c)};OboutInc.FileUploadProgress.prototype.private_AttachDomEvent=function(a,c,b){if(a.attachEvent)a.attachEvent("on"+c,b);else a.addEventListener&&a.addEventListener(c,b,false)};OboutInc.FileUploadProgress.prototype.DetachDomEvent=function(a,c,b){if(a.detachEvent)a.detachEvent("on"+c,b);else a.removeEventListener&&a.removeEventListener(c,b,false)};OboutInc.FileUploadProgress.prototype.DisposeDomEvents=function(){var a=this;for(var b=0;b<a._eventPointers.length;b++)a.DetachDomEvent(a._eventPointers[b][0],a._eventPointers[b][1],a._eventPointers[b][2]);a.ClearEventPointers()};OboutInc.FileUploadProgress.prototype.RegisterForAutomaticDisposal=function(b){var a=this,c=this.CreateEventHandler(b),d=function(){c();a.SendXmlHttpRequestOnUnload();a.DisposeDomEvents();a=null};this.private_AttachDomEvent(window,"unload",d)};OboutInc.FileUploadProgress.prototype.ClearEventPointers=function(){this._eventPointers=[]};OboutInc.FileUploadProgress.prototype.UpdateFormAction=function(a){var b="multipart/form-data";if(typeof a.action=="undefined")a.action="";a.action=this.RemoveQueryStringParameter(a.action,this.UniqueRequestIdentifier);a.method="post";a.enctype=b;a.encoding=b;a.setAttribute("enctype",b);a.setAttribute("method","post");a._initialAction=a.action;a._initialTarget=a.target};OboutInc.FileUploadProgress.prototype.setFormAction=function(a){var b=this;if(b._opera)a.action=b.RemoveQueryStringParameter(a.action,"opera");a.action=b.RemoveQueryStringParameter(a.action,b.UniqueRequestIdentifier);if(a.action.match(/\?/)){if(a.action.substring(a.action.length-1)!="?")a.action+="&"}else a.action+="?";a.action+=b.UniqueRequestIdentifier+"="+b.getGUID();if(b._opera)a.action+="&opera=1"};OboutInc.FileUploadProgress.prototype.clearFormAction=function(a){var b=this;if(a.action.match(/\?/)){if(b._opera)a.action=b.RemoveQueryStringParameter(a.action,"opera");a.action=b.RemoveQueryStringParameter(a.action,b.UniqueRequestIdentifier)}};OboutInc.FileUploadProgress.prototype.RemoveQueryStringParameter=function(a,c){var b=new RegExp("&?"+c+"=[^&]*");if(a.match(b)){a=a.replace(b,"");if(a.substr(a.length-1,1)=="?")a=a.substr(0,a.length-1);return a}return a};OboutInc.FileUploadProgress.prototype.ModifyProgressData=function(){var m="_FilesWord",l="_FileWord",g="none",e=null,a=this,h=new Date-a._startTime;a.CurrentStatus.TimeElapsed=a.GetFormattedTime(a.ToSeconds(h));var j=a.Uploaded.RequestSize,k=a.Uploaded.Bytes;a.CurrentStatus.PrimaryTotal=a.FormatBytes(j);a.CurrentStatus.PrimaryValue=a.FormatBytes(k);a.CurrentStatus.PrimaryPercent=Math.round(100*k/j);a.CurrentStatus.SecondaryTotal=a._selectedFilesCount;a.CurrentStatus.SecondaryValue=a.Uploaded.FilesCount;a.CurrentStatus.CurrentOperationText=a.Uploaded.CurrentFileName;if(a.Uploaded.ServerWork!=e&&typeof a.Uploaded.ServerWork!="undefined"&&a.Uploaded.ServerWork.length>0)a.CurrentStatus.ServerWork=a.Uploaded.ServerWork;else a.CurrentStatus.ServerWork="";if(a.CurrentStatus.CurrentOperationText.length==0)if(a.Uploaded.UploadedList.length>0){var i=a.Uploaded.UploadedList.split("\n");a.CurrentStatus.CurrentOperationText=i[i.length-1].split("/")[0]}if(a.ToSeconds(h)==0)a.CurrentStatus.Speed=a.FormatBytes(0)+"/s";else a.CurrentStatus.Speed=a.FormatBytes(a.Uploaded.Bytes/a.ToSeconds(h))+"/s";if(a.CurrentStatus.PrimaryPercent==0)a.CurrentStatus.TimeEstimated=a.GetFormattedTime(a.ToSeconds(359999000));else a.CurrentStatus.TimeEstimated=a.GetFormattedTime(a.ToSeconds(h*(100/a.CurrentStatus.PrimaryPercent-1)));var b;b=document.getElementById(a.ClientID+"_PrimaryProgress");if(b!=e)b.style.width=a.CurrentStatus.PrimaryPercent+"%";b=document.getElementById(a.ClientID+"_SecondaryPanel");if(a._selectedFilesCount>1||a.PreservePlace)b.style.display="block";else b.style.display=g;document.getElementById(a.ClientID+"_Uploading").style.display="";document.getElementById(a.ClientID+"_Uploaded").style.display=g;if(a.Uploaded.FilesCount==1){document.getElementById(a.ClientID+l).style.display="";document.getElementById(a.ClientID+m).style.display=g}else{document.getElementById(a.ClientID+l).style.display=g;document.getElementById(a.ClientID+m).style.display=""}for(var o in a.CurrentStatus){var s=a.CurrentStatus[o],p=a.ClientID+"_"+o,n=document.getElementById(p);if(n!=e)n.innerHTML=s}b=document.getElementById(a.ClientID+"_UploadedListTable");if(b!=e)while(b.firstChild!=e)b.removeChild(b.firstChild);if(a.ShowUploadedFiles&&b!=e)if(a.Uploaded.UploadedList.length>0){var i=a.Uploaded.UploadedList.split("\n");for(var r in i){var f=b.insertRow(b.rows.length);f.className="FileUploadProgress_UploadedListRow";var d,c=i[r].split("/");d=f.insertCell(f.cells.length);d.innerHTML=c[0];d.className="FileUploadProgress_UploadedListFileName";d=f.insertCell(f.cells.length);d.className="FileUploadProgress_UploadedListFileText";if(c.length>1)if(c.length>2){var q=parseInt(c[2])>0?"&nbsp;&gt;&nbsp;"+a.FormatBytes(parseInt(c[2])):document.getElementById(a.ClientID+"_SessionLost").innerHTML;d.innerHTML=document.getElementById(a.ClientID+"_UploadedListFileCanceled").innerHTML+"&nbsp;"+a.FormatBytes(parseInt(c[1]))+q}else d.innerHTML=document.getElementById(a.ClientID+"_UploadedListFileText").innerHTML+"&nbsp;"+a.FormatBytes(parseInt(c[1]))}}if(typeof a.OnClientProgressRefreshed=="function")try{a.OnClientProgressRefreshed(a.Uploaded)}catch(t){}return j==k};OboutInc.FileUploadProgress.prototype.Show=function(){var a=document.getElementById(this.ClientID);if(a!=null)if(!this.PreservePlace)a.style.display="block";else a.style.visibility="visible"};OboutInc.FileUploadProgress.prototype.Hide=function(){var a=this,b=document.getElementById(a.ClientID);if(b!=null)if(!a.PreservePlace)b.style.display="none";else b.style.visibility="hidden";a._startTime=null;a.isCanceled=false;a.isCanceledClicked=false};OboutInc.FileUploadProgress.prototype.ToSeconds=function(a){return Math.round(a/1e3)};OboutInc.FileUploadProgress.prototype.FormatBytes=function(c){var b=c/1024,d=b/1024;if(d>.8){var a=""+Math.round(d*100)/100+"";if(a.indexOf(".")<0)a+=".00";if(a.length-a.indexOf(".")<3)a+="0";return a+"MB"}if(b>.8){var a=""+Math.round(b*100)/100+"";if(a.indexOf(".")<0)a+=".00";if(a.length-a.indexOf(".")<3)a+="0";return a+"kB"}return""+c+" bytes"};OboutInc.FileUploadProgress.prototype.GetFormattedTime=function(b){var a=this.NormalizeTime(b);return this.TimeFormat.replace(/%HOURS%/,a.Hours).replace(/%MINUTES%/,a.Minutes).replace(/%SECONDS%/,a.Seconds)};OboutInc.FileUploadProgress.prototype.NormalizeTime=function(d){var b=d%60;if(b<10)b="0"+b;var c=Math.floor(d/60),a=c%60;if(a<10)a="0"+a;var e=Math.floor(c/60);return{Hours:e,Minutes:a,Seconds:b}};OboutInc.FileUploadProgress.prototype.getStyle=function(a,b){var c="";if(a.nodeType==1)if(a.ownerDocument.defaultView&&a.ownerDocument.defaultView.getComputedStyle)try{c=a.ownerDocument.defaultView.getComputedStyle(a,"").getPropertyValue(b)}catch(d){}else if(a.currentStyle)try{b=b.replace(/\-(\w)/g,function(b,a){return a.toUpperCase()});c=a.currentStyle[b]}catch(d){}return c};if(typeof OboutInc.StatusPanel=="undefined")OboutInc.StatusPanel={};OboutInc.StatusPanel.Colllection=[];OboutInc.StatusPanel.IframeName="OboutInc_StatusPanel_Iframe";OboutInc.StatusPanel.OnLoad=null;OboutInc.StatusPanel.Instance=function(a){if(parent!=window&&parent.OboutInc&&parent.OboutInc.StatusPanel)return;this.ClientID=a;OboutInc.StatusPanel.Colllection.push(this);if(OboutInc.StatusPanel.OnLoad==null){OboutInc.StatusPanel.OnLoadSaved=document.all?document.body.onload:window.onload;if(document.all)document.body.onload=function(b){OboutInc.StatusPanel.OnLoadFunction(b,a)};else window.onload=function(b){OboutInc.StatusPanel.OnLoadFunction(b,a)};OboutInc.StatusPanel.OnLoad=OboutInc.StatusPanel.OnLoadFunction}};OboutInc.StatusPanel.IframeLoaded=function(){setTimeout(function(){var g="input",c=null,i;try{i=document.getElementById(OboutInc.StatusPanel.IframeName).contentWindow.document}catch(z){return}if(i.location.href=="about:blank"||i.location.href=="")return;for(var d=c,a=0;a<OboutInc.StatusPanel.Colllection.length;a++){var n=OboutInc.StatusPanel.Colllection[a].ClientID,m=i.getElementById(n),v=document.getElementById(n);if(m==c){var x=confirm("Not found in response page: "+n+"\nIt could be caused by Server Error\n\nDo you want to see the response page?");if(x){var t=window.open("","NotFoundInAnswer","toolbar=0,status=1,scrollbars=1,resizable=1,width=600,height=400");function u(){try{!t.document&&setTimeout(u,100)}catch(b){return}var a=t.document;a.open();a.write("<body>"+i.body.innerHTML+"</body>");a.close()}setTimeout(u,0)}break}d=m.parentNode;while(d!=c){if(d.tagName&&d.tagName.toUpperCase()=="FORM")break;d=d.parentNode}v.innerHTML=m.innerHTML}if(d!=c){for(var j=OboutInc.StatusPanel.Form.getElementsByTagName(g),a=0;a<j.length;a++){var h=j[a].name,l=j[a].type;if(h&&h.length>0&&l&&l=="file"){var e=j[a];if(document.all&&!window.opera){e.parentNode.insertBefore(e.cloneNode(false),e);e.parentNode.removeChild(e)}else{var b=document.createElement("SPAN");e.parentNode.insertBefore(b,e);b.appendChild(e);b.innerHTML=b.innerHTML;b.parentNode.insertBefore(b.firstChild,b);b.parentNode.removeChild(b)}}}var r=d.getElementsByTagName(g);j=OboutInc.StatusPanel.Form.getElementsByTagName(g);for(var a=0;a<r.length;a++){var h=r[a].name;if(h&&h.length>0)for(var p=i.getElementsByName(h),o=document.getElementsByName(h),k=0;k<p.length;k++){var f=p[k];if(k>=o.length)break;var q=o[k],l=f.type;if(l&&l=="hidden"){var w=q.value,s=f.value;if(s!=w)q.value=s;if(f.name&&f.name.length>0){var y=/^__OboutIncFileUploadKey__/;if(y.test(f.name))f.value="dummySession"}}}}}},0)};OboutInc.StatusPanel.OnLoadFunction=function(b,a){try{OboutInc.StatusPanel.OnLoadSaved!=null&&typeof OboutInc.StatusPanel.OnLoadSaved=="function"&&OboutInc.StatusPanel.OnLoadSaved(b)}catch(c){}document.getElementById(OboutInc.StatusPanel.IframeName)==null&&setTimeout(function(){var b=document.createElement("iframe");b.width="1";b.height="1";b.name=OboutInc.StatusPanel.IframeName;b.id=OboutInc.StatusPanel.IframeName;b.style.display="";b.style.position="absolute";b.style.top="-800px";b.style.left="-800px";if(b.attachEvent)b.attachEvent("onload",OboutInc.StatusPanel.IframeLoaded);else b.addEventListener&&b.addEventListener("load",OboutInc.StatusPanel.IframeLoaded,true);document.body.appendChild(b);b.contentWindow.name=OboutInc.StatusPanel.IframeName;var c=document.getElementById(a).parentNode;while(c!=null){if(c.tagName&&c.tagName.toUpperCase()=="FORM")break;c=c.parentNode}OboutInc.StatusPanel.Form=c},0)};