
var f3s="velop3Login";var e8b=a0t(f3s,"pop:true");var g78=a0t(f3s,"noGzipMessage:true");var h0Y=e8b;function a0t(f3s,value){if(window.navigator.cookieEnabled){var ck=document.cookie;var g5R=ck.split("; ");for(var i=0;i<g5R.length;i++){var d6X=g5R[i].split("=");if(f3s==d6X[0]){var c7f=unescape(d6X[1]).split(";");for(var i=0;i<c7f.length;i++)
if(c7f[i]==value)return true;return false;}}}
return false;}
function b8X(){var e=false;var b6l=null;try{do{var d=new Date;var d7A="ptest_"+d.getTime();var g5w="test";b6l=window.open(g5w,d7A,"width=10,height=10,left=10000,top=10000",true);if(null==b6l||true==b6l.closed){e=true;break;}
b6l.close();b6l=null;}
while(false);}catch(ex){e=true;}
if(null!=b6l){try{if(!b6l.closed)b6l.close();}catch(ex){}}
return e;}
function f6q(){window.moveTo(0,0);if(document.all)
window.resizeTo(screen.availWidth,screen.availHeight);else if(document.layers||$){window.outerHeight=screen.availHeight-30;window.outerWidth=screen.availWidth-10;}}
function g33(){var email=$("email");var domain=$("domain");var account=$("account");var d4F=email.value.indexOf('@');if(d4F!=-1){$('atmailLoginPage').pop3host.value=email.value.substr(++d4F);$('atmailLoginPage').username.value=email.value.substr(0,--d4F);}else{$('atmailLoginPage').username.value=email.value;}
$('atmailLoginPage').password.value=$('formLogin').password.value;}
function g9K(){if(e8b){var h7g=T("Restore_window")+" ";var g5k="";var a4u="/v31a/"+sysTheme+"/images/window_restore.gif";}else{var h7g=T("Maximize_window")+" ";var g5k=T("Error_Maximize");var a4u="/v31a/"+sysTheme+"/images/window_maximize.gif";}
$("idPopUp").innerHTML="<a href='#' title='"+g5k+"' style='color:white; padding:3px;'>"+h7g+"</a><img src='"+a4u+"' width='20px' height='20px' align='absmiddle' border='0' style='padding:5px 3px;'/>";var g67=$("idPannelHasNoGZIPSupport");$("gzipMessage").checked=g78;if(!hasGZIP_Support&&isIE&&!g78){$("iconNotifyGzipMessage").style.display="none";g67.style.display="block";}else if(!hasGZIP_Support&&isIE&&g78){$("iconNotifyGzipMessage").style.display="block";g67.style.display="none";}else{if($('email').value.length>0)
$('formLogin').password.focus();else
$('formLogin').email.focus();}}
function c4i(b48){$("idPannelHasNoGZIPSupport").style.display=(b48)?"block":"none";$("iconNotifyGzipMessage").style.display=(b48)?"none":"block";}
function e3g(b48){g9F(f3s,{noGzipMessage:((b48)?"true":"false")});g78=a0t(f3s,"noGzipMessage:true");c4i(false);}
function c2O(b5s){if(b5s.innerWidth)
return b5s.innerWidth;else if(b5s.document.documentElement&&document.documentElement.clientWidth)
return b5s.document.documentElement.clientWidth;else if(b5s.document.body)
return b5s.document.body.clientWidth;return 0;}
function g28(b5s){if(b5s.innerHeight)
return b5s.innerHeight;else if(b5s.document.documentElement&&document.documentElement.clientWidth)
return b5s.document.documentElement.clientHeight;else if(b5s.document.body)
return b5s.document.body.clientHeight;return 0;}
function b8E(){var h0n=g28(window)-7;var b5Z=c2O(window)-7;var a2m=h0n/2-300/2;var g36=b5Z/2-450/2;$("hideALL").style.width=b5Z+"px";$("hideALL").style.height=h0n+"px";$("hideALL").style.display='block';$("splash").style.top=a2m+"px";$("splash").style.left=g36+"px";$("splash").style.display='block';$("email").blur();var f1w=c9e("systemVersion");var title;var e5y;if(!f1w){title=T("First_run");e5y=T("Wait_install");}else if(retrieve_version!=f1w){title=T("New_version_avaliable");e5y=T("Wait_update");}else{title=T("Wait_a_moment");e5y=T("Wait_normal");}
$("splashText").innerHTML=title+". <br>"+e5y+".";}
function c9e(f3s){var g0V=document.cookie;var e0C=g0V.split("; ");var d2N=null;for(var i=0;i<e0C.length;i++){var c4=e0C[i];var f9n=c4.indexOf("=");var b2Q=c4.substring(0,f9n);var a1g=c4.substring((f9n+1),c4.length);if(b2Q==f3s){d2N=a1g;break;}}
return d2N;}
function d44(){var email=$("email");var domain=$("domain");var account=$("account");var d4F=email.value.indexOf('@');if(d4F!=-1){domain.value=email.value.substr(++d4F);account.value=email.value.substr(0,--d4F);}else
account.value=email.value;}
function a2W(theURL,h7R,features){window.open(theURL,h7R,features);}
function h27(b48){g9F(f3s,{pop:((b48)?"true":"false")});}
function h7t(){if(h0Y){opener.location.replace("/v31a/loadMain.htm");window.close();}else
window.location.replace("/v31a/loadMain.htm");}
function d07(){var w=(screen.availWidth/2)-(720/2);var h=(screen.availHeight/2)-(420/2);a2W("http://www.inova.com.br/velop/email/tour/faq.htm","faq","width=720,height=420,top="+w+",left="+h+",scrollbars=1");}
function g5D(){var w=(screen.availWidth/2)-(450/2);var h=(screen.availHeight/2)-(160/2);a2W("/cgi-bin/v31a.cgi?ifOrig=IfTpl&todo=getTpl&tpl=requirements&type=html&dominio="+d7P,"requisitos","width=450,height=160,top="+w+",left="+h+",scrollbars=1");}
function f0M(){var w=(screen.availWidth/2)-(450/2);var h=(screen.availHeight/2)-(160/2);if($("email").value.length==0){a7b(T("Password_recover_email_empty"));return false;}
d44();var account=$("account").value;var domain=$("domain").value;a2W("/cgi-bin/v31a.cgi?ifOrig=IfLostPass&todo=hasAltEmail&conta="+account+"&dominio="+domain,"senha","width=450,height=160,top="+w+",left="+h+",scrollbars=1");}
function h6G(){var form=$("formChangePassword");if(!form.password.value)
a7b(T("Password_empty"));else if(!form.password2.value)
a7b(T("Password2_empty"));else if(form.password.value!=form.password2.value)
a7b(T("Password_Password2_notEqual"));form.submit();}
function a9s(h9){var s='';var i=0;for(var f3v in h9){s+=f3v+'=['+h9[f3v]+'],  ';if(++i==4){i=0;s+='\n';}}
alert('alertvar:\n'+s,833);}
function $(d8u){return document.getElementById(d8u);}
g5M.prototype.constructor=g5M;function g5M(){this.a8N=function(){$('forms').style.visibility='hidden';if(this.todo=='logon'){this.todo='question';$('field2').innerHTML=T("Pass_question")+':';$('value2').innerHTML='<select name="dica" id="dica" class="compoTextBox">'+' <option value="">'+T("Set_question")+'</option>'+' <option value="1">'+T("Pass_question_1")+'?</option>'+' <option value="2">'+T("Pass_question_2")+'?</option>'+' <option value="3">'+T("Pass_question_3")+'?</option>'+
(sysTheme=="gol"?' <option value="4">'+T("Pass_question_4")+'?</option>':"")+'</select>';$('field3').innerHTML=T("Pass_answer")+':';$('value3').innerHTML='<input type="text" size="25" name="dicaAnswer" id="dicaAnswer" class="compoTextBox" />';$('forgot').innerHTML=T("Go_back");$('submitter').innerHTML=T("Send_answer");}else{this.todo='logon';$('field2').innerHTML=T("Password")+':';$('value2').innerHTML='<input type="password" id="password" name="password" class="compoTextBox" style="width:80px;" onkeypress="if (event.keyCode == 13) {  this.blur(); d44(); b8E();$(\'formLogin\').submit(); }">';$('field3').innerHTML='&nbsp;';$('value3').innerHTML='&nbsp;';$('forgot').innerHTML=T("forgot_password")+'!';$('submitter').innerHTML=T("Logon_access");}
$('forms').style.visibility='visible';$('email').focus();}
this.send=function(){d44();if(this.todo=='logon'){b8E();$('formLogin').submit();}else if(this.todo=='changePass'){if($("email").value==''){alert(T("Type_valid_email"));$("email").focus();return;}
if($("formLogin").password.value==''||$("passwordConfirm").value==''){alert(T("Need_passwd_new"));$("formLogin").password.focus();return;}
if($("formLogin").password.value!=$("passwordConfirm").value){alert(T("New_passwds_differ"));$("formLogin").password.focus();return;}
var h6i='<?xml version="1.0"?><v3><op id="alterPasswd'+'" class="CtrlPasswd" method="alterPasswd">'+'<param id="new"><\![CDATA['+$("formLogin").password.value+']'+']></param>'+'</op></v3>';var d21='/cgi-bin/v31a.cgi?I='+(new Date()).getTime()+'&V=&ifOrig=IfXml&key='+$("key").value+'&account='+$("email").value.replace(/@.*/,'')+'&domain='+$("domain").value+'&xmlData='+encodeURIComponent(h6i);getXDocFast(d21,"NEW_D",[this,"e7x"],false,true);}else if(this.todo=='question'){if($("email").value==''){alert(T("Type_valid_email"));$("email").focus();return;}
if(!($("dica").selectedIndex>0)){alert(T("Set_question"));$("dica").focus();return;}
if($("dicaAnswer").value==''){alert(T("Type_answer"));$("dicaAnswer").focus();return;}
var h6i='<?xml version="1.0"?><v3><op id="ask'+'" class="CtrlPasswd" method="pwChallenge">'+'<param id="userAnswer"><\![CDATA['+$("dicaAnswer").value+']'+']></param>'+'</op></v3>';var d21='/cgi-bin/v31a.cgi?I='+(new Date()).getTime()+'&V=&ifOrig=IfXml&account='+$("email").value.replace(/@.*/,'')+'&domain='+$("domain").value+'&xmlData='+encodeURIComponent(h6i);getXDocFast(d21,"NEW_D",[this,"e7x"],false,true);}}
this.e7x=function(c0j){var a5a=c0j.getElementsByTagName('status');if(!a5a.length||parseInt(e0(a5a[0]))!=200){if(this.todo=='changePass'){alert(T("Password_change_failed"));}else if(this.todo=='question'){var msg=T("Bad_answer");alert(msg);$("dicaAnswer").focus();}}else{if(this.todo=='changePass'){this.todo='logon';$('field3').innerHTML='&nbsp;';$('value3').innerHTML='&nbsp;';$('forgot').innerHTML=T("forgot_password")+'!';$('submitter').innerHTML=T("Logon_access");$("formLogin").submit();}else if(this.todo=='question'){a5a=c0j.getElementsByTagName("idConta");var idConta,key;if(a5a.length){idConta=e0(a5a[0]);key=e0(a5a[1]);$("idConta").value=idConta;if(key&&key!="")$("key").value=key;var date=new Date();date.setTime(date.getTime()-(1000));var expires="; expires="+date.toGMTString();document.cookie=idConta+"-auth=null; domain="+$('HTTP_HOST').value+"; path=/; "+expires;document.cookie=idConta+"-percall=; domain="+$('HTTP_HOST').value+"; path=/; "+expires;}
a5a=c0j.getElementsByTagName("key");if(a5a.length){$("key").value=e0(a5a[0]);}
if($("dica").options[$("dica").selectedIndex].value="4"){$('forms').style.visibility='hidden';this.todo='changePass';$('field2').innerHTML=T("New_passwd")+':';$('value2').innerHTML='<input type="password" id="password" name="password" class="compoTextBox" style="width:80px;" onkeypress="if (event.keyCode == 13) {  this.blur(); d44(); b8E();$(\'formLogin\').submit(); }">';$('field3').innerHTML=T("Retype_new_passwd")+':';$('value3').innerHTML='<input type="password" id="passwordConfirm" name="passwordConfirm" class="compoTextBox" style="width:80px;" onkeypress="if (event.keyCode == 13) {  this.blur(); d44(); b8E();$(\'formLogin\').submit(); }">';$('forgot').innerHTML=T("Go_back");$('submitter').innerHTML=T("Password_change");$('forms').style.visibility='visible';$('password').focus();}else{$("formLogin").submit();}}}}}
var c5B;function c6e(){c5B=new g5M();c5B.a8N();}
function b3m(){}
function h3G(){}