function createURL(currenturl){
    if(document.location.hostname.indexOf('master-')!= -1){
        currenturl='master-'+currenturl;
    }
if(document.location.hostname.indexOf('ivs')!= -1){
    currenturl=currenturl+'.customs.ivs';
}else{

currenturl=currenturl+'.customs.ru';
}

return currenturl;
} 