function dropdown(){
	
//goals scored drop down menu
goalsDropDown = document.ultimateteam.goalsscored.options[document.ultimateteam.goalsscored.selectedIndex].value;
if (goalsDropDown > 5){
goalsDropDown = 5;	
}
var goalsPoints = 40 * goalsDropDown;

//shots on target drop down menu
shotsDropDown = document.ultimateteam.shotsontarget.options[document.ultimateteam.shotsontarget.selectedIndex].value;
if (shotsDropDown > 15){
shotsDropDown = 15;	
}
var shotsPoints = 5 * shotsDropDown;

//Tackles
tacklesDropDown = document.ultimateteam.tackles.options[document.ultimateteam.tackles.selectedIndex].value;
if (tacklesDropDown > 20){
tacklesDropDown = 20;	
}
var tacklesPoints = tacklesDropDown;

//Corners
cornersDropDown = document.ultimateteam.corners.options[document.ultimateteam.corners.selectedIndex].value;
if (cornersDropDown > 10){
cornersDropDown = 10;	
}
var cornersPoints = 5 * cornersDropDown;

//Pass completetion
passesDropDown = document.ultimateteam.passes.options[document.ultimateteam.passes.selectedIndex].value;
var passesPoints = passesDropDown;

//Possesion
posDropDown = document.ultimateteam.pos.options[document.ultimateteam.pos.selectedIndex].value;
var posPoints = posDropDown;


//goals conceeded drop down menu
goalscDropDown = document.ultimateteam.goalsc.options[document.ultimateteam.goalsc.selectedIndex].value;
if (goalscDropDown > 5){
goalscDropDown = 5;	
}
var goalscPoints = -20 * goalscDropDown;
if (goalscDropDown == 0){
	goalscPoints += 25;	
}

//fouls drop down menu
foulsDropDown = document.ultimateteam.fouls.options[document.ultimateteam.fouls.selectedIndex].value;
if (foulsDropDown > 20){
foulsDropDown = 20;	
}
var foulsPoints = -10 * foulsDropDown;

//yellow cards drop down menu
yellowsDropDown = document.ultimateteam.yellows.options[document.ultimateteam.yellows.selectedIndex].value;
if (yellowsDropDown > 15){
yellowsDropDown = 15;	
}


var yellowsPoints = -5 * yellowsDropDown;

//red cards drop down menu
redsDropDown = document.ultimateteam.reds.options[document.ultimateteam.reds.selectedIndex].value;
var redsPoints = -10 * redsDropDown;

//offsides drop down menu
offsidesDropDown = document.ultimateteam.offsides.options[document.ultimateteam.offsides.selectedIndex].value;
if (offsidesDropDown > 15){
offsidesDropDown = 15;	
}
var offsidesPoints = -1 * offsidesDropDown;


//man of the match radio button
var val = 0;

for( i = 0; i < document.ultimateteam.mygroup.length; i++ )
{
if( document.ultimateteam.mygroup[i].checked == true )
val = document.ultimateteam.mygroup[i].value;
}
if (val == 1){
manOfTheMatchPoints = 10;
}else {
manOfTheMatchPoints = 0;	
}
homeOrAwayDropDown = document.ultimateteam.homeoraway.options[document.ultimateteam.homeoraway.selectedIndex].value;
if (homeOrAwayDropDown == 0){
    multiplyer = 1.5;
} else if (homeOrAwayDropDown == 2){
	multiplyer = 1.02;
}else if (homeOrAwayDropDown == 1){
	multiplyer = 1;		   
}
yourStarsDropDown = document.ultimateteam.yourstars.options[document.ultimateteam.yourstars.selectedIndex].value;
awayStarsDropDown = document.ultimateteam.awaystars.options[document.ultimateteam.awaystars.selectedIndex].value;
starRange = awayStarsDropDown - yourStarsDropDown;
starRangeMultiplyer = 1 + (0.04 * starRange)

difficultyDropDown = document.ultimateteam.difficulty.options[document.ultimateteam.difficulty.selectedIndex].value;
difficultyMultiplyer = 0.45 * difficultyDropDown;
 
myIntGoalsPoints = parseInt(goalsPoints);
myIntShotsPoints = parseInt(shotsPoints);
myIntTacklesPoints = parseInt(tacklesPoints);
myIntCornersPoints = parseInt(cornersPoints);
myIntPassesPoints = parseInt(passesPoints);
myIntPosPoints = parseInt(posPoints);
myIntGoalscPoints = parseInt(goalscPoints);
myIntFoulsPoints = parseInt(foulsPoints);
myIntYellowsPoints = parseInt(yellowsPoints);
myIntRedsPoints = parseInt(redsPoints);
myIntOffsidesPoints = parseInt(offsidesPoints);
myIntManOfTheMatchPoints = parseInt(manOfTheMatchPoints);

plusPoints =  myIntGoalsPoints + myIntShotsPoints + myIntTacklesPoints + myIntCornersPoints + myIntPassesPoints + myIntPosPoints + myIntGoalscPoints + myIntFoulsPoints + myIntYellowsPoints + myIntRedsPoints + myIntOffsidesPoints + myIntManOfTheMatchPoints;


if (homeOrAwayDropDown == 0 || difficultyDropDown == 0|| yourStarsDropDown == 0|| awayStarsDropDown == 0 ){
	overallMultiplyer = 1.5;
}else {
	overallMultiplyer = difficultyMultiplyer * starRangeMultiplyer * multiplyer;
}

totalCoins = (plusPoints * overallMultiplyer) + 200;
if (totalCoins < 200){
	totalCoins = 200;
}
    var curtextval = document.getElementById("coins");
    curtextval.innerHTML = (totalCoins + " Coins")
}

