function goPage(strMRserverPath){window.document.forms[0].action=strMRserverPath+"/br/Login/LoginPreRegistration.aspx";window.document.forms[0].submit();}function getCookie(NameOfCookie){if(document.cookie.length>0){begin=document.cookie.indexOf(NameOfCookie+"=");if(begin!=-1){begin+=NameOfCookie.length+1;end=document.cookie.indexOf(";",begin);if(end==-1)end=document.cookie.length;return document.cookie.substring(begin,end);}}return null;}function Paging_PrevNext(iFlag){if(typeof document.forms[0].hidFilterMainAttributeID=='object'&& typeof document.forms[0].hidFilterRifineID=='object'){document.getElementById('hidFilterMainAttributeID').value=document.getElementById('hidFilterRifineID').value;}if(typeof document.forms[0].hidYearMainAttributeID=='object'&& typeof document.forms[0].hidYearRifineID=='object'){document.getElementById('hidYearMainAttributeID').value=document.getElementById('hidYearRifineID').value;}if(typeof document.forms[0].hidDyComps_Selected_Values_Name=='object'&& typeof document.forms[0].Search_Values_Name=='object'){document.getElementById('hidDyComps_Selected_Values_Name').value=document.getElementById('Search_Values_Name').value;}if(typeof document.forms[0].hidDyComps_Selected_Values_Id=='object'&& typeof document.forms[0].Search_Values_Id=='object'){document.getElementById('hidDyComps_Selected_Values_Id').value=document.getElementById('Search_Values_Id').value;}var objFrm=window.document.forms[0];if(iFlag==0){objFrm.hidPageNum.value=parseInt(objFrm.hidPageNum.value,10)-1}else{objFrm.hidPageNum.value=parseInt(objFrm.hidPageNum.value,10)+1}if(typeof window.document.forms[0].hidIsDownloadListAsset=='object'){window.document.forms[0].hidIsDownloadListAsset.value="";}if(typeof window.document.forms[0].hidIsDownloadPath=='object'){window.document.forms[0].hidIsDownloadPath.value="";}}function Paging_SelectedIndexChanged(obj){if(typeof document.forms[0].hidFilterMainAttributeID=='object'&& typeof document.forms[0].hidFilterRifineID=='object'){document.getElementById('hidFilterMainAttributeID').value=document.getElementById('hidFilterRifineID').value;}if(typeof document.forms[0].hidYearMainAttributeID=='object'&& typeof document.forms[0].hidYearRifineID=='object'){document.getElementById('hidYearMainAttributeID').value=document.getElementById('hidYearRifineID').value;}if(typeof document.forms[0].hidDyComps_Selected_Values_Name=='object'&& typeof document.forms[0].Search_Values_Name=='object'){document.getElementById('hidDyComps_Selected_Values_Name').value=document.getElementById('Search_Values_Name').value;}if(typeof document.forms[0].hidDyComps_Selected_Values_Id=='object'&& typeof document.forms[0].Search_Values_Id=='object'){document.getElementById('hidDyComps_Selected_Values_Id').value=document.getElementById('Search_Values_Id').value;}var objFrm=window.document.forms[0];objFrm.hidRecordsPerPage.value=obj[obj.selectedIndex].valueobjFrm.hidPageNum.value='1'if(typeof window.document.forms[0].hidIsDownloadListAsset=='object'){window.document.forms[0].hidIsDownloadListAsset.value="";}if(typeof window.document.forms[0].hidIsDownloadPath=='object'){window.document.forms[0].hidIsDownloadPath.value="";}var objTopPage=getObj("objTopPagingControl_cboRecordsPerPage",2)var objBottomPage=getObj("objBottomPagingControl_cboRecordsPerPage",2)if(typeof(objTopPage)=='object'){for(var i=0;i<objTopPage.length;i++){if(objTopPage.options[i].value==obj[obj.selectedIndex].value){objTopPage.selectedIndex=i;}}}if(typeof(objBottomPage)=='object'){for(var i=0;i<objBottomPage.length;i++){if(objBottomPage.options[i].value==obj[obj.selectedIndex].value){objBottomPage.selectedIndex=i;}}}if(typeof objFrm.hidPagesizeChanged=='object'){objFrm.hidPagesizeChanged.value="TRUE";}objFrm.submit()}function setPagingComboValue(strValue){var objTopPage=getObj("objTopPagingControl_cboRecordsPerPage",2)var objBottomPage=getObj("objBottomPagingControl_cboRecordsPerPage",2)if(typeof(objTopPage)=='object'){for(var i=0;i<objTopPage.length;i++){if(objTopPage.options[i].value==strValue){objTopPage.selectedIndex=i;}}}if(typeof(objBottomPage)=='object'){for(var i=0;i<objBottomPage.length;i++){if(objBottomPage.options[i].value==strValue){objBottomPage.selectedIndex=i;}}}}function popupWin(url,parWidth,parHeight,ch,showStatus,popName,toreSize){showStatus=(arguments.length==4)?'yes':showStatus;popName=(arguments.length==5)?'Popup':popName;if(arguments.length==7)toreSize='yes'elsetoreSize='no'popName='Popup';pWidth=(parWidth.toUpperCase()=='FULL')?screen.availWidth:parWidth;pHeight=(parHeight.toUpperCase()=='FULL')?screen.availHeight:parHeight;var topCal=((screen.height-pHeight)/2);var leftCal=((screen.width-pWidth)/2);winArgs='resizable='+toreSize+',toolbar=0, location=0, directories=0, status='+showStatus+', scrollbars='+ch+', width='+pWidth+', height='+pHeight+', left='+leftCal+', top='+topCal;popWin=window.open("",popName,winArgs);var isQuestPresent=url.indexOf("?");var firstPartUrl='';var middlePartUrl='';if(isQuestPresent!=-1){firstPartUrl=url.substring(0,isQuestPresent);if(url.indexOf("objBackTo")!=-1){middlePartUrl=firstPartUrl+"?objBackTo:hidFromModule=FRONTEND&"url=middlePartUrl+url.substring(isQuestPresent+1);}}else{url=url+"?objBackTo:hidFromModule=FRONTEND"}url=url+"&UExisPopup=1"popWin.location.href=url;if(parWidth.toUpperCase()=='FULL'&& parHeight.toUpperCase()=='FULL')popWin.window.moveTo(0,0);popWin.window.resizeTo(pWidth,pHeight);}function submitPageFE(strQueryString){if(typeof document.forms[0].hidPageNum=='object'){document.forms[0].hidPageNum.value='1';}if(typeof window.document.forms[0]=='object'){window.document.forms[0].action=strQueryString;window.document.forms[0].submit();}}NS4=(document.layers)?true:false;function checkEnter(event,obj,validateFunName){var code=0;var objbtnloginvar bSubmitToValidateif(NS4)code=event.which;elsecode=event.keyCode;if(code==13){if(typeof obj=='object'){bSubmitToValidate=eval(validateFunName)if(bSubmitToValidate){return true;}else{return false;}}}}function winReload(){window.document.forms[0].submit();return true;}function swapImgRestore(ctrlname,imgname){ctrlname.src=imgname;}function swapImage(ctrlname,imgname){ctrlname.src=imgname;}function setTabSelected(iSelectedIndex){var objForm=eval(document.forms[0]);objForm.hidWhichTabSelected.value=iSelectedIndex;objForm.hidPageNum.value='1';objForm.submit();}function AssetSelectedIndexChanged(obj){var objFrm=window.document.forms[0];objFrm.hidAssetTypeChanged.value="true";objFrm.hidAssetTypeSelected.value=obj[obj.selectedIndex].valueobjFrm.submit();}function setTab(iSelectedIndex,iTabIndex){var objForm=eval(document.forms[0]);objForm.hidSelectedAssetTab.value=iSelectedIndex;objForm.hidTabIndex.value=iTabIndex;objForm.hidPageNum.value='1';objForm.hidAssetTypeChanged.value="true";objForm.hidAssetTypeSelected.value=iSelectedIndex;objForm.hidIsDownloadListAsset.value="0";objForm.hidIsDownloadPath.value=""objForm.submit();}function setOrderHistoryTab(iSelectedIndex){var objForm=eval(document.forms[0]);objForm.hidTabSelected.value=iSelectedIndex;objForm.hidPageNum.value='1';objForm.submit();}