var INET_DOMAIN = ".uk.experian.com";
function setCompID(deptcode){
storeCookie('CSDeptNum', deptcode, null, "/", INET_DOMAIN, null);
var CookieVal=readCookie('CSDeptNum');
if(!CookieVal&&deptcode!=""){
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 CookieVal=readCookie('CSDeptNum');
if(CookieVal!=null){
frm.PRMA_PARAMS.value = "PRMA0003="+CookieVal;
}else 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 value=pairs[0].substring(pos+1);
if(argName=="DeptNum"){
frm.PRMA_PARAMS.value = "PRMA0003="+value;
}
}
}
function setDeptPwdVal(frm){
var CookieVal=readCookie('DeptCA');
if(CookieVal!=null){
frm.DK02_USERDEPTPASS.value=CookieVal;
}
}



