function Drill(ColumnType, UniqueID, CallFrom)
{
  var ref = self.location.href.toLowerCase() ;
  var CallFromPart = '' ;
  var indx = ref.indexOf('call') ;
  ref = self.location.href.substring(0, indx) ;
  //alert(ref);
  var checksecure=ref.slice(0,5);
  //alert(checksecure);
  if(checksecure=="https")
  {
          ref=ref.replace(/https/,"http");
          //alert(ref);
  }
  //var checkframes=parent.frames.length;
  //if(checkframes != 6)
  //alert(checkframes);
  if (typeof(CallFrom) != 'undefined')
    CallFromPart = '&callfrom=' + CallFrom ;

  if (ColumnType == 'ARTIST')
    self.location.href = ref + 'Call?htmltemplate=./artist/viewartist.htm&artistid=' + UniqueID + CallFromPart + '&startline=1&endline=10';
  else if (ColumnType == 'COMPILATION')
    self.location.href = ref + 'Call?htmltemplate=./album/viewalbum.htm&lmtype=COMPILATION&albumid=' + UniqueID + CallFromPart ;
  else if (ColumnType == 'ALBUM') // same as COMPILATION!
    self.location.href = ref + 'Call?htmltemplate=./album/viewalbum.htm&lmtype=ALBUM&albumid=' + UniqueID + CallFromPart ;
  else if (ColumnType == 'MEDIAPACK') // same as COMPILATION!
    self.location.href = ref + 'Call?htmltemplate=./album/viewalbum.htm&lmtype=MEDIAPACK&albumid=' + UniqueID + CallFromPart ;
  else if (ColumnType == 'TRACK')
    self.location.href = ref + 'Call?htmltemplate=./track/viewtrack.htm&trackid=' + UniqueID + CallFromPart ;
  else if (ColumnType == 'VIDEO')
    self.location.href = ref + 'Call?htmltemplate=./video/viewvideo.htm&lmid=' + UniqueID + CallFromPart ;
  else if (ColumnType == 'LABEL')
    self.location.href = ref + 'Call?htmltemplate=./label/viewlabel.htm&labelid=' + UniqueID + CallFromPart ;
  else if (ColumnType == 'FANCLUB')
    self.location.href = ref + 'Call?htmltemplate=./artist/viewfanclub.htm&fanclubid=' + UniqueID ;
}

function test(x, fld)
{
  if (x==1)
    fld.bgColor = "#68c0e9" ;
  else
    fld.bgColor = "#bfe0f1" ;
}

function testb(x, fld)
{
  if (x==1)
    fld.bgColor = "#68c0e9" ;
  else
    fld.bgColor = "#bfe0f1" ;
}

function testc(x, fld)
{
  if (x==1)
    fld.bgColor = "#bfe0f1" ;
  else
    fld.bgColor = "#68c0e9" ;

}

function changeLanguage(lg)
{
var ref = self.location.href.toLowerCase() ;
var indx = ref.indexOf('call') ;
ref = self.location.href.substring(0, indx) ;

if(lg=='EN')
self.location.href=ref+"Call?htmltemplate=./menu/setlanguage.htm&language=EN";

if(lg=='DE')
self.location.href=ref+"Call?htmltemplate=./menu/setlanguage.htm&language=DE";
}

function ShowInfo(LMID, WMENCPID, UOTID) {
  var ref = self.location.href.toLowerCase() ;
  var indx = ref.indexOf('call') ;
  ref = self.location.href.substring(0, indx) ;
  var desturl=ref +'Call?htmltemplate=./general/drm_popup.htm&lmid='+ LMID +'&wmencpid='+ WMENCPID;
  window.open(desturl,'DRM','width=450,height=350,left=50,top=50');
}
