https://in-tendhost.co.uk/he/aspx/Home

提交的 URL:
https://in-tendhost.co.uk/he已重定向
报告完成时间:

链接 · 找到 2 个

从页面中识别出的传出链接

链接文本
https://in-tend.co.uk/insupply
https://www.in-tend.co.uk/legalTerms of Use and Legal

JavaScript 变量 · 找到 663 个

在页面窗口对象上加载的全局 JavaScript 变量是在函数外部声明的变量,可以从当前范围内的代码中的任何位置访问

名称类型
onbeforetoggleobject
documentPictureInPictureobject
onscrollendobject
onloadCallbackfunction
$function
jQueryfunction
jQuery1124015445169005222703object
momentfunction
cssVarsfunction
gjobject

控制台日志消息 · 找到 3 条

记录到 Web 控制台的消息

类型类别记录
verbosedom
URL
https://in-tendhost.co.uk/he/aspx/Home
文本
[DOM] Multiple forms should be contained in their own form elements; break up complex forms into ones that represent a single action: (More info: https://goo.gl/9p2vKq) %o
errornetwork
URL
https://localhost:9895/nexu-info
文本
Failed to load resource: net::ERR_CONNECTION_REFUSED
warningother
URL
https://in-tendhost.co.uk/he/aspx/js/css-vars-ponyfill.min.js?ver=05.16.02.06
文本
cssVars(): variable "--main-bg-color" is undefined

HTML

页面的原始 HTML 正文

<!DOCTYPE html><html lang="en" style="height: auto; min-height: 100%;"><head><title>
	In-Tend Electronic Tendering Site - Home
</title>
    <meta name="description" content="In-Tend e-Procurement Solutions - delivering eTendering, contracts management, tender notification service and e-Auction tools to the public sector.">
    <meta name="keywords" content="In-Tend, intend, In Tend, ltd, eTendering, e-Tendering, electronic tendering, contracts management, active bidding, eAuction, supplier management, public sector, procurement, infovision, tender, tendering, tender notification service, tns, OJEU, RFQ">

    <meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- CSS -->
    <link href="css/all-skins.min.css?ver=05.16.02.06" rel="stylesheet" data-cssvars="skip" data-cssvars-job="1">
    <link href="css/AdminLTE.min.css?ver=05.16.02.06" rel="stylesheet" data-cssvars="skip" data-cssvars-job="1">

    <link href="css/bootstrap.css?ver=05.16.02.06" rel="stylesheet" data-cssvars="skip" data-cssvars-job="1">

    <link href="css/font-awesome.min.css?ver=05.16.02.06" rel="stylesheet" data-cssvars="skip" data-cssvars-job="1">

    <link href="css/select2.min.css?ver=05.16.02.06" rel="stylesheet" data-cssvars="skip" data-cssvars-job="1">

    <link href="css/gijgo.min.css?ver=05.16.02.06" rel="stylesheet" data-cssvars="skip" data-cssvars-job="1">

    <link href="css/datatables.min.css?ver=05.16.02.06" rel="stylesheet" data-cssvars="skip" data-cssvars-job="1">

    <link href="https://fonts.googleapis.com/css?family=Heebo" rel="stylesheet" data-cssvars="skip" data-cssvars-job="1">

    <link href="css/portal.css?ver=05.16.02.06" rel="stylesheet" data-cssvars="src" data-cssvars-job="1" data-cssvars-group="1"><style data-cssvars="out" data-cssvars-job="1" data-cssvars-group="1">body{font-family:'Lato', sans-serif;font-size:12px;margin:0;background-color:#e8e8e8;}html,body,form{height:100%;}.sidebar-wrapper::-webkit-scrollbar{width:0;}::-webkit-scrollbar{width:0.75em;height:0.75rem;}.text-left{text-align:left !important;}#content-dmbc{margin-left:25px;margin-right:25px;}.select2-dropdown{z-index:9999999999;}#navbar{background-color:#4284b5;}#navbar{background-color:#4284b5;}.navbar-nav > li > a > .menu-icon{width:15px;}.form-control[readonly]{background-color:#ffffaa;}@media (max-width: 991px){.main-sidebar{-webkit-transform:translate(-230px, 0);-ms-transform:translate(-230px, 0);-o-transform:translate(-230px, 0);transform:translate(-230px, 0);}}@media (max-width: 767px){.navbar-nav{margin-top:0;}.nav.navbar-nav li a{color:#fff;font-weight:bold;}.navbar-nav li .dropdown-menu a{color:#fff;}.nav.navbar-nav li.active a,.nav.navbar-nav li a:hover,.nav.navbar-nav li a:focus{color:#4284b5;background-color:#f4f4f5;font-weight:bold;}}@media (min-width: 991px){.navbar-collapse{padding:0;}}#section .section-text,#section .section-login{min-width:unset !important;}::-webkit-scrollbar-thumb{background-color:darkgrey;outline:1px solid slategrey;border-radius:10px;}.content-wrapper{background-color:#ecf0f5 !important;}.fixed-top{position:fixed;}.float_right{float:right;}.col-sm-2 .fixed-top{width:16.666666667%;padding-right:15px;}.paging button{float:right;position:static;}.ui-button-disabled{display:none !important;}.paging label{margin-top:10px;margin-right:8px;margin-left:8px;}.row-flex{display:flex;align-items:center;}.table > tbody > tr > td,.table > tbody > tr > th,.table > tfoot > tr > td,.table > tfoot > tr > th,.table > thead > tr > td,.table > thead > tr > th{vertical-align:middle;}a{color:#000;}a:hover{color:#000;text-decoration:none;}.selected_option{font-weight:bold !important;}.disabled_textarea{overflow-y:scroll;min-height:100px;max-height:200px;}.nav-tabs-custom{margin-bottom:0 !important;box-shadow:none;}.btn-default{background-color:#4284b5 !important;}.main-sidebar{position:fixed;}.menu-open{transition:ease 3s all;}.optin,.optout{background:none !Important;background-color:#BCBCBC !Important;border:solid 1px #808080 !Important;color:#fff;width:200px;margin:20px 10px;}.optin:not(.disabled):hover{background-color:green !important;color:#fff;}.optout:not(.disabled):hover{background-color:red !important;color:#fff;}.optin.button-disabled{background-color:green !Important;}.optout.button-disabled{background-color:red !Important;}.btn-default:hover,.btn-default:focus{color:#fff;}.content-wrapper{background:transparent;}@media only screen and (min-width: 768px){.sidebar-mini.sidebar-collapse .main-sidebar{z-index:9999 !important;padding-top:0 !important;}.sidebar-collapse .sidebar-menu{margin-top:0 !important;height:calc(100vh - 50px);overflow:unset auto;}.sidebar-mini.sidebar-collapse .sidebar img{display:none !important;}}input.error{background-color:#fff;}.error{background-color:#ff0000 !important;color:#ffffff;border-bottom:1px solid #aaaaaa;}div.error{padding:8px;border-radius:4px;cursor:pointer;}.required,.mandatoryField,.mandatoryradiocontainer,.required.force-mandatory-yellow{background-color:#ffffaa !important;color:#000000;}.pointer{cursor:pointer;}.highlightfield,.requiredEOI{background-color:#FFCC00 !important;color:#000000;}.row{margin-bottom:10px;}.w-100{width:100%;}.width_50{width:50% !important;}.width_25{width:25% !important;}.width_180px{width:180px !important;}.h-100{height:100%;}.mh-350{max-height:350px;overflow-y:scroll;}.alert-warning{background-color:#4284b5 !important;color:#fff !important;}.alert{padding:0.6rem;}.tender > .row{margin-bottom:0;}label{margin-bottom:0 !important;}.align-top{align-content:flex-start;align-self:flex-start;align-items:flex-start;}th{border-bottom:none !important;}.nav-tabs > li.active{border-top-color:#4284b5 !important;}@media (min-width: 768px){.nav.navbar-nav li a{color:#fff;font-weight:bold;}.navbar-nav li .dropdown-menu a{color:#4284b5;}.nav.navbar-nav li.active a,.nav.navbar-nav li a:hover,.nav.navbar-nav li a:focus{color:#4284b5;background-color:#f4f4f5;font-weight:bold;}}.navbar-brand{font-size:12px;}a:hover,a:active,a:focus{outline:none !important;}.dropdown-menu{font-size:12px;}.full-width{width:100%;}.padding-top-10{padding-top:10px;}.padding-top-20{padding-top:20px;}.padding-bottom-20{padding-bottom:20px;}.padding-left-15{padding-left:15px;}.margin-bottom-20{margin-bottom:20px;}.margin-bottom-10{margin-bottom:10px !important;}.vertical_align_top{vertical-align:top !important;}.form-control-sm{height:28px;font-size:12px;}.margin-top-20{margin-top:20px !important;}.margin-top-10{margin-top:10px !important;}.margin-right-10{margin-right:10px;}.box.box-success{border-top-color:#28a745;}.box.box-dark{border-top-color:#1b1e21;}.shadow{box-shadow:0 .5rem 1rem rgba(0,0,0,.15) !important;}.footer{position:fixed;bottom:0;width:100%;height:65px;margin-top:25px;color:#fff !important;background-color:#4284b5 !important;z-index:9999;padding-top:15px;}.languages_icons{padding:10px;bottom:50px;left:0;position:absolute;}.font-24{font-size:24px;}.font-20{font-size:20px;}.font-18{font-size:18px;}.font-16{font-size:16px;}.font-14{font-size:14px;}.font-12{font-size:12px;}.font-10{font-size:10px;}.bold{font-weight:bold;}html{min-height:100%;}.main-sidebar{padding-top:20px;z-index:0;}.home-center{width:90%;margin:auto;}#section{padding:15px;display:inline-block;background-color:#fff;}#section .section-text{float:left;width:70%;padding:0 25px;min-width:250px;}#section .section-login{float:right;width:30%;min-width:250px;padding:0 35px;border-left:1px solid #d3d3d3;}@media only screen and (max-width: 1290px){#section .section-text{width:70%;}#section .section-login{width:30%;}}@media (max-width: 761px){#section .section-text{width:100%;}#section .section-login{width:100%;border:none;}}.margin-list > li{margin-bottom:10px;}.footer-content{padding-left:0px;margin-left:320px;margin-right:20px;font-size:12px;}#register-form{background-color:#fff;max-width:100%;margin:auto;padding:20px;}#register-form .row{padding-bottom:20px;}#register-form .no-pad{padding:0px;}#register-form > ul{margin-bottom:20px;}.bg-dark{background-color:#343a40 !important;}.btn-default{background-color:#55606b;color:#ffffff;}.navbar-toggle .icon-bar{background-color:#000;}.skin-green-light .main-header .logo-lg{background-color:#ffffff;color:#fff;border-bottom:0 solid transparent;}.skin-green-light .main-header .logo:hover{background-color:#00a157;}.input-group-btn{padding:0;}.nav-tabs > li.active > a,.nav-tabs > li.active > a:focus,.nav-tabs > li.active > a:hover{color:#4284b5;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent;}@media (max-width: 991px){.content-wrapper{min-height:850px;margin-left:0px;}}.content{margin-bottom:25px;}.content.container{max-width:1022px !important;background:#f8f8f8;}.main-header.container{max-width:1022px !important;padding:0;}.main-header{max-height:200px !important;}.sidebar-menu{margin-top:20px;}.custom-control{position:relative;display:block;min-height:1.5rem;padding-left:2rem;}.custom-control-inline{display:-ms-inline-flexbox;display:inline-flex;margin-right:1rem;}.custom-control-input{position:absolute;z-index:-1;opacity:0;}.custom-control-input:checked ~ .custom-control-label::before{color:#fff;border-color:#007bff;background-color:#007bff;}.custom-control-input:focus ~ .custom-control-label::before{box-shadow:0 0 0 0.2rem rgba(0, 123, 255, 0.25);}.custom-control-input:focus:not(:checked) ~ .custom-control-label::before{border-color:#80bdff;}.custom-control-input:not(:disabled):active ~ .custom-control-label::before{color:#fff;background-color:#b3d7ff;border-color:#b3d7ff;}.custom-control-input:disabled ~ .custom-control-label{color:#6c757d;}.custom-control-input:disabled ~ .custom-control-label::before{background-color:#e9ecef;}.custom-control-label{position:relative;margin-bottom:0;vertical-align:top;}.custom-control-label::before{position:absolute;top:0;left:-2rem;display:block;width:1.5rem;height:1.5rem;pointer-events:none;content:"";background-color:#fff;border:#adb5bd solid 1px;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;}.custom-control-label::after{position:absolute;top:0;left:-2rem;display:block;width:1.5rem;height:1.5rem;content:"";background:no-repeat 50% / 50% 50%;}.custom-checkbox .custom-control-label::before{border-radius:.25rem;}.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");}.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before{border-color:#007bff;background-color:#007bff;}.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3e%3cpath stroke='%23fff' d='M0 2h4'/%3e%3c/svg%3e");}.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before{background-color:rgba(0, 123, 255, 0.5);}.custom-checkbox .custom-control-input:disabled:indeterminate ~ .custom-control-label::before{background-color:rgba(0, 123, 255, 0.5);}.custom-radio .custom-control-label::before{border-radius:50%;}.custom-radio .custom-control-input:checked ~ .custom-control-label::after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");}.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before{background-color:rgba(0, 123, 255, 0.5);}.no_margin{margin:0px !important;}.box-theme{border-top-color:#4284b5 !important;}.tender p{line-height:20px;}.navbar-default .navbar-toggle .icon-bar{background-color:#ffffff;}.navbar-toggle{background-color:#4284b5;}.orange{color:#4284b5;}.nav-pills > li.active > a,.nav-pills > li.active > a:focus,.nav-pills > li.active > a:hover{background-color:#4284b5;}.nav-stacked > li.active > a,.nav-stacked > li.active > a:hover{border-left-color:#b36e00;}.skin-green-light .wrapper,.skin-green-light .main-sidebar,.skin-green-light .left-side{background-color:#ffffff;}.skin-green-light .sidebar-menu > li:hover > a,.skin-green-light .sidebar-menu > li.active > a{color:#4284b5;background-color:#f4f4f5;}.sidebar-menu{font-size:14px;}.skin-green-light .sidebar a{color:#2a3846;}.margin-0{margin:0 !important;}@media (min-width: 768px){.skin-green-light.sidebar-mini.sidebar-collapse .sidebar-menu > li > .treeview-menu{border-left:none;}}.sidebar-collapse .sidebar-menu{margin-top:40px;}.ui-dialog{position:relative;background-color:#fff;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5);outline:0;z-index:999999;}.ui-dialog-titlebar{padding:15px;border-bottom:1px solid #e5e5e5;}.ui-dialog-title{font-size:14px;margin:0;line-height:1.42857143;}.ui-dialog-content{position:relative;padding:15px;}.ui-dialog-buttonpane{padding:15px;text-align:center;}.ui-dialog-buttonset > button{margin-right:10px;}.ui-button:not(.btn),.ui-button:matches(.ui-datepicker-trigger){display:inline-block;padding:6px 12px;margin-bottom:0;font-size:12px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px;background-color:#4284b5;color:#fff;}.ui-datepicker{width:17em;padding:10px;display:none;background-color:#fff;border-radius:10px;box-shadow:rgba(0, 0, 0, 0.15) 0px 0.5rem 1rem !important;z-index:9999999 !important;}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0;background-color:#e8e8e8;border-radius:4px;}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em;}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px;}.ui-datepicker .ui-datepicker-prev{left:2px;}.ui-datepicker .ui-datepicker-next{right:2px;}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-12px;}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center;font-weight:bold;font-size:13px;}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0;}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:45%;}.ui-datepicker table{width:100%;font-size:13px;border-collapse:collapse;margin:0 0 .4em;}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0;}.ui-datepicker td{border:0;padding:1px;}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none;}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0;}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible;}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left;}.ui-datepicker-today{font-weight:bold;font-size:1.1rem;}.ui-datepicker.ui-datepicker-multi{width:auto;}.ui-datepicker-multi .ui-datepicker-group{float:left;}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em;}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%;}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%;}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%;}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0;}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left;}.ui-datepicker-row-break{clear:both;width:100%;font-size:0;}.ui-datepicker-rtl{direction:rtl;}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto;}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto;}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto;}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto;}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right;}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left;}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right;}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px;}.ui-icon-circle-triangle-w,.ui-icon-circle-triangle-e{font-size:0 !important;}.ui-icon-circle-triangle-w::before{font-family:"FontAwesome";content:"\f104";display:inline-block;padding-right:3px;vertical-align:middle;font-weight:bold;font-size:14px;}.ui-icon-circle-triangle-e::before{font-family:"FontAwesome";content:"\f105";display:inline-block;padding-right:3px;vertical-align:middle;font-weight:bold;font-size:14px;}.pagination > .active > a,.pagination > .active > a:focus,.pagination > .active > a:hover,.pagination > .active > span,.pagination > .active > span:focus,.pagination > .active > span:hover{z-index:3;color:#fff;cursor:default;background-color:#4284b5;border-color:#4284b5;}.suggestions_container div{width:100%;}.suggestions_container div div{padding:0;margin:5px 0 0 0;float:left;}.suggestions_container input{color:#000000 !Important;}.suggestions_label{width:10% !Important;text-align:right;margin-right:10px !Important;}.suggestions_textbox{width:78.75% !important;}.suggestions_textbox input{width:100%;}.suggestions_textbox textarea{height:75px;width:100%;}#pnlUpload object{position:absolute;left:0;right:0;}.pnlUpload object{position:absolute;left:0px;top:0px;color:#000000;}.uploadifyQueue{position:absolute;left:-5px;top:-15px;}.uploadifyQueueparent .uploadifyQueue{left:-220px;}.GetFlash,.GetFlashContainer{border:transparent !important;background:transparent !important;width:100% !important;height:30px !important;min-height:30px !important;max-height:30px !important;}.upload-button{min-width:78px;}.ButtonUpload{padding:0px;max-width:81px;display:inline-block;padding-left:0px;padding-right:0px;margin-bottom:5px;margin-left:5px;}.ButtonUpload .qq-uploader{padding:0px !important;}.ButtonUpload .qq-uploader .qq-upload-button{margin-left:-5px;top:1px;}.qq-uploader input{width:86px;height:24px;}.pnlUpload{margin-top:3px;margin-bottom:2px !important;}div.pnlUpload,div.ButtonUpload{margin:0 !important;}.width_100{width:100% !Important;}.width_90{width:90% !important;}.width_75{width:75% !important;}.width_70{width:70% !important;}.width_57{width:57% !important;}.width_50{width:50% !Important;}.width_45{width:46% !Important;}.width_40{width:40% !important;}.width_35{width:35% !important;}.width_33{width:33% !Important;}.width_31_8{width:31.8% !Important;}.width_30{width:30% !important;}.width_25{width:25% !Important;}.width_23{width:23.75% !Important;}.width_20{width:20.75% !Important;}.width_actual_20{width:20% !Important;}.width_15{width:18% !Important;}.width_10{width:12% !Important;}.width_actual_10{width:10% !Important;}.width_5{width:5% !Important;}.width_300px{width:300px !important;}.width_430px{width:430px !important;}.width_415px{width:415px !important;}.width_100px{width:100px !important;}.width_20px{width:20px !important;}li:not(.active) > .ui-tabs-anchor{background-color:#d6d6d6 !important;border-top-left-radius:4px !important;border-top-right-radius:4px !important;}.user-profile{min-height:175px !important;}.margin-10{margin-top:10px !important;margin-bottom:10px !important;}.padding-10{padding-top:10px;padding-bottom:10px;}.padding-20{padding-top:20px;padding-bottom:20px;}.h-150{height:150px;}.disabled:not(button){background-color:#eee;}#LanguagesContent_footerLanguages > a{cursor:pointer !important;}.table-noborder,.table-noborder th,.table-noborder td,.table-noborder tr,.table-noborder tbody tr{border:none !important;}.reCAPTCHA_FullWidth > div{margin:0 auto !important;}.DateTimeControl{min-width:300px;}.HomeSummary a,.HomeSummary a:link,.HomeSummary a:visited{color:Red !Important;}.AddTableRow,.RemoveTableRow{color:#333;font-size:10px;background-color:#e8e8e8;border:1px solid #333;padding:2px 5px;cursor:pointer;}.qq-upload-button span,.qq-upload-button input::-webkit-file-upload-button{cursor:pointer;}.display_none,li.display_none{display:none;}button.display_none{display:none !important;}.dragdrop{min-height:150px !important;border:3px #666 dashed !important;border-radius:5px !important;display:flex;width:auto !important;margin:0 15px !important;align-items:center;justify-content:center;}.dragdrop.highlight{border-color:purple !important;}.dragdrop-upload{text-align:center;justify-content:center;min-width:350px;}.ui-progressbar{height:2em;text-align:left;overflow:hidden;}.ui-progressbar .ui-progressbar-value{height:100%;}.ui-progressbar-value{background-color:#4284b5;}#progressbar{width:auto !important;border-radius:3px;border:1px solid #dddddd;background:#ffffff;}.mandatory-dagger{display:inline-block;line-height:1;}.mandatory-star:before,.mandatory-dagger:before{content:"* ";color:red;font-size:18px;display:inline-block;vertical-align:middle;margin-right:5px;}.mandatory-starSQ:before{content:"*";color:red;font-size:18px;display:inline-block;vertical-align:middle;margin-right:2px;}.mandatory-dagger:before{content:"** ";}.mandatory-star.mandatory-dagger:before{content:"*** ";}.ErrorListContainer .mandatory-star{display:none;}#PrintProjectDetails:hover{cursor:pointer;}.horizontal #content-dmbc{margin:0;}.horizontal .home-center{width:100%;}input.mandatory-key{color:red !important;border:0 !important;background:none !important;}p:last-of-type{margin:0;}.no-mandatory-styling,.no-mandatory-styling input,.no-mandatory-styling textarea{background-color:#FFF !important;background:none !important;}.ui-widget-overlay{position:absolute;top:0;left:0;width:100%;height:100%;}span > label{margin-left:5px;}#footerImage{width:100%;margin:0 auto;margin-bottom:10px;}#footerImage img{height:auto;width:100%;display:block;max-width:1022px;margin:0 auto;}.mb-0{margin-bottom:0 !important;}#FooterBuildInfo{padding:10px;bottom:50px;left:0;position:fixed;max-width:230px;}#FooterBuildInfo.Horizontal-Lang{padding:10px;bottom:10px;left:100px;position:fixed;z-index:999999;max-width:250px;}.ui-button-disabled.btn-success{display:unset !important;}.modal{text-align:center;padding:0 !important;}.modal:before{content:'';display:inline-block;height:100%;vertical-align:middle;margin-right:-4px;}.modal-dialog{display:inline-block;text-align:left;vertical-align:middle;}.modal-dialog-sq{display:inline-block;text-align:left;vertical-align:middle;max-height:50%;width:35%;overflow:auto;}.modal-body.privacy-notice{height:calc(100vh /2);overflow-y:auto;padding:15px !important;}@supports (-moz-appearance:none){.modal-body:after{content:"";padding-bottom:15px;display:block;}}.dataTables_filter form{min-width:unset !important;}.dataTables_paginate .disabled{border:unset !important;}#divClarTitle{height:auto !important;}.sidebar-collapse #FooterBuildInfo{display:none;}table.dataTable thead th{position:relative;background-image:none !important;}table.dataTable thead th.sorting:before,table.dataTable thead th.sorting_asc:before,table.dataTable thead th.sorting_desc:before{display:none;}table.dataTable thead th.sorting:after,table.dataTable thead th.sorting_asc:after,table.dataTable thead th.sorting_desc:after{font-weight:900;opacity:1 !important;color:var(--main-bg-color) !important;font-family:FontAwesome;bottom:1.8em !important;}table.dataTable thead th.sorting:after{content:"\f0dc";}table.dataTable thead th.sorting_asc:after{content:"\f0de";}table.dataTable thead th.sorting_desc:after{content:"\f0dd";}table.dataTable thead th.sorting:after,table.dataTable thead th.sorting_asc:after,table.dataTable thead th.sorting_desc:after{position:inherit;display:inline;}table.dataTable thead th.sorting:after,table.dataTable thead th.sorting_asc:after,table.dataTable thead th.sorting_desc:after{right:-.5em;}table.table thead th.sorting:after,table.table thead th.sorting_asc:after,table.table thead th.sorting_desc:after{top:0px;}table.dataTable tr:hover{cursor:pointer;}.d-inline-flex{display:inline-flex !important;}.red{color:red !important;}.green{color:green !important;}.register-line{width:100% !important;height:3px !important;background-color:#4284b5;margin-bottom:8px;}#CompanyDetailstabs .ui-state-disabled a{color:#999 !important;cursor:not-allowed;}label.error{display:none !important;}.form-control[disabled]{background-color:#eee !important;}.margin-left-10{margin-left:10px !important;}.margin-left-20{margin-left:20px !important;}.TREEITEM{cursor:pointer;}.panel-collapse{padding:5px;}.panel-heading a:after{font-family:FontAwesome;content:"\f078";float:right;color:grey;}.panel-heading a.collapsed:after{content:"\f077";}.alert-default{background-color:#c3c9c9;}.select2-container--default{width:100% !important;}.select2-container .select2-selection--single{height:34px !important;}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;}.select2-selection__arrow{height:34px !important;}.prefix + .select2-container--default{width:100px !important;}.btn-placeholder{background-color:#6d6d6d !important;color:#ffffff;}.btn-placeholder-complete{background-color:#4284b5;color:#ffffff;}</style>

    <link href="css/themes/blue.css" rel="stylesheet" type="text/css" media="screen" data-cssvars="src" data-cssvars-job="1" data-cssvars-group="2"><style data-cssvars="out" data-cssvars-job="1" data-cssvars-group="2">@font-face{font-family:'Lato';font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v24/S6u8w4BMUTPHjxsAUi-qJCY.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}@font-face{font-family:'Lato';font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v24/S6u8w4BMUTPHjxsAXC-q.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}@font-face{font-family:'Lato';font-style:italic;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v24/S6u_w4BMUTPHjxsI5wq_FQft1dw.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}@font-face{font-family:'Lato';font-style:italic;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v24/S6u_w4BMUTPHjxsI5wq_Gwft.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v24/S6uyw4BMUTPHjxAwXjeu.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v24/S6uyw4BMUTPHjx4wXg.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v24/S6u9w4BMUTPHh6UVSwaPGR_p.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v24/S6u9w4BMUTPHh6UVSwiPGQ.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}.content-wrapper{background-color:transparent !important;}#Register_ button,#InCommunity button,.alert-warning{background-color:#fafa80 !important;color:#000 !important;border:1px solid #000;}.btn-default{background-color:#4284b5 !important;color:#fff;border:1px solid #4284b5 !important;}body{background-color:rgba(66, 132, 181, 0.35);}</style>


    <script type="text/javascript" async="" defer="" src="//analytics.in-tend.co.uk/piwik.js"></script><script>
        var onloadCallback = function () {
            grecaptcha.render('reCAPTCHA', {
                'sitekey': '6LdmMU4UAAAAALlP_dHe1mGluowDMJ1DWG6FZOZj',
                'callback': verifyCallback,
                'theme': 'light',
            });
        };
    </script>
</head>

<body class="layout-top-nav" style="height: auto; min-height: 100%;" bg="">
    

        <script src="js/jquery-1.12.4.min.js?ver=05.16.02.06"></script>
        <script src="js/bootstrap.min.js?ver=05.16.02.06"></script>

        <script src="js/moment-with-locales.js?ver=05.16.02.06"></script>
        <script src="js/moment-timezone.js?ver=05.16.02.06"></script>

        <script src="js/css-vars-ponyfill.min.js?ver=05.16.02.06"></script>

        <script src="js/AdminLTE.min.js?ver=05.16.02.06"></script>
        <script src="js/jquery-migrate-1.1.0.js?ver=05.16.02.06"></script>
        <script src="js/jquery.validate.js?ver=05.16.02.06"></script>
        <script src="js/jquery.validate_gb.js?ver=05.16.02.06"></script>
        <script src="js/jquery.formatCurrency-1.4.0.js?ver=05.16.02.06"></script>
        <script src="js/additional-methods.js?ver=05.16.02.06"></script>
        <script src="js/jquery.slidy.js?ver=05.16.02.06"></script>
        <script src="js/select2.min.js?ver=05.16.02.06"></script>
        <script src="js/gijgo.min.js?ver=05.16.02.06"></script>

        <!-- New MD5 uploading tools. SparkMD5 -->
        <script src="js/q.js?ver=05.16.02.06"></script>
        <script src="js/spark-md5.min.js?ver=05.16.02.06"></script>

        <script src="js/ie-polyfill-css.js?ver=05.16.02.06"></script>
        <script src="js/datatables.min.js?ver=05.16.02.06"></script>

        <!-- jQueryUI -->
        <script src="js/ui/jquery-ui.js?ver=05.16.02.06"></script>
        <script src="js/jquery.bgiframe.js?ver=05.16.02.06"></script>
        <script src="js/ui/jquery.ui.position.js?ver=05.16.02.06"></script>

        
            <script type="text/javascript">
                function CheckAlternativeValidation() {

                }
                function SetupAlternativeValidation() {

                }
            </script>
        

        <!-- General Functions -->
        <script>
            //<![CDATA[
            var vServicesPath = '/he/aspx/Services';
            var sPagingTextOf = 'of';
            var sPagingTextPage = 'Page';
            var sPagingTextTo = 'to';
            var sPagingTextShowing = 'Showing';

            var vRES_OK = 'OK';
            var vRES_ERRORTITLE = 'Error';

            var vRES_MessageHeader = 'Message';
            var vRES_SubmitHtmlPass = 'Your request has been submitted successfully. We will respond within 3 working days';
            var vRES_SubmitHtmlFail = 'Your form submission was not sucessful, please try again later';

            var vRES_DRAFT = 'Draft';
            var vRES_AWAITINGPUBLICATION = 'Awaiting Publication';
            var vRES_PUBLISHED = 'Published';
            var vRES_ARCHIVED = 'Archived';
            var vRES_REJECTED = 'Rejected';
            var vGET_FLASH = 'Get Adobe Flash player';

            var vLanguage = 'en';

            var vWeek = 'Week';
            var vWeeks = 'Weeks';
            var vDay = 'Day';
            var vDays = 'Days';
            var vHour = 'Hour';
            var vHours = 'Hours';
            var vMinute = 'Minute';
            var vMinutes = 'Minutes';
            var vSecond = 'Second';
            var vSeconds = 'Seconds';
            var vUploadError = 'An error has occurred whist uploading your document, please try uploading the document again.';

            var vRES_YES = 'Yes';
            var vRES_NO = 'No';
            var vRES_CONTINUE = 'Continue';

            var vShowAlternativeMandatoryFields = false;

            var vRES_NO = 'No';
            var vRES_SESSIONTIMEOUT = 'Your session has been idle for 10 minutes.  To ensure your security, you will be logged out after 20 minutes of inactivity.<br /><br />Do you want to continue with the current session?';
            var vLogoutUrl = '/he/aspx/Login?a=Logout';
            var vRES_CANCEL = 'Cancel';

            var vRES_INCORRECTFORMAT = '*Incorrect Format, please remove';
            var vRES_INCORRECTFORMAT_EMAIL = '*Invalid Email Address';
            var vRES_INCORRECT_REGNREF = '*Please select a valid value';

            var UploadURL = "fileUploader/DocumentUpload.ashx";
	    //]]>
        </script>
        <script src="js/general.js?ver=05.16.02.06"></script>
        <script src="js/jquery.datalink.js?ver=05.16.02.06"></script>
        <script src="js/jquery.tmpl.min.js?ver=05.16.02.06"></script>
        <!-- HTML Decoder -->
        <script src="js/HTMLDecode.js?ver=05.16.02.06"></script>
        <script src="js/HTMLEncoder.js?ver=05.16.02.06"></script>
        <!-- JSON -->
        <script src="js/json2.min.js?ver=05.16.02.06"></script>
        <script src="js/fileuploader.js?ver=05.16.02.06"></script>
        <script>
            //<![CDATA[
            $(document).ready(function () {
                setupNavigationMenu(-2);
            });

            function setupNavigationMenu(vUser) {
                switch (vUser) {
                    case -2:
                        { // Admin
                            if ($('#AdministrationMenu').length) {
                                $("#AdministrationMenu").addClass('display_none');
                            }
                            if ($('#MyProfileMenu').length) {
                                $("#MyProfileMenu").addClass('display_none');
                            }
                        }
                        break;
                    case -1:
                        { // LoggedOut
                            if ($('#AdministrationMenu').length) {
                                $("#AdministrationMenu").removeClass('display_none');
                            }
                            if ($('#MyProfileMenu').length) {
                                $("#MyProfileMenu").addClass('display_none');
                            }
                        }
                        break;
                    default:
                        { //LoggedIn
                            if ($('#AdministrationMenu').length) {
                                $("#AdministrationMenu").addClass('display_none');
                            }
                            if ($('#MyProfileMenu').length) {
                                $("#MyProfileMenu").removeClass('display_none');
                            }
                        }
                        break;
                }
            }
	    //]]>
        </script>

        <!-- Start Open Web Analytics Tracker -->
        <script>
            //<![CDATA[
            var owa_baseUrl = 'https://analytics.in-tend.co.uk/';
            var owa_cmds = owa_cmds || [];
            owa_cmds.push(['setSiteId', '6d1a8b80c084d6c79e0b1ce4b6347a9b']);
            owa_cmds.push(['trackPageView']);
            owa_cmds.push(['trackClicks']);
            owa_cmds.push(['trackDomStream']);

            var bRegisterFunction = false;

            if (location.host.indexOf(".dudleybusinessfirst.org") >= 0 ||
                location.host.indexOf("in-tendhost.") >= 0 ||
                location.host.indexOf("ungm.") >= 0) {
                bRegisterFunction = true;
            }

            if (bRegisterFunction) {
                (function () {
                    var _owa = document.createElement('script'); _owa.type = 'text/javascript'; _owa.async = true;
                    owa_baseUrl = ('https:' == document.location.protocol ? window.owa_baseSecUrl || owa_baseUrl.replace(/http:/, 'https:') : owa_baseUrl);
                    _owa.src = owa_baseUrl + 'modules/base/js/owa.tracker-combined-min.js';
                    var _owa_s = document.getElementsByTagName('script')[0]; _owa_s.parentNode.insertBefore(_owa, _owa_s);
                });
            }
	    //]]>
        </script>
        <!-- End Open Web Analytics Code -->

        <script>
            //<![CDATA[
            var _gaq = _gaq || [];

            var bRegisterFunction = false;

            if (location.host.indexOf(".dudleybusinessfirst.org") >= 0) {
                _gaq.push(['_setAccount', 'UA-20679809-8']);
                bRegisterFunction = true;
            }
            else if (location.host.indexOf("in-tendhost.") >= 0) {
                _gaq.push(['_setAccount', 'UA-20679809-9']);
                bRegisterFunction = true;
            }
            else if (location.host.indexOf("ungm.") >= 0) {
                _gaq.push(['_setAccount', 'UA-20679809-12']);
                bRegisterFunction = true;
            }
            _gaq.push(['_trackPageview']);
        //]]>
        </script>

        <!-- Piwik -->
        <script>
            //<![CDATA[
            var iSiteID = -1;
            if (location.host.indexOf("in-tendhost.") >= 0) {
                iSiteID = 2;
            }
            else if (location.host.indexOf("ungm.") >= 0) {
                iSiteID = 5;
            }

            if (iSiteID > 0) {
                var _paq = _paq || [];
                _paq.push(['trackPageView']);
                _paq.push(['enableLinkTracking']);
                (function () {
                    var u = "//analytics.in-tend.co.uk/";
                    _paq.push(['setTrackerUrl', u + 'piwik.php']);
                    _paq.push(['setSiteId', iSiteID]);
                    var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
                    g.type = 'text/javascript'; g.async = true; g.defer = true; g.src = u + 'piwik.js'; s.parentNode.insertBefore(g, s);
                })();
            }
        //]]>
        </script>
        <noscript aria-hidden="true">
            <p>
                <img src="//analytics.in-tend.co.uk/piwik.php?idsite=2" style="border: 0;" alt="" />
            </p>
        </noscript>
        <!-- End Piwik Code -->




        <!--LanguageFiles http://jquery-ui.googlecode.com/svn/trunk/ui/i18n/ -->
        <script src="js/ui/jquery.ui.datepicker-gb.js?ver=05.16.02.06"></script>

        <script>
            var sHost = location.host;
            if (location.protocol != "https:" && sHost.indexOf("localhost") == -1) {
                window.location = "https://" + sHost + location.pathname + location.search;
            }
        </script>

        <noscript aria-hidden="true">
            ----------- <strong>This page is not functional with Javascript disabled or Javascript not available </strong>---------
        <br />
        </noscript>
        <form method="post" action="#" id="Master">
<div class="aspNetHidden">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="">
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJODk2NjkzMTQ4D2QWAmYPZBYCAgEPZBYIAgYPZBYCZg8QZGQWAGQCCQ9kFgICAQ8WAh4HVmlzaWJsZWgWAgIDD2QWAgIBDxBkZBYAZAIND2QWAgIBD2QWAmYPZBYCZg9kFgJmD2QWBAICD2QWAmYPZBYCZg9kFgJmD2QWAmYPZBYEAgsPFgIfAGgWBgIBDxYCHwBoFgJmDw8WAh8AaGRkAgMPFgIfAGgWAmYPDxYCHwBoZGQCBQ8WAh8AaBYCZg8PFgIfAGhkZAIPDxYCHwBnZAIFD2QWAmYPZBYCZg9kFgJmD2QWAmYPZBYEAgsPFgIfAGgWBgIBDxYCHwBoFgJmDw8WAh8AaGRkAgMPFgIfAGgWAmYPDxYCHwBoZGQCBQ8WAh8AaBYCZg8PFgIfAGhkZAIPDxYCHwBnZAIUD2QWAmYPEA8WBh4ORGF0YVZhbHVlRmllbGQFCFVuaXF1ZUlEHg1EYXRhVGV4dEZpZWxkBQZSZWFzb24eC18hRGF0YUJvdW5kZ2QQFQEAFQECLTEUKwMBZ2RkZKF/7NEDRgpPHj1ZOzdq/+mEDCQBMCkDPPh7zagtmkEf">
</div>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['Master'];
if (!theForm) {
    theForm = document.Master;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>


<script src="https://ajax.aspnetcdn.com/ajax/4.6/1/WebForms.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
window.WebForm_PostBackOptions||document.write('<script type="text/javascript" src="/he/WebResource.axd?d=PvK5dYdg8hwa_Jr7EymF79EoH43avIsKZ9Hf2yUL5_2FuLq9uHY9cFoa1EjGy5b5F3qpl-BGHcObxHQDkuiyIJDyghLVnEvu56NXt3CGOzA1&amp;t=637811731220000000"><\/script>');//]]>
</script>



<script src="https://ajax.aspnetcdn.com/ajax/4.6/1/MicrosoftAjax.debug.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
(window.Sys && Sys._Application && Sys.Observer)||document.write('<script type="text/javascript" src="/he/ScriptResource.axd?d=_728itG5mDD76VJJJZGyUYImotQ_9HBdqAq9zueG0Nnn8q3hoElKtPL9qP975logV1nm-4VYayvDnVQJiGEI6wZEhN_Js85iVUjxu5PHhLekHflnqTokItvyjC7l4Pap2pggUYASKuQS7aL3iHIN6Wv-OuYI0P3w_7xYS8kHBKJ4Lg4A_ynacNEtqMB0QWoR0&t=ffffffffaa493ab8"><\/script>');//]]>
</script>

<script type="text/javascript">
//<![CDATA[
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
//]]>
</script>

<script src="https://ajax.aspnetcdn.com/ajax/4.6/1/MicrosoftAjaxWebForms.debug.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
(window.Sys && Sys.WebForms)||document.write('<script type="text/javascript" src="/he/ScriptResource.axd?d=AZLI-AVpnBT8AzwyWoXKjVnwU7kHUBGTOslH7WyiTYq6DTZQT4N4-7ArzMVY4up5arf-vTaEMMGQ1cg1RFxoRViSAAnp3QHpO8wW0MgMv7YpSyNtGuk5DYMiVRU-KZfZS1zyiYAytRwsNDPHBKZtrg6prnVd0Uf-gJZ2aC7g--ZMGJIP_wwgCFHL049MWIuC0&t=ffffffffaa493ab8"><\/script>');//]]>
</script>

<div class="aspNetHidden">

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="7FAD8909">
</div>
            <script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ctl00$scriptManager', 'Master', [], [], [], 90, 'ctl00');
//]]>
</script>

            <!--If the Business 2 Business Mode in the Web Config is set to on use a different Article-->
            


    <script>
        // Tidy up some of the pages
        $(function () {
            // Tables
            var table = $('.topMenu table.ui-widget-content');
            $(table).removeAttr('class').wrap('<div class="box box-theme" />');
            $(table).addClass('table');
            $('.topMenu tr.ui-widget-header').removeAttr('class');

            // Help
            if (window.document.URL.indexOf('Help') <= 0) {
                $('#divHelp').removeAttr('class').addClass('box box-theme shadow');
                $('#divHelp').find('.ui-widget-content').removeAttr('class').addClass('box box-theme');
                $('#divHelp br').remove();
                $('#divHelp h3').removeAttr('class').addClass('box-header font-14 bold margin-0');
                $('#divHelp').find('input, select, textarea').addClass('form-control');
                $('#divHelp').find('table').removeAttr('class').addClass('table');

                if (!$('#divHelp').children().hasClass('box-body')) {
                    $('#divHelp').wrapInner('<div class="box-body" />');
                }

                $('.suggestions_label').parents('.box').not('#divHelp').addClass('suggestions_container');

                $('#divHelp').find('.box').each(function () {
                    if (!$(this).children().hasClass('box-body')) {
                        $(this).wrapInner('<div class="box-body" />');
                        $(this).find('h3').insertBefore($(this).find('.box-body'));
                    }
                });
            }
        });
    </script>


            
            <!--End of Business 2 Business Mode-->
            <!--If the Business 2 Business Mode in the Web Config is set to on use a different Article-->

            <!--End of Business 2 Business Mode-->
            

            <!--If the Business 2 Business Mode in the Web Config is set to on use a different Article-->
            
            <header class="main-header container">
                
                <div id="logo" class="text-center"><a href="https://in-tendhost.co.uk/he/" target="_blank"><img src="/he/banner.jpg" class="img-responsive" alt="HE Portal" title="HE Portal"></a></div>
                <nav class="navbar navbar-default" id="navbar">
                    <div class="navbar-header">
                        <span class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbarPortal" aria-expanded="false">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </span>
                    </div>
                    <div class="collapse navbar-collapse" id="navbarPortal">
                        <ul class="nav navbar-nav">
                            <li id="home" class="active"><a href="Home"><span class="fa fa-home menu-icon"></span><span class="menu-item-pad">Home</span></a></li><li id="buyerprofiletext"><a href="BuyerProfiles"><span class="fa fa-user menu-icon"></span><span class="menu-item-pad">Supplier Guidance</span></a></li><li id="tenders" class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="fa fa-file-text-o menu-icon"></span><span class="menu-item-pad">Tenders</span></a><ul class="dropdown-menu"><li><a href="Tenders/Awarded" id="sm_16"><span class="fa fa-circle-o"></span> Awarded</a></li><li><a href="Tenders/Current" id="sm_14"><span class="fa fa-circle-o"></span> Current </a></li><li><a href="Tenders/Forthcoming" id="sm_15"><span class="fa fa-circle-o"></span> Forthcoming</a></li></ul></li><li id="contracts" class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="fa fa-file-text-o menu-icon"></span><span class="menu-item-pad">Contracts</span></a><ul class="dropdown-menu"><li><a href="Contracts/Current" id="sm_19"><span class="fa fa-circle-o"></span> Current </a></li></ul></li><li id="register"><a href="Registration"><span class="fa fa-edit menu-icon"></span><span class="menu-item-pad">Register</span></a></li><li id="help"><a href="Help"><span class="fa fa-question-circle menu-icon"></span><span class="menu-item-pad">Help</span></a></li>
                        </ul>

                        
                    </div>
                </nav>
            </header>
            
            <!--End of Business 2 Business Mode-->

            <div id="FooterBuildInfo" class="Horizontal-Lang">
                
    

    <script type="text/javascript">
        function UpdateLanguage(UserLanguage) {
            Proxy.postAjax(
                "UserService",
                "UpdateLanguage",
                JSON.stringify({
                    "strLanguage": UserLanguage
                }),
                function (data) {
                    hideLoading();
                    window.location.reload();
                });
        }
    </script>

            </div>

            

            
            
            <div id="TimeoutMessage" title="Message" style="display: none;">
                <p id="TimeoutMessageText">
                </p>
            </div>
            <div id="ExtendedMessageBox" title="Message">
            </div>
            <div id="ExtendedImageBox" title="Image" style="display: none;">
            </div>
            <div id="divCleanLoading" class="main_content">
                <!--If the Business 2 Business Mode in the Web Config is set to on use a different Article-->
                


    <script>
        // Tidy up some of the pages
        $(function () {
            // Tables
            var table = $('.topMenu table.ui-widget-content');
            $(table).removeAttr('class').wrap('<div class="box box-theme" />');
            $(table).addClass('table');
            $('.topMenu tr.ui-widget-header').removeAttr('class');

            // Help
            if (window.document.URL.indexOf('Help') <= 0) {
                $('#divHelp').removeAttr('class').addClass('box box-theme shadow');
                $('#divHelp').find('.ui-widget-content').removeAttr('class').addClass('box box-theme');
                $('#divHelp br').remove();
                $('#divHelp h3').removeAttr('class').addClass('box-header font-14 bold margin-0');
                $('#divHelp').find('input, select, textarea').addClass('form-control');
                $('#divHelp').find('table').removeAttr('class').addClass('table');

                if (!$('#divHelp').children().hasClass('box-body')) {
                    $('#divHelp').wrapInner('<div class="box-body" />');
                }

                $('.suggestions_label').parents('.box').not('#divHelp').addClass('suggestions_container');

                $('#divHelp').find('.box').each(function () {
                    if (!$(this).children().hasClass('box-body')) {
                        $(this).wrapInner('<div class="box-body" />');
                        $(this).find('h3').insertBefore($(this).find('.box-body'));
                    }
                });
            }
        });
    </script>


                
                <!--End of Business 2 Business Mode-->
                <div class="content-wrapper" style="min-height: 480px;">
                    
                    <div class="content container horizontal">
                        
                            <div class="row" style="display: none">
                                <div class="col-md-12 padding-bottom-20">
                                    <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
                                        <span class="fa fa-bars fa-2x"></span>
                                        <span class="sr-only">Toggle</span>
                                    </a>
                                </div>
                            </div>
                            
    <div id="content-dmbc">
        
<div class="row">
    <div class="col-md-12 text-center">
        <div id="Emailwarning" class="alert alert-danger mb-0">
            <h4><span style="text-decoration-line: underline; color: inherit;">Software Upgrade</span></h4>
<br>
<p>In-tend will be down for software upgrade&nbsp;<span style="font-weight: bold; text-wrap: nowrap;"><u>Friday 13th December 2024 22:00 GMT</u></span>&nbsp;whilst&nbsp;<span style="font-weight: bold; text-wrap: nowrap;"><u>Sunday 15th December 2024 22:00 GMT</u></span>.</p>
<p>If you have any queries regarding the maintenance period, please do not hesitate to contact our In-tend Support team via email:&nbsp;<a href="mailto:[email protected]">[email protected]</a>.</p></div>
    </div>
</div>
<div class="home-center">
    <div id="section">
        <!--If the Business 2 Business Mode in the Web Config is set to on use a different Article-->
        
<div id="ExpressInterest" class="alert alert-warning display_none">
    <strong>NOTE: </strong>To continue expressing interest in the tender please log into an existing account or register a new one.
</div>
<script type="text/javascript">
    //<![CDATA[
    var nowUrl = location.href;
    if (nowUrl.indexOf("aspx/Login") > 0) {
        $('#ExpressInterest').removeClass('display_none');
    }
    //]]>

    var vSecurityCode_Message = 'You are now required to enter a security code in order to access the system. This has been sent to your registered email address. Please check your inbox and enter the security code to complete the login process.';
</script>
<div id="LoginControl" class="section-login">
	
    <div id="divStandardLoginDetails" class="">
        <h1>Login</h1>
        <div id="divID" class="form-group display_none">
            <label for="txtID" class="sr-only">
                User ID:
            </label>
            <input id="txtID" type="text" maxlength="256" class="form-control" placeholder="User ID" title="User ID">
        </div>
        <div id="divEmail" class="form-group">
            <label for="txtEmail" class="sr-only">
                e-Mail Address :
            </label>
            <input id="txtEmail" type="text" maxlength="256" class="form-control" placeholder="Email Address" title="Email Address">
        </div>
        <div id="divPassword" class="form-group">
            <label for="txtPassword" class="sr-only">
                Password :
            </label>
            <input id="txtPassword" type="password" maxlength="256" class="form-control" placeholder="Password" title="Password">
        </div>
    </div>
    <div id="pnlSecurityCode" class="display_none">
        <div id="divSecurtiyCode">
            <label for="txtSecurityCode">
                Security Code:
            </label>
            <input id="txtSecurityCode" type="text" maxlength="12" class="form-control">
            <input id="txtHash" type="text" style="display: none;" class="form-control" title="Hash">
            <button type="button" id="btnResendSecurityCode" style="width: 100% !important; text-align: left;" class="btn-link ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" onclick="javascript:Resend2FASecurityCode()" role="button" aria-disabled="false"><span class="ui-button-text">Resend Security Code</span></button>
        </div>
    </div>
    <div id="divAdditialDetails" class="display_none">
        <div id="divPin" class="form-group display_none">
            <table class="table table-noborder">
                <tbody><tr>
                    <th>
                        <label>
                            PIN&nbsp;:</label>
                    </th>
                    <th id="Pin1">
                        <label for="cboPinVal1">Pin1</label>
                    </th>
                    <th id="Pin2">
                        <label for="cboPinVal2">Pin2</label>
                    </th>
                    <th id="Pin3">
                        <label for="cboPinVal3">Pin3</label>
                    </th>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <select id="cboPinVal1" class="form-control form-control-sm">
                            <option>0</option>
                            <option>1</option>
                            <option>2</option>
                            <option>3</option>
                            <option>4</option>
                            <option>5</option>
                            <option>6</option>
                            <option>7</option>
                            <option>8</option>
                            <option>9</option>
                        </select>
                    </td>
                    <td>
                        <select id="cboPinVal2" class="form-control form-control-sm">
                            <option>0</option>
                            <option>1</option>
                            <option>2</option>
                            <option>3</option>
                            <option>4</option>
                            <option>5</option>
                            <option>6</option>
                            <option>7</option>
                            <option>8</option>
                            <option>9</option>
                        </select>
                    </td>
                    <td>
                        <select id="cboPinVal3" class="form-control form-control-sm">
                            <option>0</option>
                            <option>1</option>
                            <option>2</option>
                            <option>3</option>
                            <option>4</option>
                            <option>5</option>
                            <option>6</option>
                            <option>7</option>
                            <option>8</option>
                            <option>9</option>
                        </select>
                    </td>
                </tr>
            </tbody></table>
        </div>
        <div id="divSetPin" class="display_none">
            <div class="form-group">
                <label for="txtSetPin">
                    Set PIN :</label>
                <input id="txtSetPin" type="password" maxlength="4" class="form-control" onkeypress="javascript:return NumKP(event,this,false,false);">
            </div>
            <div class="form-group">
                <label for="txtSetPinConfirm">
                    Confirm PIN :</label>
                <input id="txtSetPinConfirm" type="password" maxlength="4" class="form-control" onkeypress="javascript:return NumKP(event,this,false,false);">
            </div>
        </div>
        <div id="divPassPhrase" class="display_none">
            <div class="form-group">
                <label for="txtPassPhraseValue">
                    Pass Phrase :</label>
                <input id="txtPassPhraseValue" type="password" maxlength="12" class="form-control" onkeypress="javascript:return AlphaNumKP(event, false);">
            </div>
            <div class="form-group">
                <label>
                    Pass Phrase Reminder :</label>
                <div class="pass_phrase_reminder" id="divPassPhraseReminder">
                </div>
            </div>
        </div>
        <div id="divSetPassPhrase" class="display_none">
            <div class="form-group">
                <label for="txtSetPassPhrase">
                    Set Pass Phrase :</label>
                <input id="txtSetPassPhrase" type="password" maxlength="12" class="form-control" onkeypress="javascript:return AlphaNumKP(event, false);">
            </div>
            <div class="form-group">
                <label for="txtSetPassPhraseConfirm">
                    Confirm Pass Phrase :</label>
                <input id="txtSetPassPhraseConfirm" type="password" maxlength="12" class="form-control" onkeypress="javascript:return AlphaNumKP(event, false);">
            </div>
            <div class="form-group">
                <label for="txtSetPassPhraseReminder">
                    Set Pass Phrase Reminder :</label>
                <input id="txtSetPassPhraseReminder" type="text" maxlength="256" class="form-control">
            </div>
        </div>
    </div>
    <div id="divError" class="alert alert-danger display_none">
    </div>
    
    <div class="row margin-bottom-10">
        <div class="col-xs-12">
            <button id="btnLogout" type="button" onclick="location.href='../aspx/home/?a=LOGOUT'" class="btn btn-default btn-block ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only display_none" role="button" aria-disabled="false"><span class="ui-button-text">
                Logout</span></button>
        </div>
        <div class="col-xs-4 col-sm-12 col-md-4">
            <button title="" class="btn btn-default ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" type="submit" id="btnLogin" onclick="Login(); return false;" role="button" aria-disabled="false"><span class="ui-button-text">
                Login</span></button>
        </div>
        <div class="col-xs-8 col-sm-12 col-sm-8 text-right">
            <button id="MainContent_articleHolder_ctl01_partlogin_ctl01_btnForgottenDetails" type="button" word-wrap="break-word" width="30%" class="btn btn-link ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" onclick="javascript:NavigateTo('PasswordRecovery');" role="button" aria-disabled="false"><span class="ui-button-text">
                Forgotten Details</span></button>
        </div>
    </div>
    <div id="BadLogins" class="alert alert-warning">
        <strong>NOTE:</strong> Please be aware that failure to provide correct login information <u>three</u> times will result in your account being locked
    </div>
    
    <div class="form-group" id="Register_">
        <button id="MainContent_articleHolder_ctl01_partlogin_ctl01_btnRegister" type="button" class="btn btn-block btn-default ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" onclick="javascript:NavigateTo('Registration');" role="button" aria-disabled="false"><span class="ui-button-text">
            Register</span></button>
    </div>

    
    <div class="form-group" id="InCommunity">
        <button id="MainContent_articleHolder_ctl01_partlogin_ctl01_btnincommunity" type="button" class="btn btn-block btn-default ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" onclick="window.open('http://www.in-tend.co.uk/incommunity','_blank');" role="button" aria-disabled="false"><span class="ui-button-text">
            in-community</span></button>
    </div>
    
    <div class="form-group text-center" id="InSupply" style="margin: 30px auto;">
        <a href="https://in-tend.co.uk/insupply" target="_blank">
            <img class="insupply" style="max-width: 100%;" alt="In-supply" src="https://in-tend.co.uk/images/In-supply.png">
        </a>
    </div>
    
</div>

<script type="text/javascript">
    //<![CDATA[
    var nowUrl = location.href;
    if (nowUrl.indexOf("Login") < 0) {
        $('#BadLogins').removeClass('display_none');
    }

    if (nowUrl.indexOf("Login") > 0) {
        $("#InCommunity, #InSupply").addClass("display_none");
        $("#LoginControl").addClass("box box-theme shadow");
        $("#LoginControl").wrapInner('<div class="box-body" />');
        $('#LoginControl, #ExpressInterest').wrap('<div class="col-xs-12"></div>');
        $("#btnLogin").addClass("width_50");
        $("#ExpressInterest").addClass("margin-top-10");

        $("#content-dmbc").wrap('<div class="row" />').wrap('<div class="col-xs-12 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3" />').wrap('<div class="box box-theme shadow" />');
        $("#content-dmbc").wrapInner('<div class="box-body" />');
    }

    setNavActive("home");
    //]]>
</script>

<script type="text/javascript">
    //<![CDATA[
    var m_vLoginDetails = null;
    var vLockedEmail = '';
    var vDepartment = 'Procurement';
    var vDepartmentEmail = '[email protected]';
    var vTechnicalEmail = '[email protected]';
    var vSupportPhone = '+44 (0) 114 407 0065';
    var vTechnicalPhone = '+44 (0) 114 407 0065';
    var v2FATimer = 60;

    CloseExtendedMessage = CloseExtMsgBox;

    $(document).ready(function () {
        m_vLoginDetails = null;
        ShowLoginBoxByLoggedIn(false, false);

        $('#txtEmail').keypress(function (event) {
            if (event.keyCode == '13') {
                event.preventDefault();
                Login();
                return false;
            }
        });

        $('#txtPassword').keypress(function (event) {
            if (event.keyCode == '13') {
                event.preventDefault();
                Login();
                return false;
            }
        });

        $('#txtID').keypress(function (event) {
            if (event.keyCode == '13') {
                event.preventDefault();
                Login();
                return false;
            }
        });
    });

    function Login() {
        showLoading();
        //m_vLoginDetails will be null on first login attempt 
        //subsequent logins will use m_vLoginDetails as additional details such as PIN and passphrase are required
        //login details will need to be rebound to m_vLoginDetails as the server NEVER returns these values in the object

        // Check to see if we should be providing a security code.
        if ($('#pnlSecurityCode').is(':visible')) {
            Proxy.doAjax(
                "Login",
                "CheckSecurityCode",
                {
                    "strUsername": $('#txtEmail').val(),
                    "strSecurityCode": $('#txtSecurityCode').val(),
                    "strHash": $('#txtHash').val()
                },
                function (result) {
                    if (result.LoggedIn) {
                        if (result.Redirection.length > 0) {
                            window.location.href = result.Redirection;
                        }

                        if (result.Redirection.lastIndexOf('/aspx/') != -1) {
                            NavigateTo(result.Redirection.substring(result.Redirection.lastIndexOf('/aspx/') + 6));
                        }
                        else {
                            NavigateTo(result.Redirection);
                        }
                    }
                    else {
                        // Show an error message and let the user know that they should try logging in again.
                        $('#divError').html('The security code entered has not been validated, please try logging into the system again.');
                        $('#txtEmail').val('');
                        $('#txtPassword').val('');
                        $('#txtSecurityCode').val('');
                        ShowLoginBoxByLoggedIn(false, true);
                        m_vLoginDetails = null;
                        hideLoading();
                    }
                });
        }
        else {
            if (m_vLoginDetails == null) {
                $('#divError').addClass('display_none');

                Proxy.doAjax(
                    "Login",
                    "CheckLogin",
                    {
                        "strUsername": $('#txtEmail').val(),
                        "strPassword": htmlEncode($('#txtPassword').val()),
                        "strID": $('#txtID').val()
                    },
                    function (vDetails) {
                        CheckLoginDetails(vDetails);
                    },
                    function (req, status, error) {
                        BindDataError(req, status, error);
                    });
            }
            else {
                if (m_vLoginDetails.bSetPin && $('#txtSetPin').val().length < 3) {//set pin length to short
                    $('#divError').html('Pin must be 4 or more digits long');
                    $('#divError').removeClass('display_none');
                    hideLoading();
                }
                else if ($('#txtSetPin').val() != $('#txtSetPinConfirm').val()) {//doesnt match
                    $('#divError').html('The PIN codes you have entered do not match');
                    $('#divError').removeClass('display_none');
                    hideLoading();
                }
                else if (m_vLoginDetails.bSetPhrase && $('#txtSetPassPhrase').val().length == 0) {// no pass phrase set
                    $('#divError').html('the Pass phrase is invalid');
                    $('#divError').removeClass('display_none');
                    hideLoading();
                }
                else if ($('#txtSetPassPhrase').val() != $('#txtSetPassPhraseConfirm').val()) {//doesnt match
                    $('#divError').html('The pass phrases you have entered do not match');
                    $('#divError').removeClass('display_none');
                    hideLoading();
                }
                else {
                    $('#divError').html('');
                    $('#divError').addClass('display_none');
                    Proxy.doAjax("Login",
                        "CheckLoginFull",
                        {
                            "strUsername": $('#txtEmail').val(),
                            "strPassword": htmlEncode($('#txtPassword').val()),
                            "strID": $('#txtID').val(),

                            "strPinVal1": $('#cboPinVal1').val(),
                            "strPinVal2": $('#cboPinVal2').val(),
                            "strPinVal3": $('#cboPinVal3').val(),
                            "strPassPhraseValue": $('#txtPassPhraseValue').val(),
                            "strSetPin": $('#txtSetPin').val(),
                            "strSetPassPhrase": $('#txtSetPassPhrase').val(),
                            "strSetPassPhraseReminder": $('#txtSetPassPhraseReminder').val(),

                            "iPinPos1": m_vLoginDetails.iPinPos1,
                            "iPinPos2": m_vLoginDetails.iPinPos2,
                            "iPinPos3": m_vLoginDetails.iPinPos3,

                            "bSetPhrase": m_vLoginDetails.bSetPhrase,
                            "bSetPin": m_vLoginDetails.bSetPin,
                            "bReqPhrase": m_vLoginDetails.bReqPhrase,
                            "bReqPin": m_vLoginDetails.bReqPin
                        },
                        function (vDetails) {
                            CheckLoginDetails(vDetails);
                        },
                        function (req, status, error) {
                            BindDataError(req, status, error);
                        });
                }
            }
        }
    }

    function htmlEncode(value) {
        return $('<div/>').text(value).html();
    }

    function CheckLoginDetails(vDetails) {
        m_vLoginDetails = vDetails;
        if (vDetails.bLoggedIn) {
            if (vDetails.strRedirectUrl.length > 0) {
                if (vDetails.strRedirectUrl.lastIndexOf('/aspx/') != -1) {
                    NavigateTo(vDetails.strRedirectUrl.substring(vDetails.strRedirectUrl.lastIndexOf('/aspx/') + 6));
                }
                else {
                    NavigateTo(vDetails.strRedirectUrl);
                }
            }
            else {
                //You have logged in
                ShowLoginBoxByLoggedIn(true, false);
                hideLoading();
            }
        }
        // Do we need to provide a security key?
        else if (vDetails.RequiresTwoFactorAuthentication) {
            $('#txtHash').val(vDetails.TwoFactorCode);
            $('#divStandardLoginDetails').addClass('display_none');
            $('#divAdditialDetails').addClass('display_none');
            $('#pnlSecurityCode').removeClass('display_none');
            Start2FATimer();
            hideLoading();
            showMessage(vSecurityCode_Message);
        }
        else {
            switch (vDetails.iLoginFailed) {
                case 2 :
                    var vReqPin = false;
                    var vReqPassPhrase = false;
                    var vSetPin = false;
                    var vSetPassPhrase = false;

                    //Check PIN 
                    if (vDetails.bSetPin) {
                        //show the set pin div
                        $('#txtSetPin').val('');
                        vSetPin = true;
                    }
                    else if (vDetails.bReqPin) {
                        //show the enter pin div

                        $('#Pin1').html(vDetails.iPinPos1);
                        $('#Pin2').html(vDetails.iPinPos2);
                        $('#Pin3').html(vDetails.iPinPos3);

                        vReqPin = true;
                    }

                    //Check PassPhrase
                    if (vDetails.bSetPhrase) {
                        //show the set Pass Phrase div
                        $('#txtSetPassPhrase').val('');
                        $('#txtSetPassPhraseReminder').val('');
                        vSetPassPhrase = true;
                    }
                    else if (vDetails.bReqPhrase) {
                        //show the enter Pass Phrase div
                        $('#txtPassPhraseValue').val('');
                        $('#divPassPhraseReminder').html(vDetails.strPassPhrase);
                        vReqPassPhrase = true;
                    }
                    ShowLoginBox(false, vReqPin, vReqPassPhrase, vSetPin, vSetPassPhrase, false);
                    hideLoading();
                    break;
                case 0 :
                    //Show Invalid Details message
                    $('#divError').html('The login details supplied are invalid');
                    ShowLoginBoxByLoggedIn(false, true);
                    m_vLoginDetails = null;
                    hideLoading();
                    break;
                case 7 :
                    //Show Invalid Details message
                    $('#divError').html('This account is awaiting approval');
                    ShowLoginBoxByLoggedIn(false, true);
                    m_vLoginDetails = null;
                    hideLoading();
                    break;
                case 6 :
                    //Show Invalid Details message
                    $('#divError').html('This account has been disabled please contact procurement');
                    ShowLoginBoxByLoggedIn(false, true);
                    m_vLoginDetails = null;
                    hideLoading();
                    break;
                case 1 :
                    //Show Account locked message
                    $('#divError').html('Your account has been locked.');
                    ShowLoginBoxByLoggedIn(false, true);
                    m_vLoginDetails = null;
                    hideLoading();
                    vLockedEmail = $('#txtEmail').val();
                    var vButtons = addExtMsgBoxButtons(new Array(), 'Unlock Account', function () { SendUnlockAccountEmail(); });
                    vButtons = addExtMsgBoxButtons(vButtons, 'Close', function () { CloseExtMsgBox(); });
                    showExtMsgBox('Your account has been locked.', 'Your account has been locked. To unlock your account click the Unlock Account button below.', vButtons);
                    break;
                case 3 :
                    //Show Account locked message
                    $('#divError').html('The password supplied is invalid');
                    ShowLoginBoxByLoggedIn(false, true);
                    m_vLoginDetails = null;
                    hideLoading();
                    break;
                case 4 :
                    //Show Account locked message
                    $('#divError').html('The PIN supplied is invalid');
                    ShowLoginBoxByLoggedIn(false, true);
                    m_vLoginDetails = null;
                    hideLoading();
                    break;
                case 5 :
                    //Show Account locked message
                    $('#divError').html('The pass phrase supplied is invalid');
                    ShowLoginBoxByLoggedIn(false, true);
                    m_vLoginDetails = null;
                    hideLoading();
                    break;
                case 8 :
                    //Show Invalid Details message
                    $('#divError').html('You need to verify your account before you can access the site. You should have received an email containing your verification code.');
                    ShowLoginBoxByLoggedIn(false, true);
                    m_vLoginDetails = null;
                    hideLoading();
                    break;
                case 9 :
                    var error = 'Failed to login';
                    $('#divError').html(error);
                    ShowLoginBoxByLoggedIn(false, true);
                    m_vLoginDetails = null;
                    hideLoading();

                    var message = 'Please contact [DEPARTMENT] at [SUPPORT_EMAIL] or call us on: [SUPPORT_PHONE]';
                    message = replaceContactPlaceholders(message);
                    showExtMsgBox(error, message);
                    break;
                default:
                    m_vLoginDetails = null;
                    ShowLoginBoxByLoggedIn(false, false);
                    hideLoading();
                    break;
            }

            if (vDetails.iLoginFailed != 2) {
                //reset the login details
                $('#txtEmail').val('');
                $('#txtPassword').val('');
                $('#txtID').val('');
            }
        }
        return false;
    }

    function Start2FATimer() {
        v2FATimer = 6;
        // timer restarted, make sure the button can't be clicked again
        $("#btnResendSecurityCode").prop('disabled', true);
        var stopwatch = setInterval(function () {
            $("#btnResendSecurityCode").html('Resend Security Code (' + (v2FATimer-- - 1) + ')');

            if (v2FATimer == 0) {
                clearInterval(stopwatch);
                $("#btnResendSecurityCode").html('Resend Security Code');
                $("#btnResendSecurityCode").prop('disabled', false);
            }
        }, 1000);
    }

    function Resend2FASecurityCode() {
        if (v2FATimer > 0) {
            return;
        }

        showLoading();
        Proxy.postAjax("Login", "ResendSecurityCode",
            '{   "strEmail" : "' + $('#txtEmail').val() + '" }',
            function (result) {
                hideLoading();
                if (result.ResendSecurityCodeResult) {
                    showMessage('The security code has been sent to your email.');
                    // restart the timer
                    Start2FATimer();
                }
                else {
                    $('#divError').html('There was an issue sending the security code, please log in and try again.');
                    $('#txtEmail').val('');
                    $('#txtPassword').val('');
                    $('#txtSecurityCode').val('');
                    ShowLoginBoxByLoggedIn(false, true);
                    m_vLoginDetails = null;
                }
            });
    }

    function ShowLoginBoxByLoggedIn(vLoggedIn, vMessage) {
        ShowLoginBox(vLoggedIn, false, false, false, false, vMessage)
    }

    function ShowLoginBox(vLoggedIn, vReqPin, vReqPassPhrase, vSetPin, vSetPassPhrase, vMessage) {
        //hide everything and unhide as we go down
        $('#divStandardLoginDetails').addClass('display_none');
        $('#pnlSecurityCode').addClass('display_none');
        $('#divEmail').addClass('display_none');
        $('#divPassword').addClass('display_none');
        $('#divID').addClass('display_none');

        $('#divAdditialDetails').addClass('display_none');
        $('#divPin').addClass('display_none');
        $('#divSetPin').addClass('display_none');
        $('#divPassPhrase').addClass('display_none');
        $('#divSetPassPhrase').addClass('display_none');

        $('#divError').addClass('display_none');

        $('#btnLogin').addClass('display_none');
        $('#btnLogout').addClass('display_none');

        if (vLoggedIn) {
            //show logout button
            $('#btnLogout').removeClass('display_none');
            $('#BadLogins').addClass('display_none');

        }
        else {
            $('#btnLogin').removeClass('display_none');

            if (vReqPin || vReqPassPhrase || vSetPin || vSetPassPhrase) {
                $('#divAdditialDetails').removeClass('display_none');

                //show the additional login details
                if (vReqPin) {
                    $('#divPin').removeClass('display_none');
                }
                if (vReqPassPhrase) {
                    $('#divPassPhrase').removeClass('display_none');
                }
                if (vSetPin) {
                    $('#divSetPin').removeClass('display_none');
                }
                if (vSetPassPhrase) {
                    $('#divSetPassPhrase').removeClass('display_none');
                }
            }
            else {
                //show standard Login details
                $('#divStandardLoginDetails').removeClass('display_none');

                if (true) {
                    $('#divEmail').removeClass('display_none');
                }

                $('#divPassword').removeClass('display_none');

                if (false) {
                    $('#divID').removeClass('display_none');
                }
            }
        }

        if (vMessage) {
            //show the user message div usually containing failed login error message
            $('#divError').removeClass('display_none');
        }
    }

    function SendUnlockAccountEmail() {
        CloseExtMsgBox();
        showLoading();
        Proxy.postAjax("Login", "SendUnlockAccountEmail",
            '{   "strEmail" : "' + EncodeQuotes(vLockedEmail) + '" }',
            function (result) {
                hideLoading();
                if (result.SendUnlockAccountEmailResult) {
                    showMessage('An e-Mail has been sent to your account with instructions on how to unlock your account.');
                }
                else {
                    var vMessage = "Failed to send unlock account e-Mail.  To unlock your account please contact [DEPARTMENT] at [SUPPORT_EMAIL] or call us on ets: [SUPPORT_PHONE] ";
                    message = replaceContactPlaceholders(vMessage);
                    showMessage(vMessage);
                }
            });
    }

    function replaceContactPlaceholders(message) {
        message = message.replace('[DEPARTMENT]', vDepartment);
        message = message.replace('[SUPPORT_EMAIL]', vDepartmentEmail);
        message = message.replace('[TECHNICAL_EMAIL]', vTechnicalEmail);
        message = message.replace('[SUPPORT_PHONE]', vSupportPhone);
        message = message.replace('[TECHNICAL_PHONE]', vTechnicalPhone);

        return message;
    }
    //]]>
</script>

        
        <!--End of Business 2 Business Mode-->
        <div class="section-text">
            <!-- Custom message from support -->

            <p class="font-20 bold padding-top-20">
                Welcome to the HE Portal electronic tendering process
            </p>
            <p>
                <strong>
                    From this web site you can</strong>
            </p>
            <ul class="margin-list">
                <li>
                    View a list of tenders/contracts/quotations.
                </li>
                
                    <li>
                        View information on contracts that have already been awarded.
                    </li>
                    
                    <li>
                        Express interest in a particular tender or quotation.
                    </li>
                
                <li>
                    Receive tender and/or quotation documentation.
                </li>
                <li id="MainContent_articleHolder_ctl01_liSafelyReturn">
                    Safely return your tender or quotation documents.
                </li>
                
                                <li>
                                    Send and receive correspondence.
                                </li>
                            
            </ul>
            <p>
                <strong>
                    How do I get started?</strong>
            </p>
            
            <ul class="margin-list">
                
                <li>
                    To browse the list of tenders and quotations select the <strong>Tenders</strong> option. If you are interested in any of those listed, click the <strong>View Details</strong> button for further information and to express your interest.</li>
                
                <li>
                    To gain full access to this web site you must register your <u>company / organisation</u> using the <strong>Register</strong> option.</li>
                
                <li>
                    When your registration has been accepted, you will receive an email containing your Login Information.</li>
                
                <li>
                    Once you have received your Login Information, or if you are already a registered user, select the <strong>Login</strong> option.
                </li>
                
            </ul>
            
            <p>
                <em>
                    For more information on using the web site select the Help option.</em>
            </p>
            
            <p>
                <strong>
                    HE Portal
                    procurement policies and initiatives.</strong>
            </p>
            <ul>
                <li>
                    For further information on
                    HE Portal
                    procurement policies and initiatives please click on the following link.
                    <a class="pointer" onclick="javascript:WindowOpen('');">
                        </a> </li>
            </ul>
            

            <!-- Custom message from support (Footer - logged out only)-->
            <!-- REMOVE THIS LINE FOR FOOTER MSG (1/2)
        <br />
        <div class="ui-widget-container ui-corner-all">
	        <div id="FooterWarning" class="ui-state-error" style="text-align:center; padding : 10px;">
                </div>
        </div>
        REMOVE THIS LINE FOR FOOTER MSG (2/2) -->
            <!-- End custom message -->
        </div>
    </div>
</div>



    <script>
        // Tidy up some of the pages
        $(function () {
            // Tables
            var table = $('.topMenu table.ui-widget-content');
            $(table).removeAttr('class').wrap('<div class="box box-theme" />');
            $(table).addClass('table');
            $('.topMenu tr.ui-widget-header').removeAttr('class');

            // Help
            if (window.document.URL.indexOf('Help') <= 0) {
                $('#divHelp').removeAttr('class').addClass('box box-theme shadow');
                $('#divHelp').find('.ui-widget-content').removeAttr('class').addClass('box box-theme');
                $('#divHelp br').remove();
                $('#divHelp h3').removeAttr('class').addClass('box-header font-14 bold margin-0');
                $('#divHelp').find('input, select, textarea').addClass('form-control');
                $('#divHelp').find('table').removeAttr('class').addClass('table');

                if (!$('#divHelp').children().hasClass('box-body')) {
                    $('#divHelp').wrapInner('<div class="box-body" />');
                }

                $('.suggestions_label').parents('.box').not('#divHelp').addClass('suggestions_container');

                $('#divHelp').find('.box').each(function () {
                    if (!$(this).children().hasClass('box-body')) {
                        $(this).wrapInner('<div class="box-body" />');
                        $(this).find('h3').insertBefore($(this).find('.box-body'));
                    }
                });
            }
        });
    </script>


    </div>
    

                        </div>
                        
                    </div>
                </div>
                
                <div style="height: 40px;"></div>
                

                <!--end Wrapper-->
                
                <!--If the Business 2 Business Mode in the Web Config is set to on use a different Article-->
                

<footer class="footer">
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-4"></div>
            <div class="col-sm-4 text-center">
                <div style="margin-bottom: 3px">
                    <a href="https://www.in-tend.co.uk/legal" style="color: #ffffff" target="_blank">Terms of Use and Legal</a>
                </div>
                <div>
                    Copyright © 
                    2024
                    In-Tend Limited.
                     All Rights Reserved.
                </div>
            </div>
            <div class="col-sm-4 text-right" style="margin-top: 10px;">
                <span class="margin-right-10">
                    <strong>Server:</strong>
                    SUPWEB2
                </span>
                <span class="margin-right-10">
                    <strong>Build Date:</strong>
                    16/10/2024
                </span>
                <span>
                    <strong>Version:</strong>
                    05.16.02.06
                </span>
            </div>
        </div>
    </div>
</footer>



    <script>
        // Tidy up some of the pages
        $(function () {
            // Tables
            var table = $('.topMenu table.ui-widget-content');
            $(table).removeAttr('class').wrap('<div class="box box-theme" />');
            $(table).addClass('table');
            $('.topMenu tr.ui-widget-header').removeAttr('class');

            // Help
            if (window.document.URL.indexOf('Help') <= 0) {
                $('#divHelp').removeAttr('class').addClass('box box-theme shadow');
                $('#divHelp').find('.ui-widget-content').removeAttr('class').addClass('box box-theme');
                $('#divHelp br').remove();
                $('#divHelp h3').removeAttr('class').addClass('box-header font-14 bold margin-0');
                $('#divHelp').find('input, select, textarea').addClass('form-control');
                $('#divHelp').find('table').removeAttr('class').addClass('table');

                if (!$('#divHelp').children().hasClass('box-body')) {
                    $('#divHelp').wrapInner('<div class="box-body" />');
                }

                $('.suggestions_label').parents('.box').not('#divHelp').addClass('suggestions_container');

                $('#divHelp').find('.box').each(function () {
                    if (!$(this).children().hasClass('box-body')) {
                        $(this).wrapInner('<div class="box-body" />');
                        $(this).find('h3').insertBefore($(this).find('.box-body'));
                    }
                });
            }
        });
    </script>


                <!--End of Business 2 Business Mode-->
                
                <script>
                    //<![CDATA[
                    var vInputString = "";
                    var vVal = "";
                    $(document).ready(function () {
                        $('#divCleanLoading').removeClass("display_none");

                        $(".box").addClass("shadow");
                    });

                    $(".submit_e_form").click(function () {
                        var bValid = true;
                        $(".submission_e_forms :input").each(
                            function (index) {
                                //check to see if this has passed validation
                                if (!$($(this)[0]).valid()) {
                                    bValid = false;
                                }
                                //This is for the questions defined in the forms
                                if ($(this)[0].type == "hidden") {
                                    vInputString = vInputString + $(this).attr("FieldName") + '¬';
                                }
                                //This will display which checkbox or radio button has been selected
                                else if ($(this)[0].type == "checkbox" || $(this)[0].type == "radio") {
                                    if ($(this)[0].checked) {
                                        vInputString = vInputString + $(this).attr("FieldName") + '¬';
                                    }
                                }
                                //This will display the value in any textboxes
                                else if ($(this)[0].type == "text") {
                                    vVal = $(this).val();
                                    vInputString = vInputString + $(this).attr("FieldName") + ': ' + vVal + '¬';
                                }
                                //This will display the value in any textareas
                                else {
                                    vVal = $(this).val();
                                    //Handle break lines
                                    vVal = vVal.replace(/(\r\n|[\r\n])/g, '¬');
                                    vVal = vVal.replace(/(\r\n|\r|\n)/g, '¬');
                                    //Handle backslash
                                    vVal = vVal.replace(/\\/g, '\\\\');
                                    vInputString = vInputString + $(this).attr("FieldName") + '¬' + vVal + '¬';
                                }
                            });
                        $("select.submission_e_forms").each(
                            function (index) {
                                vVal = $(this).val();
                                vInputString = vInputString + $(this).attr("FieldName") + ': ' + vVal + '¬';
                            });
                        var bSend = false;
                        if (bValid) {
                            bSend = SumbitHTMLForm($(".submission_e_forms").attr("Emailto"), $(".submission_e_forms").attr("FormSubject"), vInputString);
                        }
                        if (bSend != false) {
                            $(".submission_e_forms :input").each(
                                function (index) {
                                    $(this).val("");
                                });
                        }
                        hideLoading();
                    });
	    //]]>
                </script>
                <script>
                    //<![CDATA[
                    function fav() {
                        var newT = document.createTextNode('Add In-Tend® to my favourites');
                        var favText = 'HE Portal Electronic Tendering';
                        var favLocation = 'https://in-tendhost.co.uk/he/aspx/';
                        var s = document.getElementById('fav');
                        if (IsIE()) {
                            s.appendChild(newT);
                            s.style.cursor = 'pointer';
                            s.onclick = function () { window.external.AddFavorite(favLocation, favText) };
                        }
                    }

                    var pageLoaded = 0;
                    window.onload = function () { pageLoaded = 1; }
                    function loaded(i, f) {
                        if (document.getElementById && document.getElementById(i) != null) f();
                        else if (!pageLoaded) setTimeout('loaded(\'' + i + '\',' + f + ')', 100);
                    }
                    loaded('fav', fav);

                    $("button").button({ icons: {} });
                    $(function () {
                        $.datepicker.setDefaults($.datepicker.regional['']);
                    });

                    if (window.location.href.indexOf('B2B_Home') != -1) {
                        $('#homeImages').removeClass('display_none');
                    }
                    else {
                        $('#homeImages').addClass('display_none');
                    }

                    $(document).ready(function () {
                        $('.ui-tabs-nav li').click(function () {
                            UpdateTitle(GetActiveTabNames());
                        });
                        UpdateTitle(GetActiveTabNames());
                    });

                    function GetActiveTabNames() {
                        var vTabNames = '';
                        var vActiveTabs = $('.ui-tabs-active:visible a');
                        if (vActiveTabs.length > 0) {
                            $(vActiveTabs).each(function (index) {
                                vTabNames = vTabNames + ' - ' + $(this).text()
                            });
                        }
                        return vTabNames;
                    }

                    function UpdateTitle(vTitle) {
                        if (vTitle.length > 0) {
                            if (!$('body').attr('data-defaulttitle')) {
                                $('body').attr('data-defaulttitle', document.title);
                            }
                            vTitle = $('body').attr('data-defaulttitle') + vTitle;
                            if (document.title != vTitle) {
                                document.title = vTitle;
                            }
                        }
                    }
	    //]]>
                </script>
                <!--If in B2B Mode and not on the B2B Home page open a new dialog with the full size of a selected image-->
                
<script id="tmplFileHash" type="text/x-jquery-tmpl">

</script>

<script id="tmplFileHashText" type="text/x-jquery-tmpl">

</script>

<script type="text/javascript">
    //<![CDATA[
    function showHash(vType, vHash) {
        var vButtons = addExtMsgBoxButtons(new Array(), vRES_OK, function () { CloseExtMsgBox(); });
        var vMessage = '<table><tr>' +
        '<th class="text_align_right">Type : </th><td>' +
        vType + '</td></tr><tr><th class="text_align_right">Key : </th><td id="hashkey">' +
            vHash + '</td></tr></table>';

        showExtMsgBox('Security Key', vMessage, vButtons);
    }
    //]]>
</script>


    <script>
        // Tidy up some of the pages
        $(function () {
            // Tables
            var table = $('.topMenu table.ui-widget-content');
            $(table).removeAttr('class').wrap('<div class="box box-theme" />');
            $(table).addClass('table');
            $('.topMenu tr.ui-widget-header').removeAttr('class');

            // Help
            if (window.document.URL.indexOf('Help') <= 0) {
                $('#divHelp').removeAttr('class').addClass('box box-theme shadow');
                $('#divHelp').find('.ui-widget-content').removeAttr('class').addClass('box box-theme');
                $('#divHelp br').remove();
                $('#divHelp h3').removeAttr('class').addClass('box-header font-14 bold margin-0');
                $('#divHelp').find('input, select, textarea').addClass('form-control');
                $('#divHelp').find('table').removeAttr('class').addClass('table');

                if (!$('#divHelp').children().hasClass('box-body')) {
                    $('#divHelp').wrapInner('<div class="box-body" />');
                }

                $('.suggestions_label').parents('.box').not('#divHelp').addClass('suggestions_container');

                $('#divHelp').find('.box').each(function () {
                    if (!$(this).children().hasClass('box-body')) {
                        $(this).wrapInner('<div class="box-body" />');
                        $(this).find('h3').insertBefore($(this).find('.box-body'));
                    }
                });
            }
        });
    </script>



                

<div id="CertificateDialog" title="e-Signature" style="display: none;">
    <div id="certificateTabs" class="nav-tabs-custom ui-tabs ui-widget ui-widget-content ui-corner-all">
        <ul class="nav nav-tabs ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" role="tablist">
            
        </ul>
        <div class="tab-content" style="display: block;">
            
        </div>
    </div>
</div>

<div id="AddCertificateDialog" title="Add Digital Certificate" style="display: none;">
    <div class="fields popup-fields">
        <div class="field-group">
            <label for="txtPFXPassword" class="width_auto">Password</label>
            <input type="password" id="txtPFXPassword" class="width-250">
        </div>
        <div class="field-group">
            <label class="width-100 m-r-10">PFX </label>
            <div id="fileDigitalCertificate">
                <input type="file" id="fileCertificate" class="width-250" title="File Certificate">
            </div>
        </div>
    </div>
</div>

<div id="ReturnSignatureSuccess" title="e-Signature Wizard" style="display: none;">
    <div class="popup-body">
        <span class="p-10">
            <span class="fa fa-check-circle-o fa-3x success"></span>
            <br>
            The return has been signed
            <br>
            You can now proceed with the submission
        </span>
        <div class="cert-success-details"></div>
    </div>
    <div class="row popup-bottom">
        <button type="button" id="btnSubmitReturnSignature" class="btn btn-default" onclick="javascript:submitReturnFromSuccess();">
            Submit Return
        </button>
        <button type="button" id="btnSubmitHash" onclick="javascript:sumbitReturnHash();">
            Submit Hash
        </button>
    </div>
</div>

<div id="certsuccessdetails" style="display: none;">
    <div data-removedetails="false" class="fields popup-fields">
        <div class="field-group p-t-10 signature-valid">
            <div class="float_left width_actual_10">Issued By: </div>
            <div class="certsuccessIssuedBy float_left width_90"></div>
        </div>
        <div class="field-group signature-valid">
            <div class="float_left width_actual_10">Issued To: </div>
            <div class="certsuccessIssuedTo float_left width_90"></div>
        </div>
        <div class="field-group signature-valid">
            <div class="float_left width_actual_10">Valid From:</div>
            <div class="certsuccessValidFrom float_left width_90"></div>
        </div>
        <div class="field-group signature-valid">
            <div class="float_left width_actual_10">Valid To:</div>
            <div class="certsuccessValidTo float_left width_90"></div>
        </div>
    </div>
</div>

<div id="ReturnSignatureFailure" title="e-Signature Wizard" style="display: none;">
    <div class="popup-body">
        <span class="p-10">
            <span class="fa fa fa-exclamation-triangle fa-3x danger"></span>
            <br>
            Error. The Return has not been e-signed. <br> You cannot proceed with this submission until the return is signed with a valid digital certificate.
            <br>
            <br>
        </span>
    </div>
</div>

<div id="eSignSuccess" title="e-Signature Wizard" style="display: none;">
    <div class="popup-body">
        <span class="p-10">
            <span class="fa fa-check-circle-o fa-3x success"></span>
            <br>
            e-Signature Successful
            <br>
            <br>
        </span>
        <div class="cert-success-details"></div>
    </div>
</div>

<div id="eSignFailure" title="e-Signature Wizard" style="display: none;">
    <div class="popup-body">
        <span class="p-10">
            <span class="fa fa-exclamation-triangle fa-3x danger"></span>
            <br>
            e-Signature Failed
            <br>
            <br>
        </span>
    </div>
</div>

<div id="hashDetails" title="e-Signature Wizard" style="display: none;">
    <div class="popup-body">
        <span class="p-10">
            <span id="existingHash" class="fa fa-exclamation-triangle fa-3x danger"></span>
            <span id="newHash" class="fa fa-check-circle-o fa-3x success"></span>
            <br>
            <label id="hashMessage" aria-label="Hash Message">
                Empty
            </label>
            <br>
            <br>
            <span>
                <label>Date Received</label>
                :
                <label data-field="Recieved" aria-label="Received">
                    Empty
                </label>
                <br>
                <label>Hash Type</label>
                :
                <label data-field="SignatureType" aria-label="Signature Type">
                    Empty
                </label>
                <br>
                <label>Hash</label>
                :
                <label data-field="SignatureHash" aria-label="Signature Hash">
                    Empty
                </label>
            </span>
            <br>
            <br>
        </span>
    </div>
</div>

<div id="invalidHash" title="e-Signature Wizard" style="display: none;">
    <div class="popup-body">
        <span class="p-10">
            <span class="fa fa-exclamation-triangle fa-3x danger"></span>
            <br>
            You have recently submitted a hash for this stage, the 24 hour deadline has passed. You will no longer be able to submit or modify a return.
            <br>
            <br>
        </span>
    </div>
</div>

<script type="text/x-jquery-tmpl" id="tmplAvailableCertificates">
    <tr data-id="${UniqueID}">
        <td>
            <input type="radio" name="digitalcertificate" value="${UniqueID}" />
        </td>
        <td class="issue-by">${IssuedBy}</td>
        <td class="issue-to">${IssuedTo}</td>
        <td class="valid-from">${FormatJSONDate(ValidFrom)}</td>
        <td class="valid-to">${FormatJSONDate(ValidTo)}</td>
    </tr>
</script>
<script type="text/x-jquery-tmpl" id="tmplAvailableCertificatesEmpty">
    <tr>
        <td colspan="5"></td>
    </tr>
</script>

<script type="text/javascript">
    // Should match eSignatures.CSettings.ValidationType enum
    var signatureTypes = {
        DocumentStorage: 1,
        ReturnedDocument: 2,
        CorrespondenceAttachment: 3,
        DocumentSetAttachment: 4,
        KPI: 5,
        Return: 6,
        StageDocument: 7,
        Questionnaire: 8,
        CompanyDocument: 9,
        StageReturn: 10,
        WebReturn: 11,
        WebReturnDocument: 12,
    };
    var validHash = true;
    var externalWindow;
    var esignType = -1;
    var esignID = -1;
    var esignSession = undefined;
    var nexu = new NEXU();

    $(function () {
        $("#btnAddCertificate").click(showAddCertificatePopup);
        $("#btnRemoveCertificate").click(removeCertificate);

        $("#certificateTabs").tabs({
            active: 0,
            create: function (event, ui) {
                $("#certificateTabs > div").css("display", "block");
                $("#certificateTabs > div:not(:first)").hide();
            }
        });

        if (window.location.href.indexOf("ProjectManage") > 0) {
            $("#tabs").tabs({
                activate: function (event, ui) {
                    CheckValidHash();
                }
            })
        }

        // Initialise the NexU button handlers.
        $('#signature-progress').progressbar({ max: 100, value: 0 });
        nexu.initialise();

        $("#btnRunNexU").unbind('click');
        $("#btnRunNexU").click(function () { nexu.getCertificates(); });

        $("#btnRefreshNexU").unbind('click');
        $('#btnRefreshNexU').click(function () { nexu.initialise(); });
    });


    function showCertificatePopup(type, id, sessionID, showSuccessDialogOnVerification) {
        esignType = type;
        esignID = id;
        esignSession = sessionID;
        // Always display the first tab in the dialog.
        $('#certificateTabs ul li').first().find('a').trigger('click');
        $('#fileXades').val('');

        // Check to see if we are dealing with a questionnaire or return if so we cannot upload the xades file at this point.
        if (type === signatureTypes.Questionnaire || type === signatureTypes.WebReturn) {
            $('#ctl03_tabXades').hide();
        }
        else {
            $('#ctl03_tabXades').show();
        }

        $("#CertificateDialog").dialog({
            buttons: {
                "OK": {
                    text: vRES_OK,
                    click: function () {
                        switch ($(".cert-tab:visible").attr("id")) {
                            case "tab_PFX":
                                {
                                    signDocument(type, id, sessionID);

                                    // Run sub signature processing.
                                    if (type != signatureTypes.WebReturn) {

                                        var cSessionIDString = "";
                                        if (sessionID.length > 0) {
                                            cSessionIDString = ", '" + sessionID + "'";
                                        }

                                        var cShowCertificate = "javascript:showCertificatePopup(" + type + ", '" + id.replace(/\\/g, '\\\\') + "'" + cSessionIDString + ")";
                                        var cVerifyCertificate = "javascript:verifyDocument(" + type + ", '" + id.replace(/\\/g, '\\\\') + "'" + cSessionIDString + ")";

                                        $('button[onclick]').each(function () {

                                            if ($(this).attr('onclick') == cShowCertificate) {
                                                $(this).hide();
                                            }

                                            if ($(this).attr('onclick') == cVerifyCertificate) {
                                                $(this).show();
                                            }
                                        });
                                    }
                                }
                                break;

                            case "tab_Xades":
                                {
                                    if (document.getElementById("fileXades").files.length === 0) {
                                        showMessage("");
                                    }
                                    else {
                                        showLoading();
                                        var docData = new FormData();
                                        docData.append("UploadedImage", document.getElementById("fileXades").files[0]);
                                        docData.append("type", 8);
                                        docData.append("id", -1);
                                        docData.append("id2", -1);
                                        docData.append("id3", -1);
                                        docData.append("xadesType", type);
                                        docData.append("xadesSessionID", esignSession != undefined && esignSession.indexOf("correspondence") > -1 ? "ESIGNCORRESPONDENCE" : esignSession == undefined ? "" : esignSession);
                                        docData.append("xadesID", id);

                                        var request = $.ajax({
                                            type: "POST",
                                            url: 'fileUploader/DocumentUpload.ashx',
                                            data: docData,
                                            contentType: false,
                                            processData: false
                                        });

                                        request.done(function (e, a) {
                                            $('#CertificateDialog').dialog('close');
                                            verifyDocument(esignType, esignID, esignSession, false);

                                            // Run sub signature processing.
                                            if (esignType != signatureTypes.WebReturn) {
                                                $("button[onclick='javascript:showCertificatePopup(" + esignType + ", " + esignID + ")']").hide();
                                                $("button[onclick='javascript:verifyDocument(" + esignType + ", " + esignID + ")']").show();
                                            }

                                            if (typeof postSignatureCallback == 'function') {
                                                postSignatureCallback(esignID, esignSession);
                                            }

                                            if (typeof postSignatureRefresh == 'function') {
                                                postSignatureRefresh();
                                            }

                                            hideLoading();
                                        });
                                    }
                                }
                                break;
                        }
                    }
                },
                "CANCEL": {
                    text: "Cancel",
                    click: function () {
                        if ($(".cert-tab:visible").attr("id") === "tab_Java") {
                            verifyDocument(type, id, undefined, false);
                            hideLoading();
                        }
                        $('#CertificateDialog').dialog('close');
                    },
                    id: "CertCancel",
                }
            },
            width: $("#tab_PFX").length > 0 ? 1200 : 720
        });

        loadAvailableCertificates();
        verifyDocument(type, id, sessionID, true, showSuccessDialogOnVerification);

        $("#btnDocusign").unbind().click(function () {
            externalWindow = window.open("https://account-d.docusign.com/oauth/auth?response_type=code&scope=signature&client_id=0ac21f8d-24f8-409c-9caa-615f34b9e179&redirect_uri=http://localhost:60450/aspx/ExternalSignatures.aspx&state=" + type + "-" + id, '_blank'
                                        );
            $('#CertificateDialog').dialog('close');
        });
        $("#btnDokobit").unbind().click(function () {
            externalWindow = window.open("ExternalSignatures.aspx?ID=" + id + "&Type=" + type + "&eSign=Dokobit", undefined, 'toolbar=0,scrollbars=0,address=0,resizable=0,width=1500, height=800');
            $('#CertificateDialog').dialog('close');
        });
        $("#RunApplet").unbind().click(function () {
            externalWindow = window.open("ExternalSignatures.aspx?ID=" + id + "&Type=" + type + "&eSign=Java", undefined, 'toolbar=0,scrollbars=0,address=0,resizable=0,width=200, height=100');
        });
        nexu.initialise();
    }

    function signDocument(type, id, sessionID) {
        var service,
            method,
            popupSuccess,
            popupFailure,
            popupClass,
            buttonText,
            skipCheck = true;

        popupSuccess = "eSignSuccess";
        popupFailure = "eSignFailure";
        popupClass = "";

        var buttons = {
            "CANCEL": {
                text: "Close",
                click: function () {
                    $(this).dialog("close");
                }
            }
        };

        switch (type) {
            case signatureTypes.WebReturnDocument: {
                service = "Returns";
                method = "SignReturnDoc";
            }
                break;
            case signatureTypes.StageDocument: {
                service = "ProjectStage";
                method = "SignStageDoc";
            }
                break;
            case signatureTypes.Questionnaire: {
                service = "Returns";
                method = "ESignQuestionnaire";
            }
                break;
            case signatureTypes.WebReturn: {
                service = "Returns";
                method = "SignReturn";
                popupSuccess = "ReturnSignatureSuccess";
                popupFailure = "ReturnSignatureFailure";
                popupClass = "no-close";
                buttons = {};
                skipCheck = false;
            }
                break;
            case signatureTypes.CompanyDocument: {
                service = "Registration";
                method = "SignCompanyDocument";
            }
                break;
            case signatureTypes.CorrespondenceAttachment: {
                service = "Correspondence";
                method = "SignCorrespondenceAttachment";
            }
                break;
            case signatureTypes.DocumentStorage: {
                service = "Contracts";
                method = "SignDocStorageDoc";
            }
        }
        if (validHash || skipCheck) {
            Proxy.postAjax(
                service,
                method,
                JSON.stringify({
                    ID: id,
                    Certificate: getSelectedCertificate(),
                    Password: $("#txtCertificatePassword").val(),
                    Session: sessionID || ""
                }),
                function (data) {
                    if (data[method + "Result"]) {
                        // Hide and show the correct buttons.
                        if (esignType != signatureTypes.WebReturn) {
                            $("button[onclick='javascript:showCertificatePopup(" + esignType + ", " + esignID + ")']").hide();
                            $("button[onclick='javascript:verifyDocument(" + esignType + ", " + esignID + ")']").show();
                        }

                        $('#CertificateDialog').dialog("close");

                        $("#" + popupSuccess).dialog({
                            buttons: buttons,
                            width: 800,
                            dialogClass: popupClass
                        });

                        var $cert = $("#tbodyAvailableCertificates tr td input[type=radio]:checked").closest("tr");

                        $(".certsuccessIssuedBy").text($cert.find(".issue-by").text());
                        $(".certsuccessIssuedTo").text($cert.find(".issue-to").text());
                        $(".certsuccessValidFrom").text($cert.find(".valid-from").text());
                        $(".certsuccessValidTo").text($cert.find(".valid-to").text());

                        $("[data-removedetails=true]").remove();
                        $("#certsuccessdetails > .fields").clone().attr("data-removedetails", true).appendTo($("#" + popupSuccess + " .cert-success-details"));

                        if (type == signatureTypes.WebReturn) {

                            if ($(".button-submit-return:visible:first").length) {
                                buttonText = $(".button-submit-return:visible:first").text();
                            }

                            if ($(".button-modify-return:visible:first").length) {
                                buttonText = $(".button-modify-return:visible:first").text();
                            }

                            $("#btnSubmitReturnSignature").text(buttonText);
                            $(document).trigger("webreturnsigned", [esignID]);
                        }
                    }
                    else {
                        $("#" + popupFailure).dialog({
                            buttons: {
                                "CANCEL": {
                                    text: "Cancel",
                                    click: function () {
                                        $(this).dialog("close");
                                    }
                                }
                            },
                            width: 350
                        });
                    }

                    hideLoading();
                });
        }
        else {
            $("#invalidHash").dialog({
                buttons: {
                    "CANCEL": {
                        text: "Cancel",
                        click: function () {
                            $(this).dialog("close");
                        }
                    }
                },
                width: 350
            });
        }
    }


    function loadAvailableCertificates() {
        Proxy.doAjax(
            "Projects", "GetDigitalCertificates",
            {},
            function (data) {
                BindData(
                    data,
                    "#tbodyAvailableCertificates",
                    "#tmplAvailableCertificates",
                    "#tmplAvailableCertificatesEmpty");

                $("#tbodyAvailableCertificates tr:first input[type=radio]").prop("checked", true);

                $("#tbodyAvailableCertificates tr").click(function () {
                    $(this).find("input[type=radio]").prop("checked", true);
                })

                hideLoading();
            });
    }


    function showAddCertificatePopup() {
        $("#AddCertificateDialog").dialog({
            buttons: {
                "OK": {
                    text: vRES_OK,
                    click: function () {
                        if (document.getElementById("fileCertificate").files.length === 0) {
                            showMessage("Please upload a certificate");
                        } else {
                            showLoading();
                            var docData = new FormData();
                            docData.append("UploadedImage", document.getElementById("fileCertificate").files[0]);
                            docData.append("type", 7);
                            docData.append("id", -1);
                            docData.append("id2", -1);
                            docData.append("id3", -1);
                            docData.append("pfxPassword", $("#txtPFXPassword").val());

                            var request = $.ajax({
                                type: "POST",
                                url: 'fileUploader/DocumentUpload.ashx',
                                data: docData,
                                contentType: false,
                                processData: false
                            });

                            request.done(function (e, a) {
                                loadAvailableCertificates();
                                $('#AddCertificateDialog').dialog('close');

                                hideLoading();
                            });
                        }
                    }
                },
                "CANCEL": {
                    text: "Cancel",
                    click: function () {
                        $('#AddCertificateDialog').dialog('close');
                    }
                }

            },
            width: 400,
            position: 'center',
            open: function (event, ui) {
                $('body').css('overflow', 'hidden');
                $('.ui-dialog-titlebar-close').remove();
            },
            close: function (event, ui) {
                ClearBodyStyle();
            }
        });
    }

    function removeCertificate() {
        var selectedCertificate = getSelectedCertificate();
        if (selectedCertificate > 0) {
            Proxy.postAjax(
                "Projects", "RemoveCertificate",
                JSON.stringify({
                    ID: selectedCertificate
                }),
                function (data) {
                    loadAvailableCertificates();
                });
        }
    }

    function getSelectedCertificate() {
        var cer = $("[name=digitalcertificate]:checked").val()
        return cer === undefined ? -1 : parseInt(cer);
    }

    function submitReturnFromSuccess() {
        var stageID = $("li.ui-state-active a").attr("s");
        $('#ReturnSignatureSuccess').dialog('close');

        if ($("#submit" + stageID).not(":disabled").length) {
            $("#submit" + stageID).not(":disabled").click();
        }
    }

    function GetProjectID() {
        projectID = -1;

        if (typeof _GetProjectID == 'function') {
            projectID = _GetProjectID();
        }

        return projectID;
    }

    function sumbitReturnHash() {
        var stageID = $("li.ui-state-active a").attr("s");

        Proxy.postAjax(
            "Returns",
            "SubmitReturnHash",
            JSON.stringify({
                ProjectID: GetProjectID(),
                StageID: stageID
            }),
            function (data) {
                $("#ReturnSignatureSuccess").dialog("close");

                var data = data["SubmitReturnHashResult"],
                    hash = data["ReturnSignatureHash"],
                    message = "";

                if (data.NewReturnSignatureHash) {
                    message = "Hash created successfully, you have 24 hours from the time below to submit your return, unless the tender deadline has passed. Please refer to the tender deadline.";
                    $("#existingHash").hide();
                    $("#newHash").show();
                }
                else {
                    message = "Hash already created, you have 24 hours from the time below to submit your return.";
                    $("#newHash").hide();
                    $("#existingHash").show();
                }

                $("#hashDetails").dialog({
                    buttons: {
                        "CANCEL": {
                            text: "Close",
                            click: function () {
                                $(this).dialog("close");
                                CheckValidHash();
                            }
                        }
                    },
                    width: 550
                });

                $("#hashMessage").text(message);
                $("label[data-field='Recieved']").text(FormatJSONDateTimeText(hash.Recieved));
                $("label[data-field='SignatureType']").text(hash.SignatureType);
                $("label[data-field='SignatureHash']").text(hash.SignatureHash);

                hideLoading();

                if (typeof ReLoadHistory === "function") ReLoadHistory();
            });
    }

    function CheckValidHash() {

        var stageID = $("li.ui-state-active a").attr("s");

        Proxy.postAjax(
            "Returns",
            "CheckValidHash",
            JSON.stringify({
                ProjectID: projectID,
                StageID: stageID
            }),
            function (data) {

                var data = data["CheckValidHashResult"],
                    hash = data["ReturnSignatureHash"];

                validHash = data.ValidHash;

                if (!data.ValidHash) {
                    $(".button-submit-return").addClass("disabled").attr("disabled", "disabled");
                    $(".button-modify-return").addClass("disabled").attr("disabled", "disabled");
                }

                hideLoading();
            });
    }

    function ExternalSignatureClosed() {
        $("#CertCancel").click();
    }

    function NEXU() {
        // Stores the data of the certificate passed back from the nexu applet certificate store
        this.certificateData = null;
        // Signature document returned from nexu service
        this.signatureDocument = {};
        // signed document from applet
        this.nexuSignature = null;

        var nexuVersion = "1.";

        // The possible states the nexu process can be in
        this.nexuStates = {
            failed: -1,
            notInitialised: 1,
            initialised: 2,
            externalScriptLoaded: 3,
            certificateAvailable: 4,
            documentAvailable: 5,
            documentSigned: 6,
            signatureCreated: 7,
            documentValidated: 8,
        };
        // The current state of the nexu process
        this.state = this.nexuStates.notInitialised;

        // Call the nexu applet to get the basic info
        // This ensures that the applet is running and the correct version
        this.initialise = function () {
            // IE
            if (!String.prototype.startsWith) {
                String.prototype.startsWith = function (searchString, position) {
                    return this.substr(position || 0, searchString.length) === searchString;
                };
            }

            nexu.updateProgressBar("", 0);

            $.get("https://localhost:9895/nexu-info", function (data) {
                // something responded
                if (data.version.startsWith(nexuVersion)) {

                    $('#btnRunNexU').show();
                    $("#btnInstallNexU").hide();
                    $('#nexu_install_notes').hide();
                    $('#firefoxNotes').hide();
                    $('#btnRefreshNexU').hide();
                    $('#progress-control-container').show();
                    $('#nexu_generate_notes').show();
                    $('#error').hide();
                    nexu.state = nexu.nexuStates.initialised;

                    // valid version
                    // load nexu script 
                    nexu.loadNexuScript();

                } else {
                    nexu.state = nexu.nexuStates.failed;
                    // need update
                    nexu.error("Error: The NexU client needs to be updated. Please go to this URL to download the latest version: http://joinup.ec.europa.eu/site/sd-dss/maven2/lu/nowina/apps/nexu-bundle/1.10.5/nexu-bundle-1.10.5.zip");
                }
            }).fail(function () {
                nexu.state = nexu.nexuStates.failed;

                // We should change the 
                $('#btnRunNexU').hide();
                $("#btnInstallNexU").show();
                $('#nexu_install_notes').show();
                $('#btnRefreshNexU').show();
                $('#progress-control-container').hide();
                $('#nexu_generate_notes').hide();
                $('#error').hide();

                if ($.browser.mozilla) {
                    $('#firefoxNotes').show();
                }

                $("#btnInstallNexU").unbind("click");
                $("#btnInstallNexU").on("click", function () {
                    window.location = "https://www.in-tend.co.uk/downloads/nexu-bundle.zip";
                    return false;
                });
            });
        };

        // Load the javascript file from the nexu applet
        // This contains the functions to interact with the applet
        this.loadNexuScript = function () {
            var xhrObj = new XMLHttpRequest();
            xhrObj.open('GET', "https://localhost:9895/nexu.js", false);
            xhrObj.send(null);
            var se = document.createElement('script');
            se.type = "text/javascript";
            se.text = xhrObj.responseText;
            document.getElementsByTagName('head')[0].appendChild(se);

        };

        // Runs the nexu applet to allow the user to provide a certificate from their store
        this.getCertificates = function () {
            $('#error').hide();
            nexu.updateProgressBar("Loading certificates", 10);
            nexu_get_certificates(
                nexu.saveCertificateData,
                nexu.error);
        };

        // Callback of getCertificates
        // We need to save the certificate data to use when signing
        this.saveCertificateData = function (certificateData) {
            if (certificateData.response == null) {
                nexu.state = nexu.nexuStates.failed;
                nexu.error("Error: No certificate was provided by the NexU client. Please ensure you select a certificate to continue with the signing process.");
            } else {
                nexu.state = nexu.nexuStates.certificateAvailable;
                nexu.certificateData = certificateData.response;

                nexu.loadDocument();
            }
        };

        // We need to load the document to sign in order to provide it to the nexu applet
        this.loadDocument = function () {
            // Call the nexu service to get the document

            nexu.updateProgressBar("Retrieving the digest", 25);

            Proxy.postAjax(
                "Returns", "GetNexuDocument",
                JSON.stringify({
                    DocType: esignType,
                    DocID: esignID,
                    Certificate: nexu.certificateData
                }),
                function (data) {
                    hideLoading();
                    nexu.signatureDocument = data.GetNexuDocumentResult;
                    nexu.signDocument();
                });
        };

        this.signDocument = function () {
            nexu.state = nexu.nexuStates.documentAvailable;

            if (nexu.signatureDocument == null) {
                nexu.error("Error: Signature not found. This may be due to being unable to create a signature due to an invalid certificate.");
            } else {
                var digestAlgo = "SHA256";

                nexu.updateProgressBar("Signing the digest", 50);

                nexu_sign_with_token_infos(
                    nexu.certificateData.tokenId.id,
                    nexu.certificateData.keyId,
                    nexu.signatureDocument.Document,
                    digestAlgo,
                    nexu.signDocumentCallback,
                    nexu.error);
            }
        };

        this.signDocumentCallback = function (signatureData) {
            nexu.signatureDocument.NexuSignature = signatureData;

            nexu.updateProgressBar("Generating signature", 75);
            Proxy.postAjax(
                "Returns", "GetNexuSignature",
                JSON.stringify({
                    DocType: esignType,
                    DocID: esignID,
                    Data: nexu.signatureDocument
                }),
                function (data) {
                    hideLoading();

                    if (nexu.state != nexu.nexuStates.failed) {
                        nexu.updateProgressBar("Done!", 100);

                        // Hide and show the correct buttons.
                        if (esignType != signatureTypes.WebReturn) {
                            $("button[onclick='javascript:showCertificatePopup(" + esignType + ", " + esignID + ")']").hide();
                            $("button[onclick='javascript:verifyDocument(" + esignType + ", " + esignID + ")']").show();
                        }

                        if (esignType == signatureTypes.WebReturn) {
                            $("#ReturnSignatureSuccess").dialog({
                                buttons: {},
                                width: 800,
                                dialogClass: 'no-close',
                                position: 'center',
                                open: function (event, ui) {
                                    $('body').css('overflow', 'hidden');
                                    $('.ui-dialog-titlebar-close').remove();
                                },
                                close: function (event, ui) {
                                    ClearBodyStyle();
                                }
                            });

                            $(document).trigger("webreturnsigned" + esignID, [esignID]);



                        } else {
                            // Show the certificate details
                            verifyDocument(esignType, esignID, esignSession, false);
                        }


                        if (typeof postSignatureCallback == 'function') {

                            postSignatureCallback(esignID, esignSession);
                        }

                        if (typeof postSignatureRefresh == 'function') {
                            postSignatureRefresh();
                        }
                    }

                    $('#CertificateDialog').dialog('close');
                });
        };

        // Generic error handler to be passed to the nexu applet
        // This will display the error from the nexu applet to the client and stop the process
        this.error = function (error) {
            nexu.state = nexu.nexuStates.failed;
            var errorText = "";

            if (typeof error === "string") {
                errorText = error;
            } else if (error != null && error.responseJSON != null) {
                var jsonResp = error.responseJSON;
                if (jsonResp.errorMessage != null) {
                    errorText = jsonResp.errorMessage;
                }
                else if (jsonResp.error != null) {
                    errorText = jsonResp.error;
                }
            }

            $('#signature-progress-bar-text').html("Error");
            $("e#rrorcontent").html(errorText);
            $("#error").show();
        };

        this.updateProgressBar = function (action, percent) {
            $('#signature-progress-bar-text').html(action);
            $('#signature-progress').progressbar("value", percent);
        };
    }

    function format(source, params) {
        $.each(params, function (i, n) {
            source = source.replace(new RegExp("\\{" + i + "\\}", "g"), n);
        })
        return source;
    };


</script>

                

<div id="VerifyCertificateDialog" title="Show Signature" style="display: none;">
    <div class="fields popup-fields">
        <div class="field-group alreadysigned">
            <label class="width_auto">This has already been signed.</label>
        </div>
        <div class="field-group">
            <label class="width_auto signature-valid">e-Signature Validation Successful.</label>
            <label class="width_auto signature-invalid">e-Signature Validation Unsuccessful.</label>
        </div>
        <div class="field-group p-t-10 signature-valid">
            <div class="float_left width_actual_10">Issued By: </div>
            <div id="verifyIssuedBy" class="float_left width_90"></div>
        </div>
        <div class="field-group signature-valid">
            <div class="float_left width_actual_10">Issued To: </div>
            <div id="verifyIssuedTo" class="float_left width_90"></div>
        </div>
        <div class="field-group signature-valid signature-date">
            <div class="float_left width_actual_10">Valid From:</div>
            <div id="verifyValidFrom" class="float_left width_90"></div>
        </div>
        <div class="field-group signature-valid signature-date">
            <div class="float_left width_actual_10">Valid To:</div>
            <div id="verifyValidTo" class="float_left width_90"></div>
        </div>
        <div class="field-group nexu-valid">
            <button type="button" class="button_width pnlUpload" style="width:auto;">
                Download Signature
            </button>
        </div>
        <div class="field-group signature-invalid">
            <button id="btnEsignValidated" type="button" class="pnlUpload button_width">
                e-Sign
            </button>
        </div>
    </div>
</div>

<script type="text/javascript">

    function verifyDocument(type, id, sessionID, preventOpen, showSuccessDialog) {
        $(".nexu-valid").hide();

        $("#VerifyCertificateDialog").dialog({
            buttons: {
                "CLOSE": {
                    text: vRES_OK,
                    click: function () {
                        $("#VerifyCertificateDialog").dialog('close');
                    }
                }
            },
            width: 800,
            autoOpen: !preventOpen
        });

        $("#btnEsignValidated").unbind("click").click(function () {
            showCertificatePopup(type, id);
        });

        var service,
            method,
            popupSuccess = '',
            popupClass = '';

        var buttons = {
            "CANCEL": {
                text: "",
                click: function () {
                    $(this).dialog("close");
                }
            }
        };

        switch (type) {
            case signatureTypes.WebReturnDocument: {
                    service = "Returns";
                    method = "VerifyReturnDoc";
                }
                break;
            case signatureTypes.StageDocument: {
                    service = "ProjectStage";
                    method = "VerifyStageDoc";
                }
                break;
            case signatureTypes.Questionnaire: {
                    service = "Returns";
                    method = "VerifyQuestionnaire";
                }
                break;
            case signatureTypes.WebReturn: {
                    service = "Returns";
                    method = "VerifyReturn";
                    popupSuccess = 'ReturnSignatureSuccess';
                    popupClass = "no-close";
                    buttons = {};
                }
                break;
            case signatureTypes.CompanyDocument: {
                    service = "Registration";
                    method = "VerifyCompanyDocument";
                }
                break;
            case signatureTypes.CorrespondenceAttachment: {
                    service = "Correspondence";
                    method = "VerifyCorrespondenceAttachment";
                }
                break;
            case signatureTypes.DocumentStorage: {
                    service = "Contracts";
                    method = "VerifyStorageDoc";
                }
                break;

            case signatureTypes.KPI: {
                    service = "Contracts";
                    method = "VerifyKPIInstance";
                }
                break;
        }

        Proxy.postAjax(
            service, method,
            JSON.stringify({
                ID: id,
                Session: sessionID || ""
            }),
            function (data) {
                data = data[method + "Result"];

                $("#VerifyCertificateDialog .signature-valid").toggle(data.IsValid);
                $("#VerifyCertificateDialog .signature-invalid").toggle(!data.IsValid);
                $("#VerifyCertificateDialog .alreadysigned").hide();

                if (data.IsValid) {
                    var from = new Date(parseInt((data.ValidFrom.substr(6))));

                    $("#verifyIssuedBy").text(data.Issuer);
                    $("#verifyIssuedTo").text(data.Subject);

                    if (from.getFullYear() === 1) {
                        $(".signature-date").hide();
                    } else {
                        $(".signature-date").show();
                        $("#verifyValidFrom").text(from);
                        $("#verifyValidTo").text(FormatJSONDate(data.ValidUntil));
                    }

                    // If the doc is already valid then display this message and hide the e-sign popup
                    if (preventOpen) {
                        
                        $('#CertificateDialog').dialog("close");

                        if (showSuccessDialog === true && popupSuccess.length > 0) {
                            $("#" + popupSuccess).dialog({
                                buttons: buttons,
                                width: 800,
                                dialogClass: popupClass
                            });
                        }
                        else
                        {
                            $("#VerifyCertificateDialog").dialog("open");
                            $("#VerifyCertificateDialog .alreadysigned").show();
                        }
                    }

                    if (
                            data.Type == 5 &&
                            !isNaN(id) &&
                            (
                                type != signatureTypes.KPI 
                                &&
                                type != signatureTypes.Questionnaire
                            )
                        ) 
                    {

                        $(".nexu-valid").show();

                        $(".nexu-valid button")
                            .unbind("click")
                            .click(function () {
                                ViewDocument(19, id, true, type);
                            });
                    }
                }

                hideLoading();
            });
    }
</script>

                

<div id="RejectInvitationDialog" style="display: none;" title="Decline Invitation">
    <div id="RejectInvitationTabs" class="nav-tabs-custom">
        <div class="tab-content">
            <div id="tab_RejectInvitation">
                <div class="col-md-8 col-sm-12 col-xs-12 mb-3 form-group">
                    <p>Please confirm your reasons for declining the invitation</p>
                </div>
                <div class="col-md-8 col-sm-12 col-xs-12 mb-3 form-group">
                    <select name="ctl00$ctl08$ddlRejectReasons" id="ddlRejectReasons" class="form-control form-control-xs">
	<option value="-1"></option>

</select>
                </div>
                <div class="col-xs-8 col-sm-10 form-group">
                    <textarea rows="5" customfield="1" id="txtRejectReasons" name="RejectReasons" class="form-control"></textarea>
                </div>
                <div class="form-group" style="clear: both;">
                    <button type="button" id="btnDecline" style="display: none;">Decline</button>
                    <button type="button" id="btnCancel" style="display: none;">Cancel</button>
                </div>
            </div>
        </div>
    </div>
</div>


<script type="text/javascript">


    function showRejectInvitationPopup(id) {
        $("#RejectInvitationDialog").dialog({
            buttons: {
                "OK": {
                    text: "Decline",
                    click: function () {
                        rejectInvitation(id);
                    },
                    id: "btnDecline",
                    class: "btn btn-default",
                },
                "CANCEL": {
                    text: "Cancel",
                    click: function () {
                        $('#RejectInvitationDialog').dialog('close');
                    },
                    id: "CertCancel",
                    class: "btn btn-default",
                }
            },
            width: $("RejectInvitation").length > 0 ? 1200 : 720,
            open: function (event, ui) {
                $('.ui-dialog-titlebar-close').remove();
            }
        });
    }

    function rejectInvitation(id) {
        var UID = id;
        var vddlRejectReasons = $('#ddlRejectReasons').val();
        var Reason = $('#txtRejectReasons').val();
        var URL = 'aspx/ProjectManage' + '/' + UID;
        Proxy.postAjax("Projects", "RejectInvitation",
            '{"iProjectID": ' + UID + ', "iRejectReason": ' + vddlRejectReasons + ' , "strRejectReason":' + '"' + Reason + '"' + ' , "strRedirectUrl":' + '"' + URL + '"' + ' }',
            function (result) {
                if (result) {
                    //worked
                    window.location = window.location;
                }
                else if (!result) {
                    //not logged in
                    window.location = 'Login';
                }
                else {
                    //error 
                    console.log(result);
                    hideLoading();
                    displayError('An error occured whilst rejecting the invitation. Please try again');
                }
            });
    }


    function GetProjectID() {
        projectID = -1;

        if (typeof _GetProjectID == 'function') {
            projectID = _GetProjectID();
        }

        return projectID;
    }


</script>


                <!-- Privacy Modal -->
                <div class="modal fade" id="mdlPrivacyNotice" tabindex="-1" role="dialog" aria-labelledby="PrivacyNoticeLabel" aria-hidden="true">
                    <div class="modal-dialog modal-lg" role="document">
                        <div class="modal-content">
                            <div class="modal-header">
                                <h4 class="modal-title" id="PrivacyNoticeLabel">Privacy Notice</h4>
                            </div>
                            <div class="modal-body privacy-notice">
                                <div id="agreement"></div>
                                <div class="row margin-top-20">
                                    <div class="col-xs-12 text-center">
                                        <div class="panel panel-default" style="margin: 0;">
                                            <div class="panel-body">
                                                <div class="checkbox" id="chkAcceptTermsContainer">
                                                    <label style="font-weight: 700 !important; font-size: 15px;">
                                                        <input type="checkbox" id="chkAcceptTerms">
                                                        Read and check the box
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="modal-footer">
                                <p id="pAcceptTerms" style="float: left; margin: 10px 0 0 0 !important;">
                                    <b>
                                        Tick the box to click that you have read and understood the
                                        &nbsp;HE Portal&nbsp;
                                        privacy notice
                                    </b>
                                </p>
                                <button type="button" class="btn btn-danger" data-dismiss="modal">Cancel</button>
                                <button type="button" class="btn btn-success" id="btnAccept" disabled="disabled" onclick="Register(); return false;">Register</button>
                            </div>
                        </div>
                    </div>
                </div>
        </form>

    

<div class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-front ui-dialog-buttons" tabindex="-1" role="dialog" aria-describedby="working" aria-labelledby="ui-id-1" style="display: none;"><div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix"><span id="ui-id-1" class="ui-dialog-title">Working</span><button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only ui-dialog-titlebar-close" role="button" aria-disabled="false" title="close"><span class="ui-button-icon-primary ui-icon ui-icon-closethick"></span><span class="ui-button-text">close</span></button></div><div id="working" class="ui-dialog-content ui-widget-content">
                <p class="text-center font-14 bold margin-0">
                    <img src="images/loading.gif" height="32" class="margin-right-10" width="32" title="Indicator" alt="Indicator">
                    Please Wait
                </p>
                <div id="progressbar" style="display: none;"></div>
            </div><div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"><div class="ui-dialog-buttonset"></div></div></div><div class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-front ui-dialog-buttons ui-draggable" tabindex="-1" role="dialog" aria-describedby="dialog" aria-labelledby="ui-id-2" style="display: none;"><div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix"><span id="ui-id-2" class="ui-dialog-title">Error</span><button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only ui-dialog-titlebar-close" role="button" aria-disabled="false" title="close"><span class="ui-button-icon-primary ui-icon ui-icon-closethick"></span><span class="ui-button-text">close</span></button></div><div id="dialog" class="ui-dialog-content ui-widget-content">
                <p id="errorText">
                </p>
            </div><div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"><div class="ui-dialog-buttonset"><button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"><span class="ui-button-text">OK</span></button></div></div></div><div class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-front ui-dialog-buttons" tabindex="-1" role="dialog" aria-describedby="UserMessage" aria-labelledby="ui-id-3" style="display: none;"><div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix"><span id="ui-id-3" class="ui-dialog-title">Message</span><button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only ui-dialog-titlebar-close" role="button" aria-disabled="false" title="close"><span class="ui-button-icon-primary ui-icon ui-icon-closethick"></span><span class="ui-button-text">close</span></button></div><div id="UserMessage" class="ui-dialog-content ui-widget-content">
                <p id="UserMessageText">
                </p>
            </div><div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"><div class="ui-dialog-buttonset"><button type="button" class="btn btn-default ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"><span class="ui-button-text">OK</span></button></div></div></div></body></html>