| <apex:page showHeader="false" controller="PBIAuthorizationController" action="{!init}" sidebar="false"> | 
|     <script type="text/javascript"> | 
|         function init() { | 
|             var ISUser = '{!ISUser}'; | 
|             var PBIId = '{!PBIId}'; | 
|             var userid = '{!userid}'; | 
|             var UserName = '{!UserName}'; | 
|             var str = ''; | 
|             if(!ISUser){ | 
|                 return; | 
|             } | 
|             if(PBIId){ | 
|                 str += '/'+PBIId; | 
|             }else{ | 
|                 str += '/a3L/e?retURL=%2F'+userid +'&CF00N10000008qhIq_lkid='+ userid | 
|                 + '&CF00N10000008qhIq='+ UserName +'&Name=*'; | 
|             } | 
|             window.open(str,'_self'); | 
|         } | 
|     </script> | 
|     <body onload="init()"> | 
|         <apex:pageMessages /> | 
|     </body> | 
| </apex:page> |