
var hoverMenuColor = "#7f8376";
var lastClickedMenuId = "menu1";
var lastClickedMenuColor = "#bec2b4";

function menuIn(menuId, originalColor){
    document.getElementById(menuId).style.backgroundColor = hoverMenuColor;
}

function menuClick(menuId, originalColor){
    document.getElementById(lastClickedMenuId).style.backgroundColor = lastClickedMenuColor;
    lastClickedMenuId = menuId;
    lastClickedMenuColor = originalColor;

}

function menuOut(menuId, originalColor){
  if(menuId != lastClickedMenuId){
    document.getElementById(menuId).style.backgroundColor = originalColor;
  }
}




/**************** COMMENTS POPUP - START *********************/

function popUp(URL) {
    day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=430,height=355,left = 415,top = 250');");
}

/**************** COMMENTS POPUP - SLUT *********************/



/************  FUNKTION TIL AT ÆNDRE FARVE PÅ MENUEN    ************************************/



var someMenuOpen = "yes";

var lastClickedMenu = "menu1";





function menuColor(chosenMenu, type){

    if(type=="in"){

        document.getElementById(chosenMenu).style.backgroundColor='#7f8376';

        document.getElementById(chosenMenu).style.color='#7f8376';

    }

    else if(type=="click" && someMenuOpen=="no"){

        document.getElementById(chosenMenu).style.backgroundColor='#7f8376';

        someMenuOpen = "yes";

        lastClickedMenu = chosenMenu;

    }

    else if(type=="click" && someMenuOpen=="yes"){

        if(lastClickedMenu==chosenMenu){

            document.getElementById(chosenMenu).style.backgroundColor='#7f8376';

            someMenuOpen = "no";

        }

        else{

            document.getElementById(lastClickedMenu).style.backgroundColor='#bec2b4';

            document.getElementById(chosenMenu).style.backgroundColor='#7f8376';

            lastClickedMenu = chosenMenu;

            someMenuOpen = "yes";

        }

    }

    else if(type=="out" && someMenuOpen=="no"){

        document.getElementById(chosenMenu).style.backgroundColor='#bec2b4';

    }

    else if(type=="out" && someMenuOpen=="yes" && lastClickedMenu==chosenMenu){

        document.getElementById(chosenMenu).style.backgroundColor='#7f8376';

    }

    else if(type=="out" && someMenuOpen=="yes" && lastClickedMenu!=chosenMenu){

        document.getElementById(chosenMenu).style.backgroundColor='#bec2b4';

    }

}



function changeMenuColor(chosenMenu, newColor, OldColor){

    if(type=="in"){

        document.getElementById(chosenMenu).style.backgroundColor='#7f8376';

        document.getElementById(chosenMenu).style.color='#7f8376';

    }

    else if(type=="click" && someMenuOpen=="no"){

        document.getElementById(chosenMenu).style.backgroundColor='#7f8376';

        someMenuOpen = "yes";

        lastClickedMenu = chosenMenu;

    }

    else if(type=="click" && someMenuOpen=="yes"){

        if(lastClickedMenu==chosenMenu){

            document.getElementById(chosenMenu).style.backgroundColor='#7f8376';

            someMenuOpen = "no";

        }

        else{

            document.getElementById(lastClickedMenu).style.backgroundColor='#bec2b4';

            document.getElementById(chosenMenu).style.backgroundColor='#7f8376';

            lastClickedMenu = chosenMenu;

            someMenuOpen = "yes";

        }

    }

    else if(type=="out" && someMenuOpen=="no"){

        document.getElementById(chosenMenu).style.backgroundColor=color;

    }

    else if(type=="out" && someMenuOpen=="yes" && lastClickedMenu==chosenMenu){

        document.getElementById(chosenMenu).style.backgroundColor='#7f8376';

    }

    else if(type=="out" && someMenuOpen=="yes" && lastClickedMenu!=chosenMenu){

        document.getElementById(chosenMenu).style.backgroundColor=color;

    }

}



/************  FUNKTION TIL AT ÆNDRE FARVE PÅ CONTACT    ************************************/



function menuColorContact(chosenMenu, type){

    if(type=="in"){

        document.getElementById(chosenMenu).style.backgroundColor='#4C4C4C';

    }

    else if(type=="out"){

        document.getElementById(chosenMenu).style.backgroundColor='#000000';

    }

}



/************  FUNKTION TIL AT FJERNE TEKST FRA INPUT BOKSE    ************************************/



function clearInput(id){

    if(id.defaultValue==id.value){

        id.value = "";

    }

}





/************  FUNKTION TIL AT SENDE HTML-INFORMATIONER TIL NYHEDSBREVS-SCRIPTET    ************************************/



function sendForm(url){

    document.formnavn.action = url;

    document.formnavn.submit();

}


/************  FUNKTION TIL AT LINKE TIL DARFURNICA COMMENTS    ************************************/



function sendFormDarfurnica(url){

    document.darfurnica.action = url;

    document.darfurnica.submit();

}





/**************************************/



function swapImage(id, newImage){

    document.getElementById(id).src = newImage;

}



/*******************************************/



function markTshirtMenu(){

    parent.menu.document.getElementById('menu1').style.backgroundColor='#4C4C4C';

    parent.menu.document.getElementById('menu2').style.backgroundColor='#4C4C4C';

    parent.menu.document.getElementById('menu3').style.backgroundColor='#4C4C4C';

    parent.menu.document.getElementById('menu4').style.backgroundColor='#4C4C4C';

    parent.menu.document.getElementById('menu5').style.backgroundColor='#4C4C4C';

    parent.menu.document.getElementById('menu6').style.backgroundColor='#4C4C4C';

    parent.menu.document.getElementById('menu7').style.backgroundColor='#4C4C4C';

    parent.menu.document.getElementById('menu9').style.backgroundColor='#4C4C4C';

    parent.menu.document.getElementById('menu11').style.backgroundColor='#4C4C4C';

    parent.menu.document.getElementById('menu8').style.backgroundColor='#000000';

    someMenuOpen = "yes";

    lastClickedMenu = "menu8";

}





/*******************************************/



function tShirtCalculator(browser){



    // Indlæser antallet af valgte t-shirts og plakater.

    var femaleSmall = document.getElementById('female_small').value;

    var femaleMedium = document.getElementById('female_medium').value;

    var femaleLarge = document.getElementById('female_large').value;
	
	var femalextraLarge = document.getElementById('female_xtralarge').value;

    var maleSmall = document.getElementById('male_small').value;

    var maleMedium = document.getElementById('male_medium').value;

    var maleLarge = document.getElementById('male_large').value;
	
	var malextraLarge = document.getElementById('male_xtralarge').value;

    var poster = document.getElementById('poster').value;

    var deliveryArea = document.getElementById('deliveryArea').value;

	

    // Priser for t-shirts og plakater i DKK og euro

    var danishTshirtPrice = 260.00;

    var euroTshirtPrice = 35.00;
	
	var usTshirtPrice = 53.00;

    var danishPosterPrice = 100.00;

    var euroPosterPrice = 13.00;
	
	var usPosterPrice = 21.00;

	





    // Vægt for t-shirts og plakater

    var weightTshirt = 136;

    var weightPoster = 211;



    // Bestillingsstreng.

    var orders = "";



    /****************************************************************************************************************/

    /************************************** INTERNET EXPLORER BESTILLING ********************************************/

    /****************************************************************************************************************/

    

    

    if(browser == "ie.css"){



	    

	    

        if(femaleSmall > 0){

            var danishPrice = (femaleSmall*danishTshirtPrice).toFixed(2);

            var euroPrice = (femaleSmall*euroTshirtPrice).toFixed(2);
			
			var usPrice = (femaleSmall*usTshirtPrice).toFixed(2);

			orders = orders + femaleSmall + " small female:      " + danishPrice + " DKK / " + euroPrice + " € / " + usPrice + " $ \n";

        }

        if(femaleMedium > 0){

	        var danishPrice = (femaleMedium*danishTshirtPrice).toFixed(2);

            var euroPrice = (femaleMedium*euroTshirtPrice).toFixed(2);
			
			var usPrice = (femaleMedium*usTshirtPrice).toFixed(2);

            orders = orders + femaleMedium + " medium female:     " + danishPrice + " DKK / " + euroPrice + " € / " + usPrice + " $ \n";

        }

        if(femaleLarge > 0){

	        var danishPrice = (femaleLarge*danishTshirtPrice).toFixed(2);

            var euroPrice = (femaleLarge*euroTshirtPrice).toFixed(2);
			
			var usPrice = (femaleLarge*usTshirtPrice).toFixed(2);

            orders = orders + femaleLarge + " large female:      " + danishPrice + " DKK / " + euroPrice + " € / " + usPrice + " $ \n";

        }
		
		if(femalextraLarge > 0){

	        var danishPrice = (femalextraLarge*danishTshirtPrice).toFixed(2);

            var euroPrice = (femalextraLarge*euroTshirtPrice).toFixed(2);
			
			var usPrice = (femalextraLarge*usTshirtPrice).toFixed(2);

            orders = orders + femalextraLarge + " xlarge female:     " + danishPrice + " DKK / " + euroPrice + " € / " + usPrice + " $ \n";

        }

        if(maleSmall > 0){

	        var danishPrice = (maleSmall*danishTshirtPrice).toFixed(2);

            var euroPrice = (maleSmall*euroTshirtPrice).toFixed(2);
			
			var usPrice = (maleSmall*usTshirtPrice).toFixed(2);

            orders = orders + maleSmall + " small male:        " + danishPrice + " DKK / " + euroPrice + " € / " + usPrice + " $ \n";

        }

        if(maleMedium > 0){

	        var danishPrice = (maleMedium*danishTshirtPrice).toFixed(2);

            var euroPrice = (maleMedium*euroTshirtPrice).toFixed(2);
			
			var usPrice = (maleMedium*usTshirtPrice).toFixed(2);

            orders = orders + maleMedium + " medium male:       " + danishPrice + " DKK / " + euroPrice + " € / " + usPrice + " $ \n";

        }

        if(maleLarge > 0){

	        var danishPrice = (maleLarge*danishTshirtPrice).toFixed(2);

            var euroPrice = (maleLarge*euroTshirtPrice).toFixed(2);
			
			var usPrice = (maleLarge*usTshirtPrice).toFixed(2);

            orders = orders + maleLarge + " large male:        " + danishPrice + " DKK / " + euroPrice + " € / " + usPrice + " $ \n";

        }
		
		if(malextraLarge > 0){

	        var danishPrice = (malextraLarge*danishTshirtPrice).toFixed(2);

            var euroPrice = (malextraLarge*euroTshirtPrice).toFixed(2);
			
			var usPrice = (malextraLarge*usTshirtPrice).toFixed(2);

            orders = orders + malextraLarge + " xlarge male:       " + danishPrice + " DKK / " + euroPrice + " € / " + usPrice + " $ \n";

        }

        if(poster > 0){

	        var danishPrice = (poster*danishPosterPrice).toFixed(2);

            var euroPrice = (poster*euroPosterPrice).toFixed(2);
			
			var usPrice = (poster*usPosterPrice).toFixed(2);

            orders = orders + poster + " poster (60*84):   " + danishPrice  + " DKK / " + euroPrice + " € / " + usPrice + " $ \n";

        }



        var numberOfShirts = (1*femaleSmall) + (1*femaleMedium) + (1*femaleLarge) + (1*femalextraLarge) + (1*maleSmall)+ (1*maleMedium) + (1*maleLarge)+ (1*malextraLarge);



        if(numberOfShirts > 0 || poster > 0){

            var totalDanishPrice = numberOfShirts*danishTshirtPrice + poster*danishPosterPrice;

            var totalEuroPrice = numberOfShirts*euroTshirtPrice + poster*euroPosterPrice;
			
			var totalUsPrice = numberOfShirts*usTshirtPrice + poster*usPosterPrice;



            // Beregner forsendelsespris efter vægt.

            var totalWeight = numberOfShirts * weightTshirt;



            var weightPriceText = "";

            var danishWeightPrice = 0;

            var hollandWeightPrice = 0;

            var insideEuropeWeightPrice = 0;

            var outsideEuropeWeightPrice = 0;

			

			/***** VÆGT BEREGNING TIL DANMARK **************/

			if(deliveryArea == "denmark"){							

						

				// Beregner prisen for plakater.

				// Hvis der er bestilt 0 plakater

				var euroPosterWeightPrice = 0.00; // 0 €.

				var danishPosterWeightPrice = 0.00; // 0 DKK.
				
				var usPosterWeightPrice = 0.00; // 0 $.

			

				// hvis der er bestilt flere end 0 plakater.

				if(poster > 0){

					euroPosterWeightPrice = 5.25; // 5.25 €.

					danishPosterWeightPrice = 39.00; // 39 DKK.
					
					usPosterWeightPrice = 7.88; // 5.25 $.

				}

			

				// Beregner v¾gten af alle bestilte t-shirts tilsammen. 

				var totalWeightTshirts = numberOfShirts * weightTshirt;

							

		

				if(totalWeightTshirts <= 0){

					euroTotalWeightPrice = euroPosterWeightPrice;

					danishTotalWeightPrice = danishPosterWeightPrice;
					
					usTotalWeightPrice = usPosterWeightPrice;

					weightPriceText = danishTotalWeightPrice.toFixed(2) + " DKK / " + euroTotalWeightPrice.toFixed(2) + " € / " + usTotalWeightPrice.toFixed(2) + " $";			

				}

				else if(totalWeightTshirts > 0 && totalWeightTshirts <= 250){                

                	euroTshirtWeightPrice = 3.00;
					
					usTshirtWeightPrice = 4.54;

                	danishTshirtWeightPrice = 22.50;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;

					danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;	
					
					usTotalWeightPrice = usTshirtWeightPrice + usPosterWeightPrice;

					weightPriceText = danishTotalWeightPrice.toFixed(2) + " DKK / " + euroTotalWeightPrice.toFixed(2) + " € / "+ euroTotalWeightPrice.toFixed(2) + " $";					

            	}

            	else if(totalWeightTshirts > 250 && totalWeight <= 500){

                	euroTshirtWeightPrice = 6.00 ;

                	danishTshirtWeightPrice = 45.00;
					
					usTshirtWeightPrice = 9.09;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;

					danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;
					
					usTotalWeightPrice = usTshirtWeightPrice + usPosterWeightPrice;

					weightPriceText = danishTotalWeightPrice.toFixed(2) + " DKK / " + euroTotalWeightPrice.toFixed(2) + " € / "+ usTotalWeightPrice.toFixed(2) + " $";					

            	}

            	else {

                	euroTshirtWeightPrice = 9.00 ;

                	danishTshirtWeightPrice = 67.50;
					
					danishTshirtWeightPrice = 13.63;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;

					danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;
					
					usTotalWeightPrice = usTshirtWeightPrice + usPosterWeightPrice;

					weightPriceText = danishTotalWeightPrice.toFixed(2) + " DKK / " + euroTotalWeightPrice.toFixed(2) + " € / "+ usTotalWeightPrice.toFixed(2) +" $";					

            	}

            	

            	

				orders = orders + "\nDelivery:           " + weightPriceText;

            	

            	totalDanishPrice = totalDanishPrice + danishTotalWeightPrice;

            	totalDanishPrice = totalDanishPrice.toFixed(2);

            	totalEuroPrice = totalEuroPrice + euroTotalWeightPrice;

            	totalEuroPrice = totalEuroPrice.toFixed(2);
				
				totalUsPrice = totalUsPrice + usTotalWeightPrice;

            	totalUsPrice = totalUsPrice.toFixed(2);

            	

            	danishTotalWeightPrice = danishTotalWeightPrice.toFixed(2);

            	euroTotalWeightPrice = euroTotalWeightPrice.toFixed(2);
				
				usTotalWeightPrice = usTotalWeightPrice.toFixed(2);

            	

            	document.getElementById('danishWeightPrice').value = danishTotalWeightPrice;

            	

            	orders = orders + "\nTOTAL PRICE:        " + totalDanishPrice + " DKK / " + totalEuroPrice + " €";

            	            	            	

			} 

			

			/***** VÆGT BEREGNING TIL Holland **************/			

            else if(deliveryArea == "holland"){			

				

	            					

				// Beregner prisen for plakater.

				// Hvis der er bestilt 0 plakater

				var euroPosterWeightPrice = 0; // 0 €.

				//var danishPosterWeightPrice = 0; // 0 DKK.

			

				// hvis der er bestilt flere end 0 plakater.

				if(poster > 0){

					euroPosterWeightPrice = 6.20; // 6.20 €.

					//danishPosterWeightPrice = 39; // 39 DKK.

				}

			

				// Beregner v¾gten af alle bestilte t-shirts tilsammen. 

				var totalWeightTshirts = numberOfShirts * weightTshirt;

			

				if(totalWeightTshirts <= 0){

					euroTotalWeightPrice = euroPosterWeightPrice;

					danishTotalWeightPrice = danishPosterWeightPrice;

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " €";

				}

				else if(totalWeightTshirts > 0 && totalWeightTshirts <= 250){                

                	euroTshirtWeightPrice = 1.76 ;

                	//danishTshirtWeightPrice = 22.50;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;

			

                	//danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					//weightPriceText = danishTotalWeightPrice + " DKK / " + euroTotalWeightPrice + " €";

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " €";

            	}

            	else if(totalWeightTshirts > 250 && totalWeight <= 500){

                	euroTshirtWeightPrice = 2.20 ;

                	//danishTshirtWeightPrice = 45.00;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;

			

                	//danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					//weightPriceText = danishTotalWeightPrice + " DKK / " + euroTotalWeightPrice + " €";

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " €";

            	}

            	else {

                	euroTshirtWeightPrice = 2.64;

                	//danishTshirtWeightPrice = 67.50;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;

			

                	//danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					//weightPriceText = danishTotalWeightPrice + " DKK / " + euroTotalWeightPrice + " €;

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " €";

            	}



				orders = orders + "\nDelivery:           " + weightPriceText;

            	

            	//totalDanishPrice = totalDanishPrice + danishTotalWeightPrice;

            	//totalDanishPrice = totalDanishPrice.toFixed(2);

            	totalEuroPrice = totalEuroPrice + euroTotalWeightPrice;

            	totalEuroPrice = totalEuroPrice.toFixed(2);

            	

            	//danishTotalWeightPrice = danishTotalWeightPrice.toFixed(2);

            	euroTotalWeightPrice = euroTotalWeightPrice.toFixed(2);

            	

            	//document.getElementById('danishWeightPrice').value = danishTotalWeightPrice;

            	document.getElementById('hollandWeightPrice').value = euroTotalWeightPrice;

            	orders = orders + "\nTOTAL PRICE:        " + totalEuroPrice + " €";



			}

			/***** V®GT BEREGNING TIL ANDRE LANDE INDENFOR EUROPA **************/			

            else if(deliveryArea == "insideEurope"){			

									

				// Beregner prisen for plakater.

				// Hvis der er bestilt 0 plakater

				var euroPosterWeightPrice = 0; // 0 €.
				
				var usPosterWeightPrice = 0; // 0 $.

				//var danishPosterWeightPrice = 0; // 0 DKK.

			

				// hvis der er bestilt flere end 0 plakater.

				if(poster > 0){

					euroPosterWeightPrice = 5.25; // 6.20 €.
					
					usPosterWeightPrice = 7.88; // 7.88 $.

					//danishPosterWeightPrice = 39; // 39 DKK.

				}

			

				// Beregner v¾gten af alle bestilte t-shirts tilsammen. 

				var totalWeightTshirts = numberOfShirts * weightTshirt;



				if(totalWeightTshirts <= 0){

					euroTotalWeightPrice = euroPosterWeightPrice;

					danishTotalWeightPrice = danishPosterWeightPrice;
					
					usTotalWeightPrice = usPosterWeightPrice;

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " €";

				}	

				else if(totalWeightTshirts > 0 && totalWeightTshirts <= 250){                

                	euroTshirtWeightPrice = 3.00 ;
					
					usTshirtWeightPrice = 4.54 ;

                	//danishTshirtWeightPrice = 22.50;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;
					
					usTotalWeightPrice = usTshirtWeightPrice + usPosterWeightPrice;

			

                	//danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					//weightPriceText = danishTotalWeightPrice + " DKK / " + euroTotalWeightPrice + " €";

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " € / "+ usTotalWeightPrice.toFixed(2) +" $";

            	}

            	else if(totalWeightTshirts > 250 && totalWeight <= 500){

                	euroTshirtWeightPrice = 6.00 ;
					
					usTshirtWeightPrice = 9.09 ;

                	//danishTshirtWeightPrice = 45.00;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;
					
					usTotalWeightPrice = usTshirtWeightPrice + usPosterWeightPrice;

			

                	//danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					//weightPriceText = danishTotalWeightPrice + " DKK / " + euroTotalWeightPrice + " €";

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " € / "+ usTotalWeightPrice.toFixed(2) + " $";

            	}

            	else {

                	euroTshirtWeightPrice = 9.00;
					
					usTshirtWeightPrice = 13.63;

                	//danishTshirtWeightPrice = 67.50;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;
					
					usTotalWeightPrice = usTshirtWeightPrice + usPosterWeightPrice;

			

                	//danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					//weightPriceText = danishTotalWeightPrice + " DKK / " + euroTotalWeightPrice + " €";

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " € / "+ usTotalWeightPrice.toFixed(2) + " $";

            	}

			

			

				orders = orders + "\nDelivery:           " + weightPriceText;

            	

            	//totalDanishPrice = totalDanishPrice + danishTotalWeightPrice;

            	//totalDanishPrice = totalDanishPrice.toFixed(2);

            	totalEuroPrice = totalEuroPrice + euroTotalWeightPrice;

            	totalEuroPrice = totalEuroPrice.toFixed(2);
				
				totalUsPrice = totalUsPrice + usTotalWeightPrice;

            	totalUsPrice = totalUsPrice.toFixed(2);

            	

            	//danishTotalWeightPrice = danishTotalWeightPrice.toFixed(2);

            	euroTotalWeightPrice = euroTotalWeightPrice.toFixed(2);
				
				usTotalWeightPrice = usTotalWeightPrice.toFixed(2);

            	

            	//document.getElementById('danishWeightPrice').value = danishTotalWeightPrice;

            	document.getElementById('insideEuropeWeightPrice').value = euroTotalWeightPrice;

            	orders = orders + "\nTOTAL PRICE:        " + totalEuroPrice + " € / "+ totalUsPrice + " $";



			}

			/***** V®GT BEREGNING TIL LANDE UDENFOR EUROPA **************/			

            else if(deliveryArea == "outsideEurope"){			

									

				// Beregner prisen for plakater.

				// Hvis der er bestilt 0 plakater

				var euroPosterWeightPrice = 0; // 0 €.
				
				var usPosterWeightPrice = 0; // 0 €.

				//var danishPosterWeightPrice = 0; // 0 DKK.

			

				// hvis der er bestilt flere end 0 plakater.

				if(poster > 0){

					euroPosterWeightPrice = 9.00; // 6.20 €.
					
					usPosterWeightPrice = 7.88; // 6.20 USD.

					//danishPosterWeightPrice = 39; // 39 DKK.

				}

			

				// Beregner v¾gten af alle bestilte t-shirts tilsammen. 

				var totalWeightTshirts = numberOfShirts * weightTshirt;

		

				if(totalWeightTshirts <= 0){

					euroTotalWeightPrice = euroPosterWeightPrice;

					danishTotalWeightPrice = danishPosterWeightPrice;
					
					usTotalWeightPrice = usPosterWeightPrice;

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " € / "+ usTotalWeightPrice.toFixed(2) +" $";

				}	

				else if(totalWeightTshirts > 0 && totalWeightTshirts <= 250){                

                	euroTshirtWeightPrice = 5.52 ;
					
					usTshirtWeightPrice = 4.54 ;

                	//danishTshirtWeightPrice = 22.50;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;
					
					usTotalWeightPrice = usTshirtWeightPrice + usPosterWeightPrice;

			

                	//danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					//weightPriceText = danishTotalWeightPrice + " DKK / " + euroTotalWeightPrice + " €";

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " € / "+ usTotalWeightPrice.toFixed(2) +" $";

            	}

            	else if(totalWeightTshirts > 250 && totalWeight <= 500){

                	euroTshirtWeightPrice = 10.12 ;
					
					usTshirtWeightPrice = 9.09 ;

                	//danishTshirtWeightPrice = 45.00;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;
					
					usTotalWeightPrice = usTshirtWeightPrice + usPosterWeightPrice;

			

                	//danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					//weightPriceText = danishTotalWeightPrice + " DKK / " + euroTotalWeightPrice + " €";

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " € / "+ euroTotalWeightPrice.toFixed(2) +" $";

            	}

            	else {

                	euroTshirtWeightPrice = 19.32;
					
					usTshirtWeightPrice = 13.63;

                	//danishTshirtWeightPrice = 67.50;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;
					
					usTotalWeightPrice = usTshirtWeightPrice + usPosterWeightPrice;

			

                	//danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					//weightPriceText = danishTotalWeightPrice + " DKK / " + euroTotalWeightPrice + " €";

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " € / "+ usTotalWeightPrice.toFixed(2) +" $";

            	}



		

				orders = orders + "\nDelivery:           " + weightPriceText;

            	

				//totalDanishPrice = totalDanishPrice + danishTotalWeightPrice;

            	//totalDanishPrice = totalDanishPrice.toFixed(2);

            	totalEuroPrice = totalEuroPrice + euroTotalWeightPrice;

            	totalEuroPrice = totalEuroPrice.toFixed(2);
				
				totalUsPrice = totalUsPrice + usTotalWeightPrice;

            	totalUsPrice = totalUsPrice.toFixed(2);

            	

            	//danishTotalWeightPrice = danishTotalWeightPrice.toFixed(2);

            	euroTotalWeightPrice = euroTotalWeightPrice.toFixed(2);
				
				usTotalWeightPrice = usTotalWeightPrice.toFixed(2);

            	

            	//document.getElementById('danishWeightPrice').value = danishTotalWeightPrice;

            	document.getElementById('outsideEuropeWeightPrice').value = euroTotalWeightPrice;

            	orders = orders + "\nTOTAL PRICE:        " + totalEuroPrice + " € / "+ totalEuroPrice +" $";

		

			}



		}



	}

	

	/****************************************************************************************************************/

    /******************************************* SAFARI BESTILLING **************************************************/

    /****************************************************************************************************************/

	

	else{

	    

	    

        if(femaleSmall > 0){

            var danishPrice = (femaleSmall*danishTshirtPrice).toFixed(2);

            var euroPrice = (femaleSmall*euroTshirtPrice).toFixed(2);

			orders = orders + femaleSmall + " small female:           " + danishPrice + " DKK / " + euroPrice + " € \n";

        } 

        if(femaleMedium > 0){

	        var danishPrice = (femaleMedium*danishTshirtPrice).toFixed(2);

            var euroPrice = (femaleMedium*euroTshirtPrice).toFixed(2);

            orders = orders + femaleMedium + " medium female:      " + danishPrice + " DKK / " + euroPrice + " € \n";

        }

        if(femaleLarge > 0){

	        var danishPrice = (femaleLarge*danishTshirtPrice).toFixed(2);

            var euroPrice = (femaleLarge*euroTshirtPrice).toFixed(2);

            orders = orders + femaleLarge + " large female:           " + danishPrice + " DKK / " + euroPrice + " € \n";

        }

        if(maleSmall > 0){

	        var danishPrice = (maleSmall*danishTshirtPrice).toFixed(2);

            var euroPrice = (maleSmall*euroTshirtPrice).toFixed(2);

            orders = orders + maleSmall + " small male:              " + danishPrice + " DKK / " + euroPrice + " € \n";

        }

        if(maleMedium > 0){

	        var danishPrice = (maleMedium*danishTshirtPrice).toFixed(2);

            var euroPrice = (maleMedium*euroTshirtPrice).toFixed(2);

            orders = orders + maleMedium + " medium male:         " + danishPrice + " DKK / " + euroPrice + " € \n";

        }

        if(maleLarge > 0){

	        var danishPrice = (maleLarge*danishTshirtPrice).toFixed(2);

            var euroPrice = (maleLarge*euroTshirtPrice).toFixed(2);

            orders = orders + malextraLarge + " xlarge male:               " + danishPrice + " DKK / " + euroPrice + " € \n";

        }

        if(malextraLarge > 0){

	        var danishPrice = (maleLarge*danishTshirtPrice).toFixed(2);

            var euroPrice = (maleLarge*euroTshirtPrice).toFixed(2);

            orders = orders + maleLarge + " large male:               " + danishPrice + " DKK / " + euroPrice + " € \n";

        }

        if(poster > 0){

	        var danishPrice = (poster*danishPosterPrice).toFixed(2);

            var euroPrice = (poster*euroPosterPrice).toFixed(2);

            orders = orders + poster + " poster (60*84):       " + danishPrice  + " DKK / " + euroPrice + " € \n";

        }



        var numberOfShirts = (1*femaleSmall) + (1*femaleMedium) + (1*femaleLarge) + (1*maleSmall)+ (1*maleMedium) + (1*maleLarge);



        if(numberOfShirts > 0 || poster > 0){

            var totalDanishPrice = numberOfShirts*danishTshirtPrice + poster*danishPosterPrice;

            var totalEuroPrice = numberOfShirts*euroTshirtPrice + poster*euroPosterPrice;



            // Beregner forsendelsespris efter vægt.

            var totalWeight = numberOfShirts * weightTshirt;



            var weightPriceText = "";

            var danishWeightPrice = 0;

            var hollandWeightPrice = 0;

            var insideEuropeWeightPrice = 0;

            var outsideEuropeWeightPrice = 0;

			

			/***** VÆGT BEREGNING TIL DANMARK **************/

			if(deliveryArea == "denmark"){							

						

				// Beregner prisen for plakater.

				// Hvis der er bestilt 0 plakater

				var euroPosterWeightPrice = 0.00; // 0 €.

				var danishPosterWeightPrice = 0.00; // 0 DKK.

			

				// hvis der er bestilt flere end 0 plakater.

				if(poster > 0){

					euroPosterWeightPrice = 5.25; // 5.25 €.

					danishPosterWeightPrice = 39.00; // 39 DKK.

				}

			

				// Beregner v¾gten af alle bestilte t-shirts tilsammen. 

				var totalWeightTshirts = numberOfShirts * weightTshirt;

							

		

				if(totalWeightTshirts <= 0){

					euroTotalWeightPrice = euroPosterWeightPrice;

					danishTotalWeightPrice = danishPosterWeightPrice;

					weightPriceText = danishTotalWeightPrice.toFixed(2) + " DKK / " + euroTotalWeightPrice.toFixed(2) + " €";			

				}

				else if(totalWeightTshirts > 0 && totalWeightTshirts <= 250){                

                	euroTshirtWeightPrice = 3.00;

                	danishTshirtWeightPrice = 22.50;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;

					danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;									

					weightPriceText = danishTotalWeightPrice.toFixed(2) + " DKK / " + euroTotalWeightPrice.toFixed(2) + " €";					

            	}

            	else if(totalWeightTshirts > 250 && totalWeight <= 500){

                	euroTshirtWeightPrice = 6.00 ;

                	danishTshirtWeightPrice = 45.00;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;

					danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					weightPriceText = danishTotalWeightPrice.toFixed(2) + " DKK / " + euroTotalWeightPrice.toFixed(2) + " €";					

            	}

            	else {

                	euroTshirtWeightPrice = 9.00 ;

                	danishTshirtWeightPrice = 67.50;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;

					danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					weightPriceText = danishTotalWeightPrice.toFixed(2) + " DKK / " + euroTotalWeightPrice.toFixed(2) + " €";					

            	}

            	

            	

				orders = orders + "\nDelivery:                      " + weightPriceText;

            	

            	totalDanishPrice = totalDanishPrice + danishTotalWeightPrice;

            	totalDanishPrice = totalDanishPrice.toFixed(2);

            	totalEuroPrice = totalEuroPrice + euroTotalWeightPrice;

            	totalEuroPrice = totalEuroPrice.toFixed(2);

            	

            	danishTotalWeightPrice = danishTotalWeightPrice.toFixed(2);

            	euroTotalWeightPrice = euroTotalWeightPrice.toFixed(2);

            	

            	document.getElementById('danishWeightPrice').value = danishTotalWeightPrice;

            	

            	orders = orders + "\nTOTAL PRICE:           " + totalDanishPrice + " DKK / " + totalEuroPrice + " €";

            	            	            	

			} 

			

			/***** VÆGT BEREGNING TIL Holland **************/			

            else if(deliveryArea == "holland"){			

				

					

				// Beregner prisen for plakater.

				// Hvis der er bestilt 0 plakater

				var euroPosterWeightPrice = 0; // 0 €.

				//var danishPosterWeightPrice = 0; // 0 DKK.

			

				// hvis der er bestilt flere end 0 plakater.

				if(poster > 0){

					euroPosterWeightPrice = 6.20; // 6.20 €.

					//danishPosterWeightPrice = 39; // 39 DKK.

				}

			

				// Beregner v¾gten af alle bestilte t-shirts tilsammen. 

				var totalWeightTshirts = numberOfShirts * weightTshirt;

			

				if(totalWeightTshirts <= 0){

					euroTotalWeightPrice = euroPosterWeightPrice;

					danishTotalWeightPrice = danishPosterWeightPrice;

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " €";

				}

				else if(totalWeightTshirts > 0 && totalWeightTshirts <= 250){                

                	euroTshirtWeightPrice = 1.76 ;

                	//danishTshirtWeightPrice = 22.50;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;

			

                	//danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					//weightPriceText = danishTotalWeightPrice + " DKK / " + euroTotalWeightPrice + " €";

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " €";

            	}

            	else if(totalWeightTshirts > 250 && totalWeight <= 500){

                	euroTshirtWeightPrice = 2.20 ;

                	//danishTshirtWeightPrice = 45.00;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;

			

                	//danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					//weightPriceText = danishTotalWeightPrice + " DKK / " + euroTotalWeightPrice + " €";

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " €";

            	}

            	else {

                	euroTshirtWeightPrice = 2.64;

                	//danishTshirtWeightPrice = 67.50;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;

			

                	//danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					//weightPriceText = danishTotalWeightPrice + " DKK / " + euroTotalWeightPrice + " €;

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " €";

            	}



				orders = orders + "\nDelivery:                                                  " + weightPriceText;

            	

            	//totalDanishPrice = totalDanishPrice + danishTotalWeightPrice;

            	//totalDanishPrice = totalDanishPrice.toFixed(2);

            	totalEuroPrice = totalEuroPrice + euroTotalWeightPrice;

            	totalEuroPrice = totalEuroPrice.toFixed(2);

            	

            	//danishTotalWeightPrice = danishTotalWeightPrice.toFixed(2);

            	euroTotalWeightPrice = euroTotalWeightPrice.toFixed(2);

            	

            	//document.getElementById('danishWeightPrice').value = danishTotalWeightPrice;

            	document.getElementById('hollandWeightPrice').value = euroTotalWeightPrice;

            	orders = orders + "\nTOTAL PRICE:                                     " + totalEuroPrice + " €";



			}

			/***** V®GT BEREGNING TIL ANDRE LANDE INDENFOR EUROPA **************/			

            else if(deliveryArea == "insideEurope"){			

									

				// Beregner prisen for plakater.

				// Hvis der er bestilt 0 plakater

				var euroPosterWeightPrice = 0; // 0 €.

				//var danishPosterWeightPrice = 0; // 0 DKK.

			

				// hvis der er bestilt flere end 0 plakater.

				if(poster > 0){

					euroPosterWeightPrice = 5.25; // 6.20 €.

					//danishPosterWeightPrice = 39; // 39 DKK.

				}

			

				// Beregner v¾gten af alle bestilte t-shirts tilsammen. 

				var totalWeightTshirts = numberOfShirts * weightTshirt;



				if(totalWeightTshirts <= 0){

					euroTotalWeightPrice = euroPosterWeightPrice;

					danishTotalWeightPrice = danishPosterWeightPrice;

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " €";

				}	

				else if(totalWeightTshirts > 0 && totalWeightTshirts <= 250){                

                	euroTshirtWeightPrice = 3.00 ;

                	//danishTshirtWeightPrice = 22.50;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;

			

                	//danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					//weightPriceText = danishTotalWeightPrice + " DKK / " + euroTotalWeightPrice + " €";

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " €";

            	}

            	else if(totalWeightTshirts > 250 && totalWeight <= 500){

                	euroTshirtWeightPrice = 6.00 ;

                	//danishTshirtWeightPrice = 45.00;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;

			

                	//danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					//weightPriceText = danishTotalWeightPrice + " DKK / " + euroTotalWeightPrice + " €";

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " €";

            	}

            	else {

                	euroTshirtWeightPrice = 9.00;

                	//danishTshirtWeightPrice = 67.50;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;

			

                	//danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					//weightPriceText = danishTotalWeightPrice + " DKK / " + euroTotalWeightPrice + " €";

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " €";

            	}

			

			

				orders = orders + "\nDelivery:                                                " + weightPriceText;

            	

            	//totalDanishPrice = totalDanishPrice + danishTotalWeightPrice;

            	//totalDanishPrice = totalDanishPrice.toFixed(2);

            	totalEuroPrice = totalEuroPrice + euroTotalWeightPrice;

            	totalEuroPrice = totalEuroPrice.toFixed(2);

            	

            	//danishTotalWeightPrice = danishTotalWeightPrice.toFixed(2);

            	euroTotalWeightPrice = euroTotalWeightPrice.toFixed(2);

            	

            	//document.getElementById('danishWeightPrice').value = danishTotalWeightPrice;

            	document.getElementById('insideEuropeWeightPrice').value = euroTotalWeightPrice;

            	orders = orders + "\nTOTAL PRICE:                                     " + totalEuroPrice + " €";



			}

			/***** V®GT BEREGNING TIL LANDE UDENFOR EUROPA **************/			

            else if(deliveryArea == "outsideEurope"){			

									

				// Beregner prisen for plakater.

				// Hvis der er bestilt 0 plakater

				var euroPosterWeightPrice = 0; // 0 €.

				//var danishPosterWeightPrice = 0; // 0 DKK.

			

				// hvis der er bestilt flere end 0 plakater.

				if(poster > 0){

					euroPosterWeightPrice = 9.00; // 6.20 €.

					//danishPosterWeightPrice = 39; // 39 DKK.

				}

			

				// Beregner v¾gten af alle bestilte t-shirts tilsammen. 

				var totalWeightTshirts = numberOfShirts * weightTshirt;

		

				if(totalWeightTshirts <= 0){

					euroTotalWeightPrice = euroPosterWeightPrice;

					danishTotalWeightPrice = danishPosterWeightPrice;

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " €";

				}	

				else if(totalWeightTshirts > 0 && totalWeightTshirts <= 250){                

                	euroTshirtWeightPrice = 5.52 ;

                	//danishTshirtWeightPrice = 22.50;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;

			

                	//danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					//weightPriceText = danishTotalWeightPrice + " DKK / " + euroTotalWeightPrice + " €";

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " €";

            	}

            	else if(totalWeightTshirts > 250 && totalWeight <= 500){

                	euroTshirtWeightPrice = 10.12 ;

                	//danishTshirtWeightPrice = 45.00;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;

			

                	//danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					//weightPriceText = danishTotalWeightPrice + " DKK / " + euroTotalWeightPrice + " €";

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " €";

            	}

            	else {

                	euroTshirtWeightPrice = 19.32;

                	//danishTshirtWeightPrice = 67.50;

                	euroTotalWeightPrice = euroTshirtWeightPrice + euroPosterWeightPrice;

			

                	//danishTotalWeightPrice = danishTshirtWeightPrice + danishPosterWeightPrice;

					//weightPriceText = danishTotalWeightPrice + " DKK / " + euroTotalWeightPrice + " €";

					weightPriceText = euroTotalWeightPrice.toFixed(2) + " €";

            	}



		

				orders = orders + "\nDelivery:                                                " + weightPriceText;

            	

				//totalDanishPrice = totalDanishPrice + danishTotalWeightPrice;

            	//totalDanishPrice = totalDanishPrice.toFixed(2);

            	totalEuroPrice = totalEuroPrice + euroTotalWeightPrice;

            	totalEuroPrice = totalEuroPrice.toFixed(2);

            	

            	//danishTotalWeightPrice = danishTotalWeightPrice.toFixed(2);

            	euroTotalWeightPrice = euroTotalWeightPrice.toFixed(2);

            	

            	//document.getElementById('danishWeightPrice').value = danishTotalWeightPrice;

            	document.getElementById('outsideEuropeWeightPrice').value = euroTotalWeightPrice;

            	orders = orders + "\nTOTAL PRICE:                                     " + totalEuroPrice + " €";

		

			}



		}

    }



    document.getElementById('total_order').value = orders;



}





function checkCustomerInformation() {

        var sti = document.forms[0];

        var strMangler;



        strMangler = "Please fill out the ";

		

		if (sti.email.value=='') {

        	strMangler +=  "email field\n"

        };

				

		

        if (strMangler > "Please fill out the"){

            alert (strMangler);

            return false;

        } 

		else{

			return true;		

        };

}





function loadShop(){

	parent.menu.location="menu_shop.php";

	parent.page.location="shop.php";

}

