var INET_DOMAIN = ".uk.experian.com";
function setCompID(deptcode){
if(deptcode!=""){
var CookieVal="";
if(bUseDeptCodeCookie()){
storeCookie('CSDeptNum', deptcode, null, "/", INET_DOMAIN, null);
CookieVal=readCookie('CSDeptNum');
}
if(!CookieVal){
queryString = "?DeptNum="+deptcode
}
}
}
function setCompPwd(pwd){
storeCookie('DeptCA', pwd, null, '/', INET_DOMAIN, null);
}
function setRefMandatory( isMandatory ){
storeCookie( 'RefMandatory', isMandatory, null, '/', INET_DOMAIN, null );
}
function storeRadio(cookiename, value){
storeCookie(cookiename, value, null, '/', null, null);
}
function setDeptNumVal(frm){
var sDeptNumVal="";
var CookieVal=readCookie('CSDeptNum');
if(parent.document.location.search){
var pairs = parent.document.location.search.substring(1).split(";");
var pos = pairs[0].indexOf("=")
var argName=pairs[0].substring(0,pos);
var argValue=pairs[0].substring(pos+1);
if(argName.toUpperCase()=="DEPTNUM")
sDeptNumVal=argValue;
}
if((sDeptNumVal=="")&&(CookieVal!= null)&&bUseDeptCodeCookie())
sDeptNumVal=CookieVal;
if(sDeptNumVal!="")frm.PRMA_PARAMS.value = "PRMA0003="+sDeptNumVal;
}
function setDeptPwdVal(frm){
var CookieVal=readCookie('DeptCA');
if(CookieVal!=null){
frm.DK02_USERDEPTPASS.value=CookieVal;
}
}



