function getViewportHeight(){if(typeof window.innerHeight!="undefined"){return window.innerHeight}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientHeight!="undefined"&&document.documentElement.clientHeight!=0){return document.documentElement.clientHeight}else{return document.getElementsByTagName("body")[0].clientHeight}}}function getViewportWidth(){if(typeof window.innerWidth!="undefined"){return window.innerWidth}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){return document.documentElement.clientWidth}else{return document.getElementsByTagName("body")[0].clientWidth}}}function getViewportScrollX(){var scrollX=0;if(document.documentElement&&document.documentElement.scrollLeft){scrollX=document.documentElement.scrollLeft}else{if(document.body&&document.body.scrollLeft){scrollX=document.body.scrollLeft}else{if(window.pageXOffset){scrollX=window.pageXOffset}else{if(window.scrollX){scrollX=window.scrollX}}}}return scrollX}function getViewportScrollY(){var scrollY=0;if(document.documentElement&&document.documentElement.scrollTop){scrollY=document.documentElement.scrollTop}else{if(document.body&&document.body.scrollTop){scrollY=document.body.scrollTop}else{if(window.pageYOffset){scrollY=window.pageYOffset}else{if(window.scrollY){scrollY=window.scrollY}}}}return scrollY}function coBrandWindowOpen(id,cb){if(cb=="BCB"){for(i=1;i<=19;i++){if(document.getElementById("f"+i).style.display!="none"){document.getElementById("f"+i).style.display="none"}}}else{if(cb=="ACB"){for(i=1;i<=22;i++){if(document.getElementById("ACB"+i).style.display!="none"){document.getElementById("ACB"+i).style.display="none"}}}}var theBody=document.documentElement;var scTop=parseInt(theBody.scrollTop,10)-40;var scLeft=parseInt(theBody.scrollLeft,10);var fullHeight=getViewportHeight();var fullWidth=getViewportWidth();var scrollx=getViewportScrollX();var scrolly=getViewportScrollY();var titleBarHeight=parseInt(document.getElementById(id).offsetHeight,10);var height=200;var width=545;document.getElementById(id).style.marginTop=(scrolly-(fullHeight/2))+"px";document.getElementById(id).style.left=(scLeft+((fullWidth-width)/2))+"px";document.getElementById(id).style.display=""}function coBrandWindowClose(id){document.getElementById(id).style.display="none"}function checkBCB(formdetails){var bcbf=document.BCB;if(bcbf.HardCodedRemoteBackupServer.value==""&&!bcbf.DefaultRemoteBackupServer.checked){alert('Please enter the URL(s) of your remote backup server(s) or select the "Skip this Setting" checkbox');bcbf.HardCodedRemoteBackupServer.focus();return false}if(bcbf.ChangeBackupVersion[1].checked&&bcbf.BackupVersionCount.value==""){alert("Please enter the maximum number of Versions");bcbf.BackupVersionCount.focus();return false}if(bcbf.ChangeBackupVersion[1].checked&&bcbf.BackupVersionCount.value!=""){if(!isValidNumber(bcbf.BackupVersionCount.value)){alert("Please enter a natural number (1,2,...)in this field");bcbf.BackupVersionCount.value="";bcbf.BackupVersionCount.focus();return false}else{if(bcbf.BackupVersionCount.value>999||bcbf.BackupVersionCount.value<1){alert("Please enter a natural number between 1 & 999 in this field");bcbf.BackupVersionCount.value="";bcbf.BackupVersionCount.focus();return false}}}if(bcbf.ChangeFullBackupVersion[1].checked&&bcbf.FullBackupVersionCount.value==""){alert("Please enter the maximum number of Full Backups");bcbf.FullBackupVersionCount.focus();return false}if(bcbf.ChangeFullBackupVersion[1].checked&&bcbf.FullBackupVersionCount.value!=""){if(!isValidNumber(bcbf.FullBackupVersionCount.value)){alert("Please enter a natural number (1,2,...) in this field");bcbf.FullBackupVersionCount.value="";bcbf.FullBackupVersionCount.focus();return false}else{if(bcbf.FullBackupVersionCount.value>999||bcbf.FullBackupVersionCount.value<1){alert("Please enter a natural number between 1 & 999 in this field");bcbf.FullBackupVersionCount.focus();return false}}}if(bcbf.PresetSenderEmailId[0].checked&&bcbf.PresetSenderEmailIdTxt.value==""){alert("Please enter an email address here");bcbf.PresetSenderEmailIdTxt.focus();return false}if(bcbf.PresetSenderEmailId[0].checked&&bcbf.PresetSenderEmailIdTxt.value!=""){var senderEmailId=bcbf.PresetSenderEmailIdTxt.value;if(emailCheck(senderEmailId)==false){bcbf.PresetSenderEmailIdTxt.focus();return false}}if(bcbf.SupportEmailId.value==""){alert("Please enter an email address here");bcbf.SupportEmailId.focus();return false}else{var SupportEmailId=bcbf.SupportEmailId.value;if(emailCheck(SupportEmailId)==false){bcbf.SupportEmailId.focus();return false}}if(bcbf.PurchaseOnlineUrl.value==""){alert("Please enter a valid URL here");bcbf.PurchaseOnlineUrl.focus();return false}if(bcbf.OnlineFeedbackUrl.value==""){alert("Please enter a valid URL here");bcbf.OnlineFeedbackUrl.focus();return false}if(!bcbf.WindowsClientOnly.checked&&!bcbf.WindowsClientOnly.checked){alert("Please select atleast one build");bcbf.WindowsClientOnly.focus();return false}if(formdetails==1){return checkACB()}return true}function activaterembkpserv(triger,ID){if(document.getElementById(triger).checked){document.getElementById(ID).disabled=true;document.getElementById(ID).className="disabledbg"}else{document.getElementById(ID).disabled=false;document.getElementById(ID).className=""}}function activateinputbox(ID){document.getElementById(ID).disabled=false;document.getElementById(ID).className=""}function deactivateinputbox(ID){document.getElementById(ID).disabled=true;document.getElementById(ID).className="disabledbg"}function disableDiscoverySettings(){document.getElementById("DiscoveryConfigurationSettings").style.display="none";document.getElementById("EnableMulticastDiscovery").disabled=true;document.getElementById("MulticastDiscovery").disabled=true;document.getElementById("TCPDiscovery").disabled=true;document.getElementById("EnableTCPScan").disabled=true;document.getElementById("TCPScan").disabled=true;document.getElementById("EnableUDPScan").disabled=true;document.getElementById("UDPScan").disabled=true}function enableDiscoverySettings(){document.getElementById("DiscoveryConfigurationSettings").style.display="";document.getElementById("EnableMulticastDiscovery").disabled=false;document.getElementById("MulticastDiscovery").disabled=false;document.getElementById("TCPDiscovery").disabled=false;document.getElementById("EnableTCPScan").disabled=false;document.getElementById("TCPScan").disabled=false;document.getElementById("EnableUDPScan").disabled=false;document.getElementById("UDPScan").disabled=false;document.getElementById("EnableMulticastDiscovery").className="";document.getElementById("MulticastDiscovery").className="";document.getElementById("TCPDiscovery").className="";document.getElementById("EnableTCPScan").className="";document.getElementById("TCPScan").className="";document.getElementById("EnableUDPScan").className="";document.getElementById("UDPScan").className=""}function mcd(){if(!document.getElementById("EnableMulticastDiscovery").checked){document.getElementById("mcd").style.display="none";document.getElementById("MulticastDiscovery").disabled=true}else{document.getElementById("mcd").style.display="";document.getElementById("MulticastDiscovery").disabled=false}}function tcp(){if(!document.getElementById("EnableTCPScan").checked){document.getElementById("tcp").style.display="none";document.getElementById("TCPScan").disabled=true}else{document.getElementById("tcp").style.display="";document.getElementById("TCPScan").disabled=false}}function udp(){if(!document.getElementById("EnableUDPScan").checked){document.getElementById("udp").style.display="none";document.getElementById("UDPScan").disabled=true}else{document.getElementById("udp").style.display="";document.getElementById("UDPScan").disabled=false}}function disableAdvancedPluginTab(){document.getElementById("AdvancedPluginOptionsRow1").style.display="none";document.getElementById("AdvancedPluginOptionsRow2").style.display="none";document.getElementById("AdvancedPluginTab1").disabled=true;document.getElementById("AdvancedPluginTab2").disabled=true}function enableAdvancedPluginTab(){document.getElementById("AdvancedPluginOptionsRow1").style.display="";document.getElementById("AdvancedPluginOptionsRow2").style.display="";document.getElementById("AdvancedPluginTab1").disabled=false;document.getElementById("AdvancedPluginTab2").disabled=false}function colorCode(inputStr){if(inputStr.match(/^(#)?[0-9a-fA-F]{3,6}$/)){return true}else{return false}}function changeColor(branding){var flag=0;if(!colorCode(document.getElementById("ReplaceRedColor").value)){alert("Please enter a valid color code");document.getElementById("ReplaceRedColor").focus();return false;flag=0}else{flag=flag+1}if(!colorCode(document.getElementById("ReplaceBlackColor").value)){alert("Please enter a valid color code");document.getElementById("ReplaceBlackColor").focus();return false;flag=0}else{flag=flag+1}if(flag==2){WinOpen("backup-job.html","PreviewPage",1010,475,0);return true}if(!colorCode(document.getElementById("ReplaceMenuColor").value)){alert("Please enter a valid color code");document.getElementById("ReplaceMenuColor").focus();return false;flag=0}else{flag=flag+1}if(flag==2){WinOpen("backup-job.html","PreviewPage",1010,475,0);return true}else{return false}}function replaceColor(){var branding=opener.document.getElementById("branding").value;if(branding=="RB"){document.getElementById("companyLogo").src="../images/co-branding/company-logo.gif";document.getElementById("companyLogo").width=280}var red=opener.document.getElementById("ReplaceRedColor").value;var black=opener.document.getElementById("ReplaceBlackColor").value;var menu=opener.document.getElementById("ReplaceMenuColor").value;document.getElementById("replaceRed1").bgColor=red;document.getElementById("replaceRed2").bgColor=red;document.getElementById("replaceBlack1").bgColor=black;for(i=1;i<=8;i++){document.getElementById("sgMenuItem"+i).style.color=menu}document.getElementById("sgMenuItem8").style.color=menu}function checkACB(){var bcbf=document.BCB;if(bcbf.DiscoveryConfiguration[1].checked){if(bcbf.EnableMulticastDiscovery.checked&&bcbf.MulticastDiscovery.value!=""){if(isNaN(bcbf.MulticastDiscovery.value)){alert("Please enter a number between 1 and 999");bcbf.MulticastDiscovery.focus();return false}else{if(bcbf.MulticastDiscovery.value<1||bcbf.MulticastDiscovery.value>999){alert("Please enter a number between 1 and 999");bcbf.MulticastDiscovery.focus();return false}}}else{if(bcbf.EnableMulticastDiscovery.checked&&bcbf.MulticastDiscovery.value==""){alert("Please fill the time interval for multicast discovery");bcbf.MulticastDiscovery.focus();return false}}if(bcbf.EnableTCPScan.checked&&bcbf.TCPScan.value!=""){if(isNaN(bcbf.TCPScan.value)){alert("Please enter a number between 1 and 999");bcbf.TCPScan.focus();return false}else{if(bcbf.TCPScan.value<1||bcbf.TCPScan.value>999){alert("Please enter a number between 1 and 999");bcbf.TCPScan.focus();return false}}}else{if(bcbf.EnableTCPScan.checked&&bcbf.TCPScan.value==""){alert("Please fill the time interval for TCP Scan");bcbf.TCPScan.focus();return false}}if(bcbf.EnableUDPScan.checked&&bcbf.UDPScan.value!=""){if(isNaN(bcbf.UDPScan.value)){alert("Please enter a number between 1 and 999");bcbf.UDPScan.focus();return false}else{if(bcbf.UDPScan.value<1||bcbf.UDPScan.value>999){alert("Please enter a number between 1 and 999");bcbf.UDPScan.focus();return false}}}else{if(bcbf.EnableUDPScan.checked&&bcbf.UDPScan.value==""){alert("Please fill the time interval for UDP Scan");bcbf.UDPScan.focus();return false}}}if(bcbf.ProductName.value==""){alert("Please enter the name of the product");bcbf.ProductName.focus();return false}if(bcbf.CompanyName.value==""){alert("Please enter your company name");bcbf.CompanyName.focus();return false}if(bcbf.WebConsoleTitle.value==""){alert("Please enter title for the webconsole");bcbf.WebConsoleTitle.focus();return false}if(bcbf.licenseContent.value==""){alert("Please enter your license details");bcbf.licenseContent.focus();return false}if(!colorCode(document.BCB.ReplaceRedColor.value)){alert("Please enter a valid color code");document.BCB.ReplaceRedColor.focus();return false}if(!colorCode(document.BCB.ReplaceBlackColor.value)){alert("Please enter a valid color code");document.BCB.ReplaceBlackColor.focus();return false}return true}function colorchart(event){var e=event||window.event;document.getElementById("colorchart").style.top=e.clientX;document.getElementById("colorchart").style.left=e.clientY}function chooseColor(bgColor){if(window.name=="ReplaceRed"){opener.document.getElementById("ReplaceRedColor").value=bgColor;opener.document.getElementById("sampleredcolor").style.background=bgColor;self.close()}else{if(window.name=="ReplaceBlack"){opener.document.getElementById("ReplaceBlackColor").value=bgColor;opener.document.getElementById("sampleblackcolor").style.background=bgColor;self.close()}else{if(window.name=="LoginBGColor"){opener.document.getElementById("LoginBackgroundColor").value=bgColor;opener.document.getElementById("samplelogincolor").style.background=bgColor;self.close()}else{if(window.name=="ReplaceMenuColor"){opener.document.getElementById("ReplaceMenuColor").value=bgColor;opener.document.getElementById("sampleMenuColor").style.background=bgColor;self.close()}}}}}function displayBuildTypes(){document.getElementById("RHRow").style.display="";document.getElementById("MDKRow").style.display="";document.getElementById("DBNRow").style.display="";document.getElementById("FBSDRow").style.display="";document.getElementById("BldIntRow").style.display="none"}function PreviewLoginStyle(){WinOpen("./cobranding/loginpreview.php","PreviewPage",1010,475,0);return true}function ChangeLoginStyle(){var branding=opener.document.getElementById("branding").value;if(branding=="RB"){document.getElementById("companyLogo").src="../images/co-branding/company-logo.gif";document.getElementById("companyLogo").width=280}if(opener.document.frmBrand.LoginConsoleBg[1].checked){document.getElementById("loginstyle1").bgColor=opener.document.frmBrand.LoginBackgroundColor.value;document.getElementById("loginstyle2").bgColor=opener.document.frmBrand.LoginBackgroundColor.value}}function EnableDefaultLicenseOption(btype){if(btype=="BCB"){}document.getElementById("customLicenseContent").disabled=true}function EnableCustomLicenseOption(btype){var confirmCustomLicense=true;if(confirmCustomLicense==true){if(btype=="BCB"){if(document.getElementById("hidBrandType").value=="1"){document.getElementById("CompanyName").disabled=true}}document.getElementById("customLicenseContent").disabled=false}else{EnableDefaultLicenseOption("BCB");document.getElementById("LicenseAgreementType1").checked=true}}function ShowAlertsTxtBox(show_val){if(show_val=="1"){document.getElementById("alertTxtBox").style.display="";document.getElementById("FullBackupVersionCount").disabled=true;document.getElementById("ChangeFullBackupVersion1").style.display="none";document.getElementById("ChangeFullBackupVersion2").style.display="none"}else{document.getElementById("alertTxtBox").style.display="none";document.getElementById("ChangeFullBackupVersion1").style.display="";document.getElementById("ChangeFullBackupVersion2").style.display="";if(document.getElementById("ChangeFullBackupVersion2").checked){document.getElementById("FullBackupVersionCount").disabled=false}}}function winpopup(url,name,x,y,z){var posX=(screen.width/2)-(x/2);var posY=(screen.height/2)-(y/2);var winPref="width="+x+",height="+y+",innerWidth="+x+",innerHeight="+y+",left="+posX+",top="+posY+",screenX="+posX+",screenY="+posY+",toolbar="+z+",location=0,directories=0,status="+z+",menubar="+z+",scrollbars=1,resizable=0,width="+x+",height="+y;var remoteWin=null;remoteWin=window.open(url,name,winPref);if(window.focus){remoteWin.focus()}}function SetLoginBgType(loginBgType){document.getElementById("LoginBackgroundType").value=loginBgType;FindBgType()}function FindBgType(){if((document.getElementById("hidRepeatBld").value=="1")&&(document.getElementById("loginMode").value=="Partner")){}else{if((document.getElementById("LoginBackgroundType").value)=="0"){document.getElementById("LoginTileImage").disabled=false;document.getElementById("LoginBackgroundColor").disabled=true}else{document.getElementById("LoginTileImage").disabled=true;document.getElementById("LoginBackgroundColor").disabled=false}}}function DisableTrayAlerts(){var disableTray;if(document.getElementById("disableTrayAlert2").checked){if(document.getElementById("NoTrayAlert1").checked){disableTray=1}else{if(document.getElementById("NoTrayAlert2").checked){disableTray=2}else{if(document.getElementById("NoTrayAlert3").checked){disableTray=3}}}document.getElementById("trNoTrayAlerts").style.display=""}else{disableTray=0;document.getElementById("trNoTrayAlerts").style.display="none";document.getElementById("txtDisableTrayAlert").value=0}document.getElementById("txtDisableTrayAlert").value=disableTray}function SkipCompanyLogo(){if(document.getElementById("HideProductLogo").checked){document.getElementById("ProductLogo").disabled=true;document.getElementById("hidSkipProductLogo").value="1"}else{document.getElementById("ProductLogo").disabled=false;document.getElementById("hidSkipProductLogo").value="0"}}function EnableAllModeAlert(id){if(document.getElementById(id).checked){if(document.getElementById("txtAllModeAlertShown").value!="1"){document.getElementById("txtAllModeAlertShown").value=1;ShowAllModeAlert("AllModeAlert")}}}function ShowAllModeAlert(id){var theBody=document.documentElement;var scTop=parseInt(theBody.scrollTop,10);var scLeft=parseInt(theBody.scrollLeft,10);var fullHeight=getViewportHeight();var fullWidth=getViewportWidth();var titleBarHeight=parseInt(document.getElementById(id).offsetHeight,10);var height=500;var width=700;document.getElementById(id).style.top=(scTop+((fullHeight-(height+titleBarHeight))/2))+"px";document.getElementById(id).style.left=(scLeft+((fullWidth-width)/2))+"px";document.getElementById(id).style.display=""}function SetAutoUpdateSrvr(){var hrdBkpSrvrNams=trim(document.getElementById("HardCodedRemoteBackupServer").value);var defUpBkpSrvrNam=(hrdBkpSrvrNams!="")?hrdBkpSrvrNams.split(","):"";var enableAutoUpdate=((document.getElementById("opAutoUpdateEnableYes").checked)?1:0);var defaultSrvrSel=((document.getElementById("opAutoUpdateDefault").checked)?1:0);if(enableAutoUpdate==0){document.getElementById("trYesBkupSrvr").style.display="none";document.getElementById("trYesBkupSrvrSelect").style.display="none";document.getElementById("trNoBkupSrvr").style.display="none";document.getElementById("txtUpdateBkpSrvrNam").value="";document.getElementById("enableAutoUpdate").value=0;document.getElementById("updateSrvrSelected").value=0}else{if(document.getElementById("DefaultRemoteBackupServer").checked){document.getElementById("trYesBkupSrvr").style.display="none";document.getElementById("trYesBkupSrvrSelect").style.display="none";document.getElementById("trNoBkupSrvr").style.display=""}else{document.getElementById("trYesBkupSrvr").style.display="";document.getElementById("trYesBkupSrvrSelect").style.display="";document.getElementById("trYesBkupSrvr").style.display="";document.getElementById("trYesBkupSrvrSelect").style.display="";if(defaultSrvrSel==1){document.getElementById("txtUpdateBkpSrvrNam1").disabled=false;document.getElementById("trNoBkupSrvr").style.display="none";if(hrdBkpSrvrNams!=""){document.getElementById("txtUpdateBkpSrvrNam1").value=defUpBkpSrvrNam[0]}else{document.getElementById("txtUpdateBkpSrvrNam1").value=""}document.getElementById("txtUpdateBkpSrvrNam1").focus();document.getElementById("txtUpdateBkpSrvrNam").value=document.getElementById("txtUpdateBkpSrvrNam1").value;document.getElementById("updateSrvrSelected").value=1}else{document.getElementById("txtUpdateBkpSrvrNam1").disabled=true;document.getElementById("trNoBkupSrvr").style.display="";document.getElementById("txtUpdateBkpSrvrNam2").focus();document.getElementById("txtUpdateBkpSrvrNam").value=document.getElementById("txtUpdateBkpSrvrNam2").value;document.getElementById("updateSrvrSelected").value=0}document.getElementById("enableAutoUpdate").value=1}}}function SetHelpDocs(id){if(document.getElementById("HelpDocsOptionsNO").checked){document.getElementById("txtHelpDocURL").disabled=true;document.getElementById("trHelpDocsUrlAlert").style.display="none"}else{document.getElementById("txtHelpDocURL").disabled=false;if(id!="txtHelpDocURL"){document.getElementById("txtHelpDocURL").focus()}document.getElementById("trHelpDocsUrlAlert").style.display=""}}function SetWebConsoleUser(pID){if(document.getElementById("opWebConsUsrNamNO").checked){document.getElementById("trWebConsUsrNam").style.display="none";document.getElementById("trWebConsPasswd").style.display="none"}else{document.getElementById("trWebConsUsrNam").style.display="";document.getElementById("trWebConsPasswd").style.display="";if((pID!="txtWebConsUsrNam")&&(pID!="txtWebConsPaswd")){document.getElementById("txtWebConsUsrNam").focus()}}}function CheckPasswodProtection(){if(document.getElementById("optPasswdProtect1").checked){document.getElementById("txtPresetEncryptSize").value=1;document.getElementById("cmbEncryptKeySize").disabled=false;document.getElementById("optPasswdProtect3").disabled=false;document.getElementById("optPasswdProtect4").disabled=false}else{document.getElementById("txtPresetEncryptSize").value=0;document.getElementById("cmbEncryptKeySize").disabled=true;document.getElementById("optPasswdProtect3").disabled=true;document.getElementById("optPasswdProtect4").disabled=true}}function SetInstallLocation(){if(document.getElementById("optWinYes").checked){document.getElementById("txtModifyWinInstall").value=0;document.getElementById("txtWinModInstallCmpName").disabled=true;document.getElementById("txtWinModInstallPrdName").disabled=true}else{document.getElementById("txtModifyWinInstall").value=1;document.getElementById("txtWinModInstallCmpName").disabled=false;document.getElementById("txtWinModInstallPrdName").disabled=false;document.getElementById("txtWinModInstallCmpName").focus()}if(document.getElementById("optLinuxYes").checked){document.getElementById("txtModifyLinuxInstall").value=0;document.getElementById("txtLinuxModInstallCmpName").disabled=true;document.getElementById("txtLinuxModInstallPrdName").disabled=true}else{document.getElementById("txtModifyLinuxInstall").value=1;document.getElementById("txtLinuxModInstallCmpName").disabled=false;document.getElementById("txtLinuxModInstallPrdName").disabled=false;document.getElementById("txtLinuxModInstallCmpName").focus()}}function ProcessName(strProcess,osType,strType){var strProcessed;if((osType==1)&&(strType==1)){strProcessed=strProcess.replace(new RegExp(/[^a-zA-Z0-9s _\-]/g),"")}else{if((osType==1)&&(strType==2)){strProcessed=strProcess.replace(new RegExp(/[^a-zA-Z0-9.s_\-]/g),"")}else{if((osType==2)&&(strType==1)){strProcessed=strProcess.replace(new RegExp(/[^a-zA-Z0-9s_\-]/g),"")}else{if((osType==2)&&(strType==2)){strProcessed=strProcess.replace(new RegExp(/[^a-zA-Z0-9s_\-]/g),"")}}}}return strProcessed}function SetDefaultInstallLocation(){var installWinCmpName=ProcessName(trim(document.getElementById("CompanyName").value),1,1);var installWinPrdName=ProcessName(trim(document.getElementById("ProductName").value),1,2);var installLinCmpName=ProcessName(trim(document.getElementById("CompanyName").value),2,1);var installLinPrdName=ProcessName(trim(document.getElementById("ProductName").value),2,2);document.getElementById("txtWinInstallCmpName").value=installWinCmpName;document.getElementById("txtWinInstallPrdName").value=installWinPrdName;document.getElementById("txtWinModInstallCmpName").value=installWinCmpName;document.getElementById("txtWinModInstallPrdName").value=installWinPrdName;document.getElementById("txtLinuxInstallCmpName").value=installLinCmpName;document.getElementById("txtLinuxInstallPrdName").value=installLinPrdName;document.getElementById("txtLinuxModInstallCmpName").value=installLinCmpName;document.getElementById("txtLinuxModInstallPrdName").value=installLinPrdName}function ltrim(argvalue){if(argvalue!=""){while(1){if(argvalue.substring(0,1)!=" "){break}argvalue=argvalue.substring(1,argvalue.length)}}return argvalue}function rtrim(argvalue){if(argvalue!=""){while(1){if(argvalue.substring(argvalue.length-1,argvalue.length)!=" "){break}argvalue=argvalue.substring(0,argvalue.length-1)}}return argvalue}function trim(argvalue){if(argvalue!=""){var tmpstr=ltrim(argvalue);return rtrim(tmpstr)}else{return argvalue}}function CheckApplicationOrService(){if(document.getElementById("InstallWindowsAsService2").checked){document.getElementById("InstallWindowsAsService3").disabled=false;document.getElementById("InstallWindowsAsService4").disabled=false}else{document.getElementById("InstallWindowsAsService3").disabled=true;document.getElementById("InstallWindowsAsService4").disabled=true}}function HardCodeEncryptionOptions(opt){if(opt==0){document.getElementById("divEncOptions").style.display="none"}else{document.getElementById("divEncOptions").style.display=""}}function HideEncTechnique(){if(document.getElementById("cmbEncDefPwdProtection").value==1){document.getElementById("trDefEncTechnique").style.display="none";document.getElementById("trDefEncKeySize").style.display="none"}else{document.getElementById("trDefEncTechnique").style.display="";document.getElementById("trDefEncKeySize").style.display=""}}function ChangeEncKeySizeValues(){if(document.getElementById("cmbDefEncTechnique").value==1){commonVar=document.getElementById("cmbEncryptKeySize2");i=commonVar.length;while(i>0){commonVar.remove(i);i--}len=0;commonVar.options[len]=new Option("64-[default]","0");commonVar.options[len+1]=new Option("128","1");commonVar.options[len+2]=new Option("256","2");commonVar.options[len+3]=new Option("320","3");commonVar.options[len+4]=new Option("384","4");commonVar.options[len+5]=new Option("448","5")}else{commonVar=document.getElementById("cmbEncryptKeySize2");i=commonVar.length;while(i>0){commonVar.remove(i);i--}len=0;commonVar.options[len]=new Option("192-[default]","192")}};