	// JavaScript Document

function pageheader(menunumber)	
	{
		// changes the colour style on the navigation to alert the user what page they are on
		if (menunumber != "") {
		document.getElementById(menunumber).style.color = "#E3001B"; 
	} else {
		document.getElementById('Identity').style.color = "#E3001B"; 
	}
 }
 
 function pageheader2(menunumber)	
	{
		// changes the colour style on the navigation to alert the user what page they are on
		if (menunumber != "") {
		document.getElementById(menunumber).style.color = "#E3001B"; 
	} else {
		document.getElementById('About').style.color = "#E3001B"; 
	}
 }
 
  function pageheader3(menunumber)	
	{
		// changes the colour style on the navigation to alert the user what page they are on
		if (menunumber != "") {
		document.getElementById(menunumber).style.color = "#E3001B"; 
	} else {
		document.getElementById('Contact').style.color = "#E3001B"; 
	}
 }
 
 function menuitem(menuname)	
	{
		// changes the colour style on the navigation to alert the user what page they are on
		if (menuname != "") {
		document.getElementById(menuname).style.color = "#E3001B"; 
	}  else {
		document.getElementById('Australo').style.color = "#E3001B"; 
	}
 }
 
 function changeText(idele){

document.getElementById('element').innerHTML =idele;

}

      function changedivbg(bgImage)
	{
		// changes the background image on the index page
		document.getElementById("imagframe").style.backgroundImage = "url(images/" + bgImage + ")";
	}
	
	      function initialdivbg(bgImage2)
	{
		// changes the background image on the index page
		document.getElementById("imagframe").style.backgroundImage = "url(images/" + bgImage2 + ")";
	}

//function changeBorder(objDivID)
  //      {
 //       document.getElementById(objDivID).className=='imgBorder';

 //       }

function valid() {
		//---------------------------------------------------
	//check for first name
	//---------------------------------------------------
				if  (document.message.CommentsName.value != "" ) {
		document.getElementById("name").style.visibility = 'hidden';
    }
			if  (document.message.CommentsEmailAddress.value != "" ) {
		document.getElementById("email").style.visibility = 'hidden';
    }

		if  (document.message.CommentsContent.value != "" ) {
		document.getElementById("comment").style.visibility = 'hidden';
    }
	if  (document.message.CommentsName.value == "" ) {
    		
        document.message.CommentsName.focus();
		document.getElementById("name").style.visibility = 'visible';

    return false ;}
	//---------------------------------------------------
	//check for email
	//---------------------------------------------------

	if  (document.message.CommentsEmailAddress.value == "" ) {
    	document.message.CommentsEmailAddress.focus();
		document.getElementById("email").style.visibility = 'visible';
    return false ;}

	//---------------------------------------------------
	//check for billing phone number
	//---------------------------------------------------
	if  (document.message.CommentsContent.value == "" ) {
    		
    	document.message.CommentsContent.focus();
		document.getElementById("comment").style.visibility = 'visible';
    return false ;}
	document.message.submit();
}