function BrowseKeystore(){try{document.reqCertificateApplet.BrowseCertificate("c:\\",["jks"])&&(null!=document.getElementById("txtKeystore")?document.getElementById("txtKeystore").value=document.reqCertificateApplet.getCertificateFile():null!=document.getElementById("incMyDigitalCertificatesIncludetxtKeystore")&&(document.getElementById("incMyDigitalCertificatesIncludetxtKeystore").value=document.reqCertificateApplet.getCertificateFile()))}catch(a){JavaActiveMessage()}}
function GenerateFinalCertificate(){try{var a="";null!=document.getElementById("txtKeystore")?a=document.getElementById("txtKeystore").value:null!=document.getElementById("incMyDigitalCertificatesIncludetxtKeystore")&&(a=document.getElementById("incMyDigitalCertificatesIncludetxtKeystore").value);var b="";null!=document.getElementById("pwdPassword")?b=document.getElementById("pwdPassword").value:null!=document.getElementById("incMyDigitalCertificatesIncludepwdPassword")&&(b=document.getElementById("incMyDigitalCertificatesIncludepwdPassword").value);
var c="";null!=document.getElementById("hdnCertificate")?c=document.getElementById("hdnCertificate").value:null!=document.getElementById("incMyDigitalCertificatesIncludehdnCertificate")&&(c=document.getElementById("incMyDigitalCertificatesIncludehdnCertificate").value);"Error"!=document.reqCertificateApplet.getGeneratedCertificate(a,b,c)?null!=document.getElementById("hdnDownloadState")?document.getElementById("hdnDownloadState").value="true":null!=document.getElementById("incMyDigitalCertificatesIncludehdnDownloadState")&&
(document.getElementById("incMyDigitalCertificatesIncludehdnDownloadState").value="true"):null!=document.getElementById("hdnDownloadState")?document.getElementById("hdnDownloadState").value="false":null!=document.getElementById("incMyDigitalCertificatesIncludehdnDownloadState")&&(document.getElementById("incMyDigitalCertificatesIncludehdnDownloadState").value="false")}catch(d){JavaActiveMessage()}}
function BrowseDirectory(){try{document.reqCertificateApplet.BrowseDirectory("c:\\")&&(document.getElementById("txtDirectory").value=document.reqCertificateApplet.getDirectory())}catch(a){JavaActiveMessage()}}
function GenerateCertificateRequest(){try{$.vortalBlockUI.blockUI();var a=document.getElementById("hdnFullName").value,b=document.getElementById("hdnTitle").value,c=document.getElementById("hdnSerialNumber").value,d=document.getElementById("hdnEmail").value,e=document.getElementById("txtDirectory").value,f=document.getElementById("pwdCertificateRequestPassword").value;document.getElementById("hdnCertificateRequestData").value=document.reqCertificateApplet.GenerateCertificateRequest(a,"",b,"",c,"",
"","","","","",d,e,f)}catch(g){JavaActiveMessage()}finally{$.vortalBlockUI.unblockUI()}}function ValidationCompleted(a){null!=document.getElementById("divSignatureDIV")?Toggle("divSignatureDIV",!1):null!=document.getElementById("incMyDigitalCertificatesIncludedivSignatureDIV")&&Toggle("incMyDigitalCertificatesIncludedivSignatureDIV",!1)}
function CancelPassword(){null!=document.getElementById("divRequiredPasswordSection")?Toggle("divRequiredPasswordSection",!1):null!=document.getElementById("incMyDigitalCertificatesIncludedivRequiredPasswordSection")&&Toggle("incMyDigitalCertificatesIncludedivRequiredPasswordSection",!1)};
