function nextInstruction(){
    /* variables for holding owner's values */
    HSamount = "620";
    MSamount = "470";
    LSamount = "350";
    /* Discounts offered - cost as a decimal fraction after percentage discount */
    EBOamount = "0.9";
    OCDamount = "0.8";
    /* variables for holding user selected values */
    seasonInfo = null;
    stayTypeInfo = null;
    guestInfo = null;
    offerInfo = null;
    /* Phrases for use in user directions */
    intro = "Your stay will be a ";
    intro1 = " + ";
    intro2 = "Your stay will cost ";
    offer = "Special offer discount";
    endingword = " stay";
    punctuation = ". ";
    dots = "...";
    space = " ";
    /* Sentences as prompts to user */
    startUpInfo = "Select the items in order starting from \'Season of your stay\'. Finally click on \'Holiday Cost\' and the cost will appear in this box. ";
    secondStage = "Now select type/duration of stay";
    thirdStage = "Now select Guests who will stay";
    fourthStage = "Now carry on to completion";
}

nextInstruction();

/* Writing selected (from drop down options) values to the variables and notifying user in the prompt box above the form. For special offers change input for desired offer season to block - for both nodeObj2 and nodeObj3 - and other seasons to none. */

function writeInfo(obj) {
    var arrayNumber = obj.selectedIndex; // necessary to obtain value of drop down selection
    var input = obj[arrayNumber].value; // necessary to obtain value of drop down selection
    var msg1 = intro + input + endingword + space;
    var msg2 = intro1 + input + space;
    var nodeObj1 = document.getElementById('msgSpan');
    var nodeObj2 = document.getElementById('earlybird');
    var nodeObj3 = document.getElementById('EB');
    var nodeObj4 = document.getElementById('reset');
    var nodeObj5 = document.getElementById('dotSpan');
    if (input == 'Low season' || input == 'Mid season' || input == 'High season') {
	nodeObj1.firstChild.nodeValue = msg1;
	seasonInfo = input;
    }
    if (input == '7 night stay' || input == '2 night weekend stay' || input == '3 night stay during the week' || input == '3 night stay over the weekend' && seasonInfo.length > 0 ) {
        nodeObj1.firstChild.nodeValue += msg2;
	stayTypeInfo = input;
    }
    if (input == 'More than one couple' || input == 'One couple only' || input == 'Other' && seasonInfo.length > 0 && stayTypeInfo.length > 0) {
        nodeObj1.firstChild.nodeValue += msg2;
	guestInfo = input;
    }
    if (input == 'Mid season') {
	nodeObj2.style.display = 'none';
	nodeObj3.style.display = 'none';
	
    }
    if (input == 'Low season' || input == 'High season') {
	nodeObj2.style.display = 'block';
	nodeObj3.style.display = 'block';
    }
}

/* Writing the radio botton value to the variable and notifying user in the prompt box above the form */

function writeChecked(obj){
    var input = obj.value;
    var msg3 = intro1 + offer + space;
    var nodeObj1 = document.getElementById('msgSpan');
    if (input == 'on') {
        nodeObj1.firstChild.nodeValue += msg3;
	offerInfo = input;
    }
}

/* Changing the look of the prompt box as user makes choices */

function writeInstruct(obj) {
    var arrayNumber = obj.selectedIndex;
    var input = obj[arrayNumber].value;
    var nodeObj = document.getElementById('dotSpan');
    var nodeObj6 = document.getElementById('promptDiv');
    if (input == 'Low season' || input == 'Mid season' || input == 'High season') {
	nodeObj.firstChild.nodeValue = dots + secondStage + punctuation;
	nodeObj6.style.backgroundColor = '#d5f6d5';
	nodeObj6.style.fontWeight = '700';
    }
    if (input == '7 night stay' || input == '2 night weekend stay' || input == '3 nights during the week' || input == '3 nights over the weekend') {
	nodeObj.firstChild.nodeValue = dots + thirdStage + punctuation;
	nodeObj6.style.backgroundColor = '#bfe6bf';
    }
    if (input == 'More than one couple' || input == 'One couple only' || input == 'Other') {
	nodeObj.firstChild.nodeValue = space;
	nodeObj6.style.backgroundColor = '#afdeaf';
    }
}

/* Restoring start values when Reset is clicked */

function restoreStart() {
    var nodeObj1 = document.getElementById('msgSpan');
    var nodeObj2 = document.getElementById('earlybird');
    var nodeObj3 = document.getElementById('EB');
    var nodeObj4 = document.getElementById('reset');
    var nodeObj5 = document.getElementById('dotSpan');
    var nodeObj6 = document.getElementById('promptDiv');
    nodeObj1.firstChild.nodeValue = startUpInfo;
    nodeObj2.style.display = 'none';
    nodeObj3.style.display = 'none';
    nodeObj5.firstChild.nodeValue = ' ';
    nodeObj6.style.backgroundColor = '#fff';
    nodeObj6.style.fontWeight = '400';
    seasonInfo = null;
    stayTypeInfo = null;
    guestInfo = null;
    offerInfo = null;
}

/* The cost calculation based values selected */

function costCalculation(){
    var nodeObj1 = document.getElementById('dotSpan');
    var nodeObj6 = document.getElementById('promptDiv');
    nodeObj6.style.backgroundColor = '#f5b251';
    if (offerInfo == 'on'){
	if (seasonInfo == 'High season') {
	    if (stayTypeInfo == '7 night stay' && guestInfo == 'One couple only') {
		var price = HSamount*1*OCDamount*EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '7 night stay' && guestInfo == 'More than one couple') {
		var price = HSamount*1*EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '7 night stay' && guestInfo == 'Other') {
		var price = HSamount*1*EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '2 night weekend stay' && guestInfo == 'One couple only') {
		var price = HSamount*0.5* OCDamount* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '2 night weekend stay' && guestInfo == 'More than one couple') {
		var price = HSamount*0.5* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '2 night weekend stay' && guestInfo == 'Other') {
		var price = HSamount*0.5* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay during the week' && guestInfo == 'One couple only') {
		var price = HSamount*0.6* OCDamount* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay during the week' && guestInfo == 'More than one couple') {
		var price = HSamount*0.6* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay during the week' && guestInfo == 'Other') {
		var price = HSamount*0.6* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay over the weekend' && guestInfo == 'One couple only') {
		var price = HSamount*0.65* OCDamount* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay over the weekend' && guestInfo == 'More than one couple') {
		var price = HSamount*0.65* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay over the weekend' && guestInfo == 'Other') {
		var price = HSamount*0.65* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	}
	else if (seasonInfo == 'Mid season'){
	    if (stayTypeInfo == '7 night stay' && guestInfo == 'One couple only') {
		var price = MSamount*1*OCDamount*EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '7 night stay' && guestInfo == 'More than one couple') {
		var price = MSamount*1*EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '7 night stay' && guestInfo == 'Other') {
		var price = MSamount*1*EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '2 night weekend stay' && guestInfo == 'One couple only') {
		var price = MSamount*0.5* OCDamount* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '2 night weekend stay' && guestInfo == 'More than one couple') {
		var price = MSamount*0.5* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '2 night weekend stay' && guestInfo == 'Other') {
		var price = MSamount*0.5* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay during the week' && guestInfo == 'One couple only') {
		var price = MSamount*0.6* OCDamount* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay during the week' && guestInfo == 'More than one couple') {
		var price = MSamount*0.6* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay during the week' && guestInfo == 'Other') {
		var price = MSamount*0.6* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay over the weekend' && guestInfo == 'One couple only') {
		var price = MSamount*0.65* OCDamount* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay over the weekend' && guestInfo == 'More than one couple') {
		var price = MSamount*0.65* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay over the weekend' && guestInfo == 'Other') {
		var price = MSamount*0.65* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	}
	else if (seasonInfo == 'Low season'){
	    if (stayTypeInfo == '7 night stay' && guestInfo == 'One couple only') {
		var price = LSamount*1*OCDamount*EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '7 night stay' && guestInfo == 'More than one couple') {
		var price = LSamount*1*EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '7 night stay' && guestInfo == 'Other') {
		var price = LSamount*1*EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '2 night weekend stay' && guestInfo == 'One couple only') {
		var price = LSamount*0.5* OCDamount* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '2 night weekend stay' && guestInfo == 'More than one couple') {
		var price = LSamount*0.5* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '2 night weekend stay' && guestInfo == 'Other') {
		var price = LSamount*0.5* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay during the week' && guestInfo == 'One couple only') {
		var price = LSamount*0.6* OCDamount* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay during the week' && guestInfo == 'More than one couple') {
		var price = LSamount*0.6* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay during the week' && guestInfo == 'Other') {
		var price = LSamount*0.6* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay over the weekend' && guestInfo == 'One couple only') {
		var price = LSamount*0.65* OCDamount* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay over the weekend' && guestInfo == 'More than one couple') {
		var price = LSamount*0.65* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay over the weekend' && guestInfo == 'Other') {
		var price = LSamount*0.65* EBOamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	}
    }
    else {
	if (seasonInfo == 'High season') {
	    if (stayTypeInfo == '7 night stay' && guestInfo == 'One couple only') {
		var price = HSamount*1*OCDamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '7 night stay' && guestInfo == 'More than one couple') {
		var price = HSamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '7 night stay' && guestInfo == 'Other') {
		var price = HSamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '2 night weekend stay' && guestInfo == 'One couple only') {
		var price = HSamount*0.5* OCDamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '2 night weekend stay' && guestInfo == 'More than one couple') {
		var price = HSamount*0.5;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '2 night weekend stay' && guestInfo == 'Other') {
		var price = HSamount*0.5;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay during the week' && guestInfo == 'One couple only') {
		var price = HSamount*0.6* OCDamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay during the week' && guestInfo == 'More than one couple') {
		var price = HSamount*0.6;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay during the week' && guestInfo == 'Other') {
		var price = HSamount*0.6;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay over the weekend' && guestInfo == 'One couple only') {
		var price = HSamount*0.65* OCDamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay over the weekend' && guestInfo == 'More than one couple') {
		var price = HSamount*0.65;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay over the weekend' && guestInfo == 'Other') {
		var price = HSamount*0.65;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	}
	else if (seasonInfo == 'Mid season') {
	    if (stayTypeInfo == '7 night stay' && guestInfo == 'One couple only') {
		var price = MSamount*1*OCDamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '7 night stay' && guestInfo == 'More than one couple') {
		var price = MSamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '7 night stay' && guestInfo == 'Other') {
		var price = MSamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '2 night weekend stay' && guestInfo == 'One couple only') {
		var price = MSamount*0.5* OCDamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '2 night weekend stay' && guestInfo == 'More than one couple') {
		var price = MSamount*0.5;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '2 night weekend stay' && guestInfo == 'Other') {
		var price = MSamount*0.5;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay during the week' && guestInfo == 'One couple only') {
		var price = MSamount*0.6* OCDamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay during the week' && guestInfo == 'More than one couple') {
		var price = MSamount*0.6;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay during the week' && guestInfo == 'Other') {
		var price = MSamount*0.6;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay over the weekend' && guestInfo == 'One couple only') {
		var price = MSamount*0.65* OCDamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay over the weekend' && guestInfo == 'More than one couple') {
		var price = MSamount*0.65;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay over the weekend' && guestInfo == 'Other') {
		var price = MSamount*0.65;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	}
	else if (seasonInfo == 'Low season') {
	    if (stayTypeInfo == '7 night stay' && guestInfo == 'One couple only') {
		var price = LSamount*1*OCDamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '7 night stay' && guestInfo == 'More than one couple') {
		var price = LSamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '7 night stay' && guestInfo == 'Other') {
		var price = LSamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '2 night weekend stay' && guestInfo == 'One couple only') {
		var price = LSamount*0.5* OCDamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '2 night weekend stay' && guestInfo == 'More than one couple') {
		var price = LSamount*0.5;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '2 night weekend stay' && guestInfo == 'Other') {
		var price = LSamount*0.5;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay during the week' && guestInfo == 'One couple only') {
		var price = LSamount*0.6* OCDamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay during the week' && guestInfo == 'More than one couple') {
		var price = LSamount*0.6;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay during the week' && guestInfo == 'Other') {
		var price = LSamount*0.6;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay over the weekend' && guestInfo == 'One couple only') {
		var price = LSamount*0.65* OCDamount;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay over the weekend' && guestInfo == 'More than one couple') {
		var price = LSamount*0.65;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	    if (stayTypeInfo == '3 night stay over the weekend' && guestInfo == 'Other') {
		var price = LSamount*0.65;
		var result = Math.round(price);
		var cost = 'The cost of your stay is' + ' ' + '£' + result;
		nodeObj1.firstChild.nodeValue = ' = ' + cost;
	    }
	}
    }
}

    /* End of high season section */

