function confirmation(whichMessage)
{
	return confirm('Are you sure you want to delete this page/s');
}

function lhnBgHeightPosition()
{
	lhnHeight = document.getElementById('lhn').offsetHeight;
	topBarHeight = document.getElementById('topBar').offsetHeight;
	navContentHeight = document.getElementById('navContentContainer').offsetHeight;		
    browserWindowHeight = document.documentElement.clientHeight;
	
	contentPlusTopBar = (topBarHeight + navContentHeight)
	
	if (contentPlusTopBar < browserWindowHeight)
	{
	    newNavContentHeight = ( browserWindowHeight - topBarHeight )
	    document.getElementById('navContentContainer').style.height = newNavContentHeight + 'px';	
	}
	
	navContentHeight2 = document.getElementById('navContentContainer').offsetHeight;	
	newLhnBgHeight = (navContentHeight2 + 200);
		
	//document.getElementById('lhnBg').style.top = '50px';
	//document.getElementById('lhnBg').style.top = lhnHeight + 'px';
	document.getElementById('lhnBg').style.height = newLhnBgHeight + 'px';
}



function submitForm(whichForm)
{
	document.getElementById(whichForm).submit();
}

function checkEnquiryForm()
{
    valid = true;

    if ( document.sendEnquiry.enquiryName.value == "" )
    {
        document.sendEnquiry.enquiryName.className = "inputMedError";
        valid = false;
    }
    else
    {
        document.sendEnquiry.enquiryName.className = "inputMed";
    }

    if ( document.sendEnquiry.enquiryEmail.value == "" )
    {
        document.sendEnquiry.enquiryEmail.className = "inputMedError";
        valid = false;
    }
    else
    {
        document.sendEnquiry.enquiryEmail.className = "inputMed";
    }

    if ( document.sendEnquiry.enquiryText.value == "" )
    {
        document.sendEnquiry.enquiryText.className = "inputTextError";
        valid = false;
    }
    else
    {
        document.sendEnquiry.enquiryText.className = "inputText";
    }
    
    if ( valid == false )
    {        
        alert ( "Please complete all fields in red." );
    }
    
    if ( valid == true )
    {        
        submitForm('sendEnquiry');
    }
}