<!--
//* Navigator Versions
var isIE = (navigator.appName == "Microsoft Internet Explorer") ? true : false ;
var isNS = (navigator.appName == "Netscape") ? true : false ;
var isOP = (navigator.appName == "Opera") ? true : false ;

//* Country ID
var SiteCode = "IT" ;
var HomePage = "http://www.dnb.com/it";

//* Variables formally web parameters
//var DnBCopyRight = "© Dun & Bradstreet Inc., 2000-2009. All Rights Reserved" ;
var DnBCopyRight = "© CRIBIS D&B 2009. All Rights Reserved" ;
var DnBTradeTel = "+39 02 284 55553" ;
var DnBInfoTel = "+39 02 284551";
var DnBInfoFax = "+39 02 28455501";


//* e-mail addresses
var CustServEmail = "CustomerServiceItaly@dnb.com" ;
var MarketingEmail = "MarketingIT@dnb.com" ;
var UserAdminEmail = "" ;
var HelpDeskEmail = "" ;

//* Country Lietrals
var cntryEN = "Italy";
var cntryIT = "Italia";
var cntryaEN = "Italian";
var cntryaIT = "Italiano";

var mthEN = new Array("January","February","March","April","May","June","July","August","September","October","November","December")
var mthIT = new Array("gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre")

var oldRight = "";
var oldLeft = "";
//* Parameters used for timers
var int1=5000;
var int2=3000;
var tim1=0;
var tim2=0;

function ItsFull(lng) {
 fultxt = '&nbsp;<span class="full">&nbsp;';
 switch (lng) 
 { 
   case "FR" : 
    fultxt = fultxt + 'Complet';
    break; 
   case "NL" : 
    fultxt = fultxt + 'Vol';
    break; 
   default : 
    fultxt = fultxt + 'Full';
 } 
 fultxt = fultxt + '&nbsp;</span>';
 document.write(fultxt);
}

//*************************************************************
//* CopyRight, companies, tradeTel 
//*************************************************************
function copyRight() {
  document.write(DnBCopyRight);
}

function companies() {
//  document.write(DnBCompanies);  
 var cmp = eval("DR1");
 document.write(cmp);
}

function tradeTel() {
  document.write(DnBTradeTel);
}

function InfoTel() {
  document.write(DnBInfoTel);
}

function InfoFax() {
  document.write(DnBInfoFax);
}

//*************************************************************
//* Show DunsRight Number in right format
//*************************************************************
function ShowNumber(num, ch) {
 ch2 = "";
 n2 = eval("DR" + num);

 for (i = 0; i < n2.length; i++)
 if (n2.charAt(i) ==',')
  ch2 += ch;
 else
  ch2 += n2.charAt(i);

 document.write(ch2);
}

//*************************************************************
//* Writes out the country name
//*************************************************************
function CtryName(typ, Lang) {
  if (typ == "N") {
    cStr = eval("cntry" + Lang);	
    document.write(cStr);
  }
  if (typ == "A") {
    cStr = eval("cntrya" + Lang);	
    document.write(cStr);
  }
}

//*************************************************************
//* Writes out the correct email string based on the type of
//* address required.  
//*************************************************************
function MailAddr(typ, subj) {
  if (subj == null) {
    subj = " " ; }

  if (typ=="cs") {
    document.write('<a href="mailto:' + CustServEmail + '?Subject=' + subj + '">' + CustServEmail + '</a>');
  } 

  if (typ=="mk") {
    document.write('<a href="mailto:' + MarketingEmail + '?Subject=' + subj + '">' + MarketingEmail + '</a>');
  } 

  if (typ=="ua") {
    document.write('<a href="mailto:' + UserAdminEmail + '?Subject=' + subj + '">' + UserAdminEmail + '</a>');
  } 

  if (typ=="hd") {
    document.write('<a href="mailto:' + HelpDeskEmail + '?Subject=' + subj + '">' + HelpDeskEmail + '</a>');
  } 
}

//*************************************************************
//* CopyRight, companies, tradeTel 
//*************************************************************
function copyRight() {
  document.write('<font size="1">&nbsp;');
  document.write(DnBCopyRight);
  document.write('</font>');
}
//*************************************************************
//* This function pops up a new window with no toolbars etc.
//*************************************************************
function popUpN(URL, ScrollBars, ReSizable, Width, Height) {
  if (ScrollBars == null) { 
    ScrollBars = "yes" ;
  }
  if (ReSizable == null) { 
    ReSizable = "yes" ;
  }
  if (Width == null) { 
    Width = "640" ;
  }
  if (Height == null) { 
    Height = "400" ;
  }
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbars=no,scrollbars=" + ScrollBars + ",location=no,statusbars=no,menubar=no,resizable=" + ReSizable + ",width=" + Width + ",height=" + Height + ",left=100,top=100');");
}

//*************************************************************
//* This function takes the two letter country code from a 
//* pull down list, constructs the URL and drives that in the 
//* _Top frame. 
//*************************************************************
function countryPage(selector) {
  var s = "http://www.dnb.com/" + selector.options[selector.selectedIndex].value;
  if (s) { parent.location = s  }
}

//*************************************************************
//* This function takes a value from a pull down combo box and
//* then drives that page into specified target.
//*************************************************************
function changePageNews(selector) {
  var s = selector.options[selector.selectedIndex].value;
  sArray = s.split(",")
  if (sArray[0]) { 
    selector.selectedIndex = 0 ;
    if (sArray[1] == "_top") {
      parent.location = sArray[0] ;
    }
    else {
      if (sArray[1] == "_blank") {
        window.open(sArray[0]);
      }
      else {
//        parent.main.location.href = sArray[0] ;
        parent.location = sArray[0] ;

      }
    }
  }
}

//**************************************************************
//* This function takes the language from a pull down combo box 
//**************************************************************
function ChangeLang(selector) {
  var s = selector.options[selector.selectedIndex].value;
  if (s != "") {
   setNLang(s);
   }
}

//***************************************************************
//* This functions pops up the OLA search window for Italy
//***************************************************************
function OlaPopup(Lang, Search) {

//   olalink = "http://dnb" + Lang + ".custhelp.com/cgi-bin/dnb"+ Lang + ".cfg/php/enduser/std_alp.php?p_new_search=1&p_scf_c_country_" ;
  olalink = 'http://dnb'+ Lang + '.custhelp.com/cgi-bin/dnb'+ Lang + '.cfg/php/enduser/std_alp.php?p_new_search=1&p_scf_' ;
 if (Lang=="en") {
   olalink = olalink + "3=30" ;
  } 
 if (Lang=="it") {
   olalink = olalink + "5=65" ;
  } 
  
 if (Search != null) {
    strSearch = ""
    for (i=0; i<Search.length; i++) {
      t = Search.charAt(i);
      if (t == '+') {
        t='%2B'
      }
      strSearch = strSearch + t
    }
    olalink = olalink + '&p_search_text=xSTA %2B' + strSearch ;
  }

  window.open(olalink);
}

function Pop_2008() {
	var pup = 'Strategia_2008.htm';
	pupWindow = window.open(pup,'popWin', 'width=680,height=710,top=10,left=10,status=no,menubar=no,scrollbars=yes,toolbar=no,resizable=no')
 
}
function Pop_Next(pup2) {
	pupWin2 = window.open(pup2); 
	self.close();
}

function Ola_en() {
 OlaPopup('en',null); }
 
function Ola_it() {
 OlaPopup('it',null); }
 
//* Functions created to show/hide divs
function showhidediv(nam, divn) {
  divnam = (nam + divn);
  var x = document.getElementById([divnam]);
  if (x != null) {
   if (x.style.display == 'block') 
    {x.style.display= 'none';}
   else 
    {x.style.display= 'block';}
  }
 }

function showLeftdiv(nam, divn) {
  showhidediv(oldLeft,'');
  divnam = (nam + divn);
  if (oldLeft != divnam) {
   showhidediv(nam, divn);
   oldLeft = divnam;}
  else
   oldLeft = '';
   
//  showRightdiv('show_',divnam);   
}

function showRightdiv(nam, divn) {
  divnum = divn;
  showhidediv(oldRight,'');
  divnam = (nam + divn);
  if (oldRight != divnam) {
   showhidediv(nam, divn);
   oldRight = divnam;}
  else
   oldRight = '';
}

function Subdivs(nam, divn, tot) {
// find which sub-divs to show from string
// the subdiv numbers should be separated with a character like "_"
 brochures.style.display= 'block';
  for (k=0; k<=tot; k++) { 
   var j = String(k)
   if (k > 9) 
   { j = String.fromCharCode(55 + k); }
   divnam = (nam + j);
   var x = document.getElementById(divnam);
   if (divn.indexOf(j) >= 0 || divn == 'all')
   {    x.style.display= 'block';       }
   else 
   {    x.style.display= 'none';       }   
 }  
}

function showprops() {
 var resultats;
 resultats='';
 for (var prop in document) {
  resultats+='document.' + prop + "=" + eval('document.' + prop) + '\n';
   }
// alert(resultats);
 document.write(resultats); 
}

function showdivprops(divn) {
 var resultats;
 resultats='';
 for (var prop in document.getElementById(divn)) {
  resultats+='document.' + divn + '.'+ prop + '=' + eval('document.getElementById(divn).' + prop) + '<br>';
   }
// alert(resultats);
 document.write(resultats); 
}

function showdivstyleprops(divn) {
 var resultats;
 resultats='';
 for (var prop in document.getElementById(divn).style) {
  resultats+='document.' + divn + '.style.'+ prop + '=' + eval('document.getElementById(divn).style.' + prop) + '<br>';
   }
// alert(resultats);
 document.write(resultats); 
}

function Setbgcolor(sectionnumber,bcol) {
    sectionnumber.style.backgroundColor=bcol;
}  

function Newcolors(sectionnumber, bc, fc) {
  sectionnumber.style.backgroundColor=bc;
  sectionnumber.style.color=fc;
}

function img_fade(imgID, pct) {
      if (isIE) {
        imgID.style.filter="alpha(opacity=0)";
        imgID.filters.alpha.opacity = pct;
      }
      else if(isOP) {
        imgID.style.opacity = pct/100;
      }  
      else {
        imgID.style.MozOpacity = pct/100;
      }  
}

//*************************************************************
//* This function checks to see if the preferred lanaguage has
//* already been set in a cookie - if so, the preferred home
//* page is displayed.  If not, the language selection page
//* is shown or a default language.
//*************************************************************
function checkLang() {
  var LangID = "pLang" + SiteCode ;
  var pLang = Get_Cookie(LangID);
  if (pLang == null) {
   pLang = "Dutch";
  }
    var pPage = pLang + "/Main/default.asp";  
    window.location.replace(pPage);
}

//*************************************************************
//* This function sets the preferred langauge in a cookie and
//* then displays the correct home page - from the chklang.htm
//* page
//*************************************************************
function setLang(sLang) {
  //* Set expiry date for cookies. 
  var today = new Date();
  var exp = new Date(today.getTime() + 365 * 86400000);
  var LangID = "pLang" + SiteCode ;
  if (document.frmLangSave.chkLangSave.checked == true){
    Delete_Cookie(LangID, '/') ;
    Set_Cookie(LangID, sLang, exp, '/') ;
  }
  var pPage = sLang + "/Main/default.asp"  ;
  window.location.replace(pPage) ;
}

//*************************************************************
//* This function sets the preferred language in a cookie and
//* then displays the correct home page - from the main menu.
//*************************************************************
function setNLang(sLang) {
  //* Set expiry date for cookies. 
  var today = new Date();
  var exp = new Date(today.getTime() + 365 * 86400000);
  var LangID = "pLang" + SiteCode ;
  var pLang = Get_Cookie(LangID);
  if (pLang != sLang) {   
    Delete_Cookie(LangID, '/') ;
    Set_Cookie(LangID, sLang, exp, '/') ;
  }
//  var pPage = "../../" + sLang + "/Main/default.asp"  ;
//  parent.location.replace(pPage) ;
  }

  
//*************************************************************
//* This function gets a cookie value
//*************************************************************
function Get_Cookie(name) {
  var start = document.cookie.indexOf(name+"=");
  var len = start+name.length+1;
  if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
  if (start == -1) return null;
  var end = document.cookie.indexOf(";",len);
  if (end == -1) end = document.cookie.length;
  return unescape(document.cookie.substring(len,end));
}

//*************************************************************
//* This function sets a cookie value
//*************************************************************
function Set_Cookie(name,value,expires,path,domain,secure) {
  if (path == "undefined" || path == null) {
    path = "/" ;    	
  }
  document.cookie = name + "=" +escape(value) +
    ( (expires) ? ";expires=" + expires.toGMTString() : "") +
    ( (path) ? ";path=" + path : "") + 
    ( (domain) ? ";domain=" + domain : "") +
    ( (secure) ? ";secure" : "");
}

//*************************************************************
//* This function deletes a cookie value
//*************************************************************
function Delete_Cookie(name,path,domain) {
  if (Get_Cookie(name)) document.cookie = name + "=" +
    ( (path) ? ";path=" + path : "") +
    ( (domain) ? ";domain=" + domain : "") +
    ";expires=Thu, 01-Jan-70 00:00:01 GMT";
}

//*************************************************************
//* This function checks to see if cookies are enabled. 
//*************************************************************
function isCookieEnabled() {
   if (document.all) return navigator.cookieEnabled;
   var today = new Date();
   Set_Cookie('testcookie',today.getTime());
   var tc = Get_Cookie('testcookie');
   Delete_Cookie('testcookie');
   return (tc == today.getTime());
}

function FillCol(colw) {
  document.write("<img border='0' src='../../images/Filler.gif' width='" + colw + "' height='1'>");
}

// *** Change title of top page with title of main page. ***
function Set_Title() {
// alert(top.document.title + "-> " + parent.main.document.title) ;
  top.document.title = parent.main.document.title ;
 }   

//* Language Page or default home page
var defLangPage = "ChkLang.htm";

//*************************************************************
//* Menu stuff
//*************************************************************

//bCol = "ffffff"; // highlight bar colour when mouse is over menu item
//fCol = "111111"; // text colour when mouse is over menu item
bCol = "666666"; // highlight bar colour when mouse is over menu item = Grey
fCol = "ffcc00"; // text colour when mouse is over menu item = Yellow
gCol = "ffcc00";
menuWidth = "150";

function ShowOver(sectionnumber) {
 var sn = sectionnumber.style
  sn.backgroundColor=bCol;
  sn.color=fCol;
//  sn.fontWeight='bold';
  sn.fontWeight='normal';
}

function HideOver(sectionnumber) {
 var sn = sectionnumber.style
  sn.backgroundColor='';
  sn.color='';
  sn.fontWeight='normal';
}

//*************************************************************
//* Button Stuff
//*************************************************************
buttgCol="dddddd"
buttfCol="444444"

function MakeButton(text,id,link,target,wid,colStem,align){
  linkText = ""
  if (link != null){
    linkText = '"' + link + '"' ;
  }
  tgtText = "location.href=" + linkText;
  if (target != null){
    if (target == "_top"){
      tgtText = "top.location.href=" + linkText;
    }
    else if (target == "_blank"){
      tgtText = "window.open(" + linkText + ")";
    }
    else if (target != "") { 
      tgtText = "parent." + target + ".location.replace(" + linkText + ")";
    }
  }
  widText = ""
  if (wid != null && wid != ''){
//    wid = wid - 12;
//    widText = 'width="' + wid + '" ' ;
    widText = 'width="' + wid-12 + '" ' ;
  }
  colText = "'butt'"
  if (colStem != null && colStem != ''){
    colText = "'" + colStem + "'";
  }
  alignText = "center"
  if (align != null){
    alignText = align ;
 }
  document.write('<table width="' + wid + '" cellspacing="0" cellpadding="5" border="0" style="border-collapse: collapse" bordercolor="#cccccc">') ;
  document.write('<tr class="' + eval(colText) + '" onclick=' + tgtText + ' onmouseover="ShowBOver(this,' + colText + ')" onmouseout="HideBOver(this)">') ;
  document.write('<td class="' + eval(colText) + '" align="' + alignText + '"' + widText + 'id="' + id + '" style="cursor:pointer;">') ;
  document.write('<nobr><font face="Arial">&#9658;</font> ' + text + '</nobr></td>') ;
  document.write('</tr></table>') ;
}

MenuBannerfCol = "ffcc00"; // text colour when mouse is over menu item = Yellow
MenuBannergCol = "666666";

function ShowBOver(sectionnumber,col) {
  sectionnumber.style.backgroundColor=eval(col + 'gCol');
  sectionnumber.style.color=eval(col + 'fCol');
}
function HideBOver(sectionnumber) {
  sectionnumber.style.backgroundColor='';
  sectionnumber.style.color='';
}

//***********************************************
//*  Use following Link for "Ask D&B a question"
//***********************************************
function OlaSearch(Lang) {
  olalink = 'http://dnb'+ Lang + '.custhelp.com/cgi-bin/dnb'+ Lang + '.cfg/php/enduser/ask.php' ;
  window.open(olalink);
}

function SetImage() {
  rand=Math.floor(ni*Math.random())
  var headerImage = eval("img" + (rand+1));
  document.write('<img src="'+headerImage+'" border="0" vspace="0" alt=""><br>');
}

function SetText() {
  var headertxt = eval("txt" + (rand+1));
  document.write(headertxt);
}

function Set_image(imgn) {

  imgtit.src = imgn ;

 with (parent.banniere.document.titpage) {
   src = imgtit.src ;
   width = imgtit.width ;
   height = imgtit.height ;
   }
 }
 
function GiveSize(xyz) {
 txm = 'Outer Width=' + xyz.outerwidth + ', Height=' + xyz.outerheight +'<br>' ;
 txm = txm + 'Inner Width=' + xyz.innerwidth + ', Height=' + xyz.innerheight ;
 txm = txm + 'Offset Width=' + xyz.offsetwidth + ', Height=' + xyz.offsetheight ;
 document.write(txm);
}

//*************************************************************
//* This function shows the specified layer
//*************************************************************
function showLayer(lName) {
  document.getElementById([lName]).style.visibility='visible';
}

//*************************************************************
//* This function hides the specified layer
//*************************************************************
function hideLayer(lName) {
  document.getElementById([lName]).style.visibility='hidden';
}

//*************************************************************
//* This function pops up a layer at a specifed to position.
//*************************************************************
function popLayer(lName, pos){
  document.getElementById([lName]).style.top=pos;
  showLayer(lName);
}

//*************************************************************
//* The following function are changing the top image and text
//*************************************************************
function Change_Image(imgnam, imgtit) {
 with (imgnam) {
   src = imgtit.src ;
   width = imgtit.width ;
   height = imgtit.height ;
   }
 }

function Change_txt(idnam, txtnam) {
 var docn
 if (document.getElementById) {
    docn = document.getElementById(idnam);
    }
  else if (document.all) {
    docn = document.all(idnam);
    }
 docn.innerHTML = txtnam;
}

function StartClocks() {
// alert("clocks started");
	Load_Next(1); 
//	Load_Scroll(1);
	Load_Hoovers(1);
}

function Load_Next(num) {

//* Replace image and text
var txr1 = eval("txt"+num);
 Change_txt('one', txr1);
 Change_txt('two', txr1);
 Change_txt('three', txr1);
 Change_txt('four', txr1);

 xx = document.getElementById('one');
 xw = 420 - (xx.offsetWidth/2);
 xh = 250 - (xx.offsetHeight/2);

 document.getElementById('msg').style.left = xw;
 document.getElementById('msg').style.top = xh;
 
//	GiveSize(this);
// Test if there is a link 
 txn = eval("lnk"+num);
 var x = document.getElementById('big_image');
 if (txn==""){
  x.onclick = "";
  x.style.cursor = "default";
 }
 else { 
  x.onclick = function() { location.href=eval("lnk"+num); return false;};
  x.style.cursor = "hand";
 }
 
//* Prepare next
 num=num+1;
 if(num>ni)
 {num=1;}
 txn="Load_Next(" + num + ")";
 
 tim1 = setTimeout(txn, int1);
}

function Load_Scroll(nums) {
 
//* Replace Scroll text
 var y = eval("Scrolltxt["+nums+"]");
 Change_txt('scrollp', y); 

//* Prepare next
 nums=nums+1;
 if(nums>si)
 {nums=0;}
 txn="Load_Scroll(" + nums + ")";

// fade_down('IM_1',100) 
 tim2 = setTimeout(txn, int2);
}

function Load_Hoovers(nums) {
 
//* Replace Hoovers Scroll text
 var y = eval("ScrollHvr["+nums+"]");
 Change_txt('Hoovers', y); 

//* Prepare next
 nums=nums+1;
 if(nums>sh)
 {nums=0;}
 txn="Load_Hoovers(" + nums + ")";

// fade_down('IM_1',100) 
 tim2 = setTimeout(txn, int2);
}

function fade_all_imgs(nam){
for(i = 0; i < document.all.length; i++){
 if (document.all(i).tagName == "IMG"){
  tst=document.all(i).id.substr( 0, nam.length);  
  if (tst == nam)
   img_fade(document.all(i),70);
    }
   }
}

function fade_up(img,i){
 i=i+1;
 if(i<100) {
   img_fade(document.getElementById([img]),i);
   txn="fade_up('" + img + "'," + i + ")";

   setTimeout(txn, 15);
   }
}

function fade_down(img,i){
 i=i-1;
 if(i>0) {
   img_fade(document.getElementById([img]),i);
   txn="fade_down('" + img + "'," + i + ")";
   
   setTimeout(txn, 15);
   }
}

//* Obtain X and Y position of Mouse ???
function ShowMouse(){
var IE = document.all?true:false;
if (!IE) document.captureEvents(Event.MOUSEMOVE)
 document.onmousemove = getMouseXY;
var tempX = 0;
var tempY = 0;
}

function getMouseXY(e) {
if (isIE) { // grab the x-y pos.s if browser is IE
 tempX = event.clientX + document.body.scrollLeft;
 tempY = event.clientY + document.body.scrollTop;
}
else {  // grab the x-y pos.s if browser is NS
 tempX = e.pageX;
 tempY = e.pageY;
}  
if (tempX < 0){tempX = 0;}
if (tempY < 0){tempY = 0;}  

alert(tempX + ", " + tempY);
//return true;
	}		
	
function RollOver(thisitem){
  thisitem.style.color='#006699';
}	
function RollOut(thisitem){
  thisitem.style.color='';
}	
function PushClick(clicn) {
 document.getElementById([clicn]).click();
}

function activateBlock(id) {
  if (document.getElementById([id]) != null){
    document.getElementById([ActiveBlock]).style.display='none';
    document.getElementById([id]).style.display='';
    ActiveBlock = id;
    document.cookie="NewsBlock="+ActiveBlock;
    if (id=="Trainings") {
       ShowTitle('T1');  }
    else
     if (id=="Events")   {
       ShowTitle('T2');  }
     else                {
       ShowTitle('T3');  }
  }  
}

function ShowTitle(id) {
    document.getElementById('T1').style.display='none';
    document.getElementById('T2').style.display='none';
    document.getElementById('T3').style.display='none';
    document.getElementById([id]).style.display='';
}

function activateNews(id) {
  if (document.getElementById([id]) != null){
    document.getElementById([ActiveBlock]).style.display='none';
    document.getElementById([id]).style.display='';
    ActiveBlock = id;
    document.cookie="NewsBlock="+ActiveBlock;
    if (id=="BusNews") 
       CheckMe('B1');
    else
       CheckMe('B2');
  }  
}

function CheckMe(MyID) {
    document.getElementById('B1').style.backgroundColor='#ffffff'; 
    document.getElementById('B1').style.color='#999999'; 
    document.getElementById('B2').style.backgroundColor='#ffffff'; 
    document.getElementById('B2').style.color='#999999'; 
    document.getElementById(MyID).style.backgroundColor='#999999';   
    document.getElementById(MyID).style.color='#ffffff';         
}

function NewsCookie(ActiveBlock) {
    document.cookie="NewsBlock="+ActiveBlock;
}

function Show_Hide(Button,Block,Count) {
 if (Count == 0) {
    document.getElementById(Button).style.display='none';
    document.getElementById(Block).style.display='none';
}
}

function ShowDivs(Div1,Div2) {
    document.getElementById('B1').style.visibility='visible';
    document.getElementById('B2').style.visibility='visible'; 
    document.getElementById('BusNews').style.visibility='visible';
    document.getElementById('DBNews').style.visibility='visible'; 
 if (Div1 == 0) {
    document.getElementById('B1').style.visibility='hidden';
    document.getElementById('BusNews').style.visibility='hidden';
   }
 if (Div2 == 0) {
    document.getElementById('B2').style.visibility='hidden';
    document.getElementById('DBNews').style.visibility='hidden';
   }
}

function Addtxt() {
   var t1 = document.createTextNode(" (" + Get_Cookie('BusNews') + ")");
   var t2 = document.createTextNode(" (" + Get_Cookie('DBNews') + ")");
   document.getElementById('B1').appendChild(t1);
   document.getElementById('B2').appendChild(t2);
//   insertBefore(t2,document.getElementById('B2').firstChild);

}

function Addtitle(tit) {
   var x=document.getElementById(tit);
   txn = "<a class='nav' target='_top' href='"+document.location.href+"'>"+document.title+"</a>";
   x.innerHTML = x.innerHTML+txn;
}

function ShowLinks(tit) {
   var x=document.getElementById(tit);
   txn = "<a href='"+document.location.href+"'>"+document.title+"</a>";
   var t1 = document.createTextNode(txn);
   x.appendChild(t1);
}

function LoadNext2(num) {
 txn = "bann" + num;
 document.getElementById(txn).style.display='block'; 

var num2 = num - 1;
 if (num2 == 0)
 {num2 = ni;}
 txn = "bann" + num2;
 document.getElementById(txn).style.display='none'; 
 
//* Prepare next
 num = num + 1;
 if (num > ni)
 {num = 1;}
 txn="LoadNext2(" + num + ")";
 setTimeout(txn, 5000);
}

function ShowImage(num, delay) {

 for(i = 0; i < ni; i++){
 txn = "bann" + (i+1);
 document.getElementById(txn).style.display='none'; }
 
 txn = "bann" + num;
 document.getElementById(txn).style.display='block'; 
 
//* Prepare next
 num = num + 1;
 if (num > ni)
 {num = 1;}
 txn="ShowImage(" + num + ", " + delay + ")";
 setTimeout(txn, delay);
}

function XML_DOM_old(langcd, ctry) {
 pathn = "../../CountryList.xml";
 var txj = new Array();
//*** Code for IE ***
if (window.ActiveXObject) 
{
 var XMLDoc = new ActiveXObject("Microsoft.XMLDOM"); 
 }
//*** Code for Mozilla, Firefox, Opera, etc... ***
else if (document.implementation &&
 document.implementation.createDocument)
 {
 var XMLDoc = document.implementation.createDocument("","",null);
 }
else
 {
 alert('Your browser cannot handle this script!');
 }
 XMLDoc.async = false;
 XMLDoc.load(pathn);  

//'*** Create XPath selection with Language code *** 
 xpath = "/Languages/lang[@code='"+langcd+"']";
if (isIE) 
 { var x = XMLDoc.selectNodes(xpath); }
else
 { var x = document.evaluate(xpath, XMLDoc, null, XPathResult.ANY_TYPE, null); }

// '*** Find attribute "boxtxt" value = attribute 2 ***
  txj[0]="<option selected>" + x[0].getAttribute('boxtxt') + "</option>";
 
 //'*** Create XPath for Countries in this Language *** 
 xpath = xpath + "/country";
if (isIE) 
 { var x = XMLDoc.selectNodes(xpath); }
else
 { var x = document.evaluate(xpath, XMLDoc, null, XPathResult.ANY_TYPE, null); }

//x=xmlDoc.documentElement.childNodes;
//alert("Number of elements: " + x.length);

//*** This doesn't work with NetScape and Firefox ??? ***
 for (i = 0; i < x.length; i++)
 {
  ctrycd = x[i].getAttribute('code')
  if (ctrycd != ctry) {
	  j=i+1;
	  //*** Only Select Elements for this language code ***
	  txj[j]="<option value='"+ ctrycd + "'>" +x[i].childNodes[0].nodeValue+"</option>";
 	 }
  }
  
 for (i = 0; i < j+1; i++)
  document.write(txj[i]+'\r');  
  
// set XMLDoc = nothing

}

function XML(lang) {
//load xml file
if (window.ActiveXObject){
var XMLDoc = new ActiveXObject("Microsoft.XMLDOM");
XMLDoc.async=false; //Enforce download of XML file first. IE only.
}
else if (document.implementation && document.implementation.createDocument)
var XMLDoc= document.implementation.createDocument("","doc",null);
if (typeof XMLDoc!="undefined")
XMLDoc.load("dailynews.xml");

//Regular expression used to match any non-whitespace character
var notWhitespace = /\S/

function getdaily(){
//Cache "messages" element of xml file
var msgobj=XMLDoc.getElementsByTagName("messages")[0]

//REMOVE white spaces in XML file. Intended mainly for NS6/Mozilla
for (i=0;i<msgobj.childNodes.length;i++){
if ((msgobj.childNodes[i].nodeType == 3)&&
(!notWhitespace.test(msgobj.childNodes[i].nodeValue))) {
// that is, if it's a whitespace text node
msgobj.removeChild(msgobj.childNodes[i])
i--
}
}

var dateobj=new Date()
var today=dateobj.getDay() //returns 0-6. 0=Sunday

//Get today's message and display it in DIV:
document.getElementById("container").innerHTML=
XMLDoc.getElementsByTagName("messages")[0].childNodes[today].firstChild.nodeValue
}

if (typeof XMLDoc!="undefined"){
if (window.ActiveXObject) //if IE, simply execute script (due to async prop).
getdaily()
else //else if NS6, execute script when XML object has loaded
XMLDoc.onload=getdaily
}
}

//*************************************************************
//* functions to display a popup window set to the size of the 
//* selected picture.
//*************************************************************
var Photo1 = new Image();
var pURL
var pWindow

function OpenPhoto() { 
  ScrollBars = "no" ;
  ReSizable = "no" ;
  Width = Photo1.width ;
  Height = Photo1.height ;
  Left = screen.width - Width - 50
  day = new Date();
  id = day.getTime();
  eval("pWindow = window.open(pURL, '" + id + "', 'toolbars=no,scrollbars=" + ScrollBars + ",location=no,statusbars=no,menubar=no,resizable=" + ReSizable + ",width=" + Width + ",height=" + Height + ",left=" + Left + ",top=50');");
} 

function ViewPhoto(URL, root) {
  if (pWindow != null) {
    pWindow.close();
  }
  pURL = URL ;
  sArray = URL.split("=") ;
  pic = sArray[1] ;
  Photo1.onload = OpenPhoto;
  Photo1.src = root + pic ;
  }

//*************************************************************
//* This function pops up a new window with no toolbars etc.
//*************************************************************
function popupForm(URL, ScrollBars, ReSizable, Width, Height) {
  if (ScrollBars == null) { 
    ScrollBars = "yes" ;
  }
  if (ReSizable == null) { 
    ReSizable = "yes" ;
  }
  if (Width == null) { 
    Width = "640" ;
  }
  if (Height == null) { 
    Height = "400" ;
  }
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbars=no,scrollbars=" + ScrollBars + ",location=no,statusbars=no,menubar=no,resizable=" + ReSizable + ",width=" + Width + ",height=" + Height + ",left=10,top=10');");
}

//*************************************************************
//* This function checks to see if the Loc parameter is 
//* specifed on the frame URL and then selects the correct
//* page.  It is used when a user calls a page in the web directly
//* so that the Frame environment can be loaded. 
//*************************************************************
function checkLoc() {
  NewLink="main/default.asp";    
//* Find parameter, else goto default page
  if (parent.location.search) {
    sArray = parent.location.search.split("=") ;
    NewLoc = sArray[1].toUpperCase() ;
    if (NewLoc=="ABOUT/CONDS.HTM") 
	    NewLink="About/conds.asp";
	}   
  location.replace(NewLink) ;    
}

//*****************************************************
//*** New version of page redirection CheckNewLoc() ***
//*****************************************************
function CheckNewLoc() {
 var page_href, path1, path2, lng1, lng2, lng3, AllOK;
 lng1 = "DUTCH";
 lng2 = "FRENCH";
 lng3 = "ENGLISH";
 AllOK = "True"; 
 page_href = location.href.toUpperCase();

//*** Find root path ***   
 posn = page_href.indexOf(lng1);
 if (posn != -1) {
    path1 = page_href.substr(0,posn-1);
    path2 = page_href.substr(0,posn+lng1.length);
   }
 else {
   posn = page_href.indexOf(lng2);
   if (posn != -1){	
    path1 = page_href.substr(0,posn-1);
    path2 = page_href.substr(0,posn+lng2.length);
    }
   else {
     posn = page_href.indexOf(lng3);
     if (posn != -1){	
      path1 = page_href.substr(0,posn-1);
      path2 = page_href.substr(0,posn+lng3.length);
      }
     else {
//*** Not under Language folder, should go to homepage !!
	   AllOK = "False";
	   NewLoc = HomePage;
     } 
   }
 }	  
if (AllOK == "True") {
//*** Search parameters (Location) ***
  if (parent.location.search) {
    NewLoc = parent.location.search.toUpperCase();
    NewLoc = NewLoc.replace("?LOC=","");    
  }  
  else {
    NewLoc = location.pathname;
  }
  	NewLoc = path1+"/Common/Redirect2.asp?pagn="+NewLoc+"&rootn="+path2;	
}
    location.href = NewLoc ;   
}

function showlocation() {
 if (parent.location) {
 for (var prop in parent.location) {
  document.write('parent.location.' + prop + "=" + eval('parent.location.' + prop)+ '\n');
   }
  }
 for (var prop in location) {
  document.write('location.' + prop + "=" + eval('location.' + prop)+ '\n');
   }
}

function Showpdf(nums) {
 document.write("<% ShowData='"+nums+"'%>");
}


//*** New XML_DOM ***
function XML_DOM_new(langcd, ctry) {
 var txj = new Array();

//*** Read XML file ***
 var pathn = "../../CountryList.xml";
 var XMLDoc = XML_File(pathn);
 
//'*** Create XPath selection with Language code *** 
 var xpath1 = "/Languages/lang[@code='"+langcd+"']";
 var x = XPath_GetData(XMLDoc, xpath1);
 
// '*** Find attribute "boxtxt" value = attribute 2 ***
 var y = x.getElementsByTagName("lang");
 txj[0]="<option selected>" + y.getAttribute("boxtxt") + "</option>";
 
// txj[0]="<option selected>" + x[0].getAttribute('boxtxt') + "</option>";

 //'*** Create XPath for Countries in this Language *** 
 var xpath2 = xpath1 + "/country";
 var x = XPath_GetData(XMLDoc, xpath2);
// x = Remove_Spaces(x);
alert(x.length + " elements");
 
//*** This doesn't work with NetScape and Firefox ??? ***
 for (i = 0; i < x.length; i++)
 {
  ctrycd = x[i].getAttribute('code')
  if (ctrycd != ctry) {
	  j=i+1;
	  //*** Only Select Elements for this language code ***

//	txj[j]="<option value='"+ ctrycd + "'>" + x.item(i).childNodes[0].nodeValue + "</option>";
//	txj[j]="<option value='"+ ctrycd + "'>" + x.item(i).getElementsByTagName("country") + "</option>";
	  txj[j]="<option value='" + ctrycd + "'>" + x[i].childNodes[0].nodeValue + "</option>";
 	 }
  }
  
 for (i = 0; i < j+1; i++)
  document.write(txj[i]+'\r');  
}

//************************
//*** Parsing XML File ***
//************************
function XML_File(filnam) {
 try //Internet Explorer
  {
  XMLDoc=new ActiveXObject("Microsoft.XMLDOM");
  }
 catch(e)
  {
  try //Firefox, Mozilla, Opera, etc.
    {
    XMLDoc=document.implementation.createDocument("","",null);
    }
  catch(e) {alert(e.message)}
  }
 try 
  {
  XMLDoc.async=false;
  XMLDoc.load(filnam);
  return(XMLDoc);
  }
 catch(e) {alert(e.message)}
 return(null);
}

//**************************
//*** Parsing XML String *** ??? I don't know if it's working ???
//**************************
function XML_String(txtnam) {
try //Internet Explorer
  {
  xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
  xmlDoc.async="false";
  xmlDoc.loadXML(text);
  }
catch(e)
  {
  try //Firefox, Mozilla, Opera, etc.
    {
    parser=new DOMParser();
    xmlDoc=parser.parseFromString(text,"text/xml");
    }
  catch(e) {alert(e.message)}
  }
try 
  {
  return(x);
  }
catch(e) {alert(e.message)}
}

//************************
//*** Loading XML data ***
//************************
function XPath_GetData(XMLDoc, xpath) {
try //Internet Explorer
    {
  var y = XMLDoc.selectNodes(xpath); 
  return(y);
  	}
 catch(e)
  {
  try //Firefox, Mozilla, Opera, etc.
    {
  var y = document.evaluate(xpath, XMLDoc, null, XPathResult.ANY_TYPE, null); 

  return(y);  
  }
catch(e) {alert(e.message)}
}
}

function Remove_Spaces(msgobj) {
//REMOVE white spaces in XML file. Intended mainly for NS6/Mozilla
for (i=0;i<msgobj.childNodes.length;i++){

	if ((msgobj.childNodes[i].nodeType == 3)&&
	(!notWhitespace.test(msgobj.childNodes[i].nodeValue))) {

		// that is, if it's a whitespace text node
		msgobj.removeChild(msgobj.childNodes[i])
		i--
}
}
  return(msgobj);  

}

//*** Change button Colors ***
function TopBlue(butn) {
  butnam="im"+butn
  document.getElementById(butnam).style.backgroundColor= '#000066';
  texnam="tm"+butn
  document.getElementById(texnam).style.color='#FFFFFF';
}

function TopYellow(butn) {
  butnam="im"+butn
  document.getElementById(butnam).style.backgroundColor= '#ffcc00' ;
  texnam="tm"+butn
  document.getElementById(texnam).style.color='#000066';
}

function protect(e) {
alert("Sorry, you don't have permission to right-click on this object");
return false;
}

function trap() {
if(document.images)
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown = protect;
}

function Move_Center(objnam) {
 var xx=document.getElementById(objnam);
// xw = 460 - (xx.offsetWidth/2);
// xh = 245 - (xx.offsetHeight/2);

 xw = (document.body.offsetWidth - xx.offsetWidth)/2;
 xh = (document.body.offsetHeight - xx.offsetHeight)/2;

 xx.style.left = xw;
 xx.style.top = xh;
 xx.style.visibility='visible';
}

function Send_Form(dunsnbr,name,trading,adres,post,town) {
 newpage= "../Forms/Find_Company_Form.asp?duns=" + dunsnbr +"&name=" + name + "&trading="+ trading;
 newpage = newpage + "&adres=" + adres + "&post=" + post + "&town=" + town;
// newpage = encodeURI(newpage);
// newpage = decodeURI(newpage);

 window.location.href(newpage);
}

function insertIframe()
{
var node;
if (document.getElementById)
	{
	node = document.getElementById("div02");
	if (node)
		{
		var myElement = document.createElement("DIV");
		node.appendChild(myElement);

		myElement.innerHTML =
		"<iframe src='http://dnb.taleo.net/careersection/2/jobsearch.ftl?lang=en' " +
		" width='780' height='550' marginwidth='0' marginheight='0' hspace='0' vspace='0' frameborder='0' scrolling='yes'></iframe> " ;
		node.style.visibility='visible';
		node.style.display='block';
		}
	}
}
 
function LoadFrame() {
  NewLink="frame_eloqua.asp";    
  location.replace(NewLink) ;    
}

//******************************************
//*** New XML functions for Country list ***
//******************************************
function XML_DOM(langcd, ctry) {
var xml=loadXMLDoc("../../CountryList.xml");

//*** Find records for this language ***
path = "/Languages/lang[@code='"+langcd+"']";

// Find text from header record, attribute='boxtxt'
//*** code for IE ***
if (window.ActiveXObject)
{
var nodes=xml.selectNodes(path);
document.write("<option selected>" + nodes[0].getAttribute('boxtxt') + "</option>");
}

//*** code for Mozilla, Firefox, Opera, etc. ***
else if (document.implementation && document.implementation.createDocument)
{
var nodes=xml.evaluate(path, xml, null, XPathResult.ANY_TYPE, null);
var result=nodes.iterateNext();
document.write("<option selected>" + result.getAttribute('boxtxt') + "</option>");

}
//*** Find all Countries for this language ***
path = path +"/country";

//*** code for IE ***
if (window.ActiveXObject)
{
var nodes=xml.selectNodes(path);

//*** Select Elements for this language code ***
for (i=0;i<nodes.length;i++)
  {
  ctrycd = nodes[i].getAttribute('code');
  //*** Exclude this country ***
  if (ctrycd != ctry) {
	  document.write("<option value='"+ ctrycd + "'>" +nodes[i].childNodes[0].nodeValue+"</option>");
 	 }
  }
}

//*** code for Mozilla, Firefox, Opera, etc. ***
else if (document.implementation && document.implementation.createDocument)
{
var nodes=xml.evaluate(path, xml, null, XPathResult.ANY_TYPE, null);
var result=nodes.iterateNext();

//*** Select Elements for this language code ***
while (result)
  {
  ctrycd = result.getAttribute('code')
  //*** Exclude this country ***
  if (ctrycd != ctry) {
	  document.write("<option value='"+ ctrycd + "'>" +result.childNodes[0].nodeValue+"</option>");
 	 }
  result=nodes.iterateNext();
  }
}
}

function loadXMLDoc(fname)
{
var xmlDoc;
//*** code for Chrome ***
if (window.XMLHttpRequest)
{
  xmlDoc=new window.XMLHttpRequest();
  xmlDoc.open("GET",fname,false);
  xmlDoc.send("");
  xmlDoc=xmlDoc.responseXML;
}
//*** code for IE ***
// IE 5 and IE 6
else if (window.ActiveXObject)
//if (ActiveXObject("Microsoft.XMLDOM"))
{
  xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
  xmlDoc.async=false;
  xmlDoc.load(fname);
}
//*** code for Mozilla, Firefox, Opera, etc. ***
else if (document.implementation && document.implementation.createDocument)
  {
  xmlDoc=document.implementation.createDocument("","",null);
  xmlDoc.async=false;
  xmlDoc.load(fname);
  }
else
  {
  alert('Your browser cannot handle this script');
  }
return(xmlDoc);
}

function loadXMLDoc_xxx(fname)
{
var xmlDoc;
if (window.XMLHttpRequest)
{
  xmlDoc=new window.XMLHttpRequest();
  xmlDoc.open("GET",fname,false);
  xmlDoc.send("");
  xmlDoc=xmlDoc.responseXML;
}
//*** code for IE ***
// IE 5 and IE 6
else if (ActiveXObject("Microsoft.XMLDOM"))
{
  xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
  xmlDoc.async=false;
  xmlDoc.load(fname);
}

//*** code for Mozilla, Firefox, Opera, etc. ***
else if (document.implementation && document.implementation.createDocument)
  {
  xmlDoc=document.implementation.createDocument("","",null);
  xmlDoc.async=false;
  xmlDoc.load(fname);
  }
else
  {
  alert('Your browser cannot handle this script');
  }
return(xmlDoc);
}

function MakeBlue(butn) {
  butnam="imb"+butn
  document.getElementById(butnam).style.background = "url('../../Images/empty_button_blue.png')" ;
  texnam="tmb"+butn
  document.getElementById(texnam).style.color='#FFFFFF';
//  document.getElementById(butn).style.fontWeight='normal';
}

function MakeYellow(butn) {
  butnam="imb"+butn
  document.getElementById(butnam).style.background = "url('../../Images/empty_button_yellow.png')" ;
  texnam="tmb"+butn
  document.getElementById(texnam).style.color='#000066';
//  document.getElementById(butn).style.fontWeight='bold';
}

//*************************************************************
//* This functions pops up the DMI interactive demo window
//* that is located in the DBAI web site. 
//*************************************************************
function dmiPopup(Lang) {
  dmilink = "https://www.dbai.dnb.com/decmak/popup.asp?Lang=" ;
  dmilink = dmilink + Lang ;
  window.open(dmilink,'','directories=0,location=0,menubar=0,scrollbars=0,status=0,toolbar=0,resizable=0,width=650,height=550');
}

// -->