//Enables a requird object and shows its required star - Also disables the object and star, Use in form tag on MouseOver event for most effectivnes.
//takes "Current value of compare object" "Value to compare" "object Name in 'single quote' to change color .e.g. A red star's name" "on color" "off color" "object that you want to disable name .e.g. a Text box with no quotes"
function enable_required_object(value,compare_value,change_color_object_name,on_color,off_color,disable_object){

		if(value==compare_value){							//current value matches the compare value
			changeText_color(on_color,change_color_object_name);	//change color of object 1 to show it
			disable_object.disabled=false;							//enable object 2
		}
		else
		{
			changeText_color(off_color,change_color_object_name);
			disable_object.disabled=true;
			
			disable_object.value="";				// reset the disabled objects value 
		}
}





// 04 April  2003 - Created by Mark OGilvie
// Hiding and showing DIVs
// Use for switching between 2 or more text blocks

//You do not need to use this function. It is called be the one below.
//Pass "hidden" or "visible" as the state to set the visibility
function changeDiv_viewState(divID,state){	
	findDOM(divID,1).visibility=state;	//Get div via findDom function and set visibility state
}

//	SHOW And HIDE Divs
//	This function assumes that there are no visible divs when the user enters the page. If you want a div to be visible when the user enters the page then you must call this function on page load to make that div visible.
// 	Pass the div name to make the div visible. Once it has been shown it can will be hidden by the next "show_me" Click.

var visible_div;
function show_me(divName){	

	//if a div is visible hide it
	if (visible_div!=null){		
		changeDiv_viewState(visible_div,'hidden');		
	}
	
	//make selected div visible
	changeDiv_viewState(divName,'visible');		
	visible_div=divName;
}


