<!-- Hide JavaScript code from old browsers

// De elementer du ikke vil anvende fjernes med de to // foran linien
// PS! det skal gøres både i addReadRequest og i myform.elements
// De automatiske funktioner virker kun i IE 5.+
// 2 næsten indentiske funktioner indsætter henholdsvis din private
// og din firma profil.

function BusinessProfile() {

var profile = navigator.userProfile;

profile.clearRequest();
	
profile.addReadRequest("Vcard.FirstName");
profile.addReadRequest("Vcard.LastName");
profile.addReadRequest("Vcard.Email");
profile.addReadRequest("vCard.Company");
profile.addReadRequest("Vcard.Business.StreetAddress");
profile.addReadRequest("Vcard.Business.Zipcode");
profile.addReadRequest("Vcard.Business.City");
profile.addReadRequest("Vcard.Business.Country");
profile.addReadRequest("Vcard.Business.Phone");
profile.addReadRequest("Vcard.Cellular");
profile.addReadRequest("Vcard.Business.Fax");
	
// profile.doReadRequest(1,"Epost til Unomedical");

var myForm = document.f;
   
myForm.elements["realname"].value = profile.getAttribute("Vcard.FirstName");
myForm.elements["Virksomhed"].value = profile.getAttribute("vCard.Company");
myForm.elements["Adresse"].value = profile.getAttribute("Vcard.Business.StreetAddress");
myForm.elements["Land"].value = profile.getAttribute("Vcard.Business.Country");
myForm.elements["Telefon"].value = profile.getAttribute("Vcard.Business.Phone");
myForm.elements["Fax"].value = profile.getAttribute("Vcard.Business.Fax");
myForm.elements["email"].value = profile.getAttribute("Vcard.Email");
// myForm.elements["Efternavn"].value = profile.getAttribute("Vcard.LastName");


// myForm.elements["Postnr"].value = profile.getAttribute("Vcard.Business.Zipcode");
// myForm.elements["By"].value = profile.getAttribute("Vcard.Business.City");


// myForm.elements["Mobil"].value = profile.getAttribute("Vcard.Cellular");

 	
profile.clearRequest();
// document.f.realname.focus();
return false;
}

function PrivateProfile() {

var profile = navigator.userProfile;

profile.clearRequest();
	
profile.addReadRequest("Vcard.FirstName");
profile.addReadRequest("Vcard.LastName");
profile.addReadRequest("Vcard.Email");
profile.addReadRequest("Vcard.Home.StreetAddress");
profile.addReadRequest("Vcard.Home.Zipcode");
profile.addReadRequest("Vcard.Home.City");
profile.addReadRequest("Vcard.Home.Country");
profile.addReadRequest("Vcard.Home.Phone");
profile.addReadRequest("Vcard.Cellular");
profile.addReadRequest("Vcard.Home.Fax");
	
// profile.doReadRequest(1,"Epost til Unomedical");

var myForm = document.f;
   
myForm.elements["realname"].value = profile.getAttribute("Vcard.FirstName");
// myForm.elements["Efternavn"].value = profile.getAttribute("Vcard.LastName");
myForm.elements["email"].value = profile.getAttribute("Vcard.Email");
myForm.elements["Adresse"].value = profile.getAttribute("Vcard.Home.StreetAddress");
// myForm.elements["Postnr"].value = profile.getAttribute("Vcard.Home.Zipcode");
// myForm.elements["By"].value = profile.getAttribute("Vcard.Home.City");
myForm.elements["Land"].value = profile.getAttribute("Vcard.Home.Country");
myForm.elements["Telefon"].value = profile.getAttribute("Vcard.Home.Phone");
// myForm.elements["Mobil"].value = profile.getAttribute("Vcard.Cellular");
myForm.elements["Fax"].value = profile.getAttribute("Vcard.Home.Fax");
 	
profile.clearRequest();

if((myForm.elements["realname"].value=='') && (myForm.elements["email"].value=='') && (myForm.elements["Adresse"].value=='') && (myForm.elements["Postnr"].value=='') && (myForm.elements["By"].value=='') && (myForm.elements["Land"].value=='') && (myForm.elements["Telefon"].value=='') && (myForm.elements["Mobil"].value=='') && (myForm.elements["Fax"].value==''))
       {
alert('Der blev ikke indsat nogen data fra din profil.\nDu har enten afvist at indsætte dine data, eller din profil er tom.\n\nDu kan aktivere din profil i Internet Explorer under menupunktet:\nFunktioner > Internetindstillinger > Indhold > Min profil');
document.f.subject.focus();
return false;
       }
      else
       {
// document.f.realname.focus();
return false;
}
}

// end hiding code -->