﻿//necessario include /Includes/Script/MsgErro.js
validarMsgErro2('hdnErroHeader', 'ctl00_UcHeader1_sumValErro')                


//Rediciona usuario para pg de cadastro PF ou PJ
function novoAssinante() {
    var objHdnDrpLstId = document.getElementById('hdnDrpLstTipoID');

    if (objHdnDrpLstId == null)
        return;

    var objDrpLstTpAssinante = document.getElementById(objHdnDrpLstId.value);
    
    if (objDrpLstTpAssinante == null)
        return;



    if (objDrpLstTpAssinante.value == '1')
        window.location = '../NovoAssinante/frmCadastrar_Dados_PJ2.aspx';
    else
        window.location = '../NovoAssinante/frmCadastrar_Dados_PF2.aspx';

}

var intPosAtual = 0;
function AlteraClass(intSentido) {


    var objHdnImgOKId = document.getElementById('hdnImgOKID');
    if (objHdnImgOKId == null)
        return;

    //var objImgOkID = document.getElementById(objHdnImgOKId.value);
    var objImgOkID = document.getElementById('lnkNovoAss');
    
    if (objImgOkID == null)
        return;


    
//

var arrClass = new Array ( 
            'bevel iradius40 noglow noshade noshine',
            'bevel iradius30 noshade noshine',
            'bevel noshine',
            'bevel noshade',
            'bevel islinear',
            'bevel usemask iglowcolffffff iglowopac66 ishadecolffffff ibackcol00ccff ifillcol00aa66',
            'bevel islinear iglowopac50 ishadeopac75 iglowcolffcc00 ishadecolffcc00',
            'bevel usemask noshine noshade iglowopac50 iglowcol00cc00 ibackcolffaa00 ifillcolffff00',
            'bevel noshine islinear ishadeopac100 iglowcolff66ff ishadecolffffff',
            'bevel usemask iglowopac50 ishadeopac100 iglowcolffffff ishineopac50 ishadecolffffff ibackcolffffff',
            'bevel usemask iradius30 ishadecolffffff ibackcol000000',
            'bevel islinear iradius40',
            //
            'iwrapper',
            //
            'corner ishade50',
            'corner ishade50 ishadow20',
            'corner iradius16',
            'corner iradius24 ishadow33 inverse',
            'corner iradius8 ishade75 ishadow33',
            'corner iradius32 ishade50 ishadow25',
            'corner iradius48 ishade33',
            //
            'ialpha100',
            'ialpha75',
            'ialpha50',
            'ialpha25',
            'ialpha1',
            'ishift25',
            'ishift50',
            'ishift75',
            'ishift100');

    
    
    if(intSentido == 1)    
    {
       if(intPosAtual == (arrClass.length -1)) 
          intPosAtual = 0;
       else
          intPosAtual ++;
    }    
    else if(intSentido == 0)
    {
       if(intPosAtual == 0) 
          intPosAtual = (arrClass.length -1);
       else
          intPosAtual --;
     }   
     
    objImgOkID.className = arrClass[intPosAtual];
    //doTooltip(null,'<b>' + objImgOkID.className  + '</b>');

}
