//here you place the ids of every element you want.

function switchdiv(divid) {
	//safe function to hide an element with a specified id
	if (document.getElementById(divid).style.display == 'none') {
		document.getElementById(divid).style.display = 'block';
		
	}
	else
	{
	   document.getElementById(divid).style.display = 'none';
	   
	}
}

function hidediv(divid) {
	//safe function to hide an element with a specified id
	document.getElementById(divid).style.display = 'none';
	
}


function switch2div(divid1,divid2) {
	//safe function to hide an element with a specified id
	if (document.getElementById(divid1).style.display == 'none') {
		document.getElementById(divid1).style.display = 'inline';
		document.getElementById(divid2).style.display = 'none';
		
		
	}
	else
	{
	   document.getElementById(divid1).style.display = 'none';
	   document.getElementById(divid2).style.display = 'inline';
	   
	}
}

function switch2divblock(divid1,divid2) {
	//safe function to hide an element with a specified id
	if (document.getElementById(divid1).style.display == 'none') {
		document.getElementById(divid1).style.display = 'block';
		document.getElementById(divid2).style.display = 'none';
		
		
	}
	else
	{
	   document.getElementById(divid1).style.display = 'none';
	   document.getElementById(divid2).style.display = 'block';
	   
	}
}

function enable_next_step_screen(value)
{
	hidediv('add_progress_sent_application');
	hidediv('add_progress_had_interview');
	hidediv('add_progress_sent_followup');
	hidediv('add_progress_receive_offer_letter');
	hidediv('add_progress_close_application');
	hidediv('add_progress_negotiation');
	hidediv('add_progress_send_references');
	hidediv('add_custom');
	hidediv('add_reminder_custom');
	switchdiv(value);
}

function enable_select_application_progress_type(value)
{
	hidediv('add_progress_sent_application');
	hidediv('add_progress_had_interview');
	hidediv('add_progress_sent_followup');
	hidediv('add_progress_receive_offer_letter');
	hidediv('add_progress_close_application');
	hidediv('add_progress_negotiation');
	hidediv('add_progress_send_references');
	hidediv('add_custom');
	hidediv('add_progress_common');
	hidediv('add_progress_common1');
	
	if (value == 'application') { switchdiv('add_progress_sent_application'); switchdiv('add_progress_common'); switchdiv('add_progress_common1');}
	if (value == 'interview') { switchdiv('add_progress_had_interview');  switchdiv('add_progress_common'); switchdiv('add_progress_common1');}
	if (value == 'followup') { switchdiv('add_progress_sent_followup');  switchdiv('add_progress_common'); switchdiv('add_progress_common1');}
	if (value == 'offerletter') { switchdiv('add_progress_receive_offer_letter');  switchdiv('add_progress_common'); switchdiv('add_progress_common1');}
	if (value == 'custom') { switchdiv('add_custom');  switchdiv('add_progress_common'); switchdiv('add_progress_common1');}
	if (value == 'references') { switchdiv('add_progress_send_references');  switchdiv('add_progress_common'); switchdiv('add_progress_common1');}
	if (value == 'negotiation') { switchdiv('add_progress_negotiation');  switchdiv('add_progress_common'); switchdiv('add_progress_common1');}
	if (value == 'closeapp') { switchdiv('add_progress_close_application');  switchdiv('add_progress_common'); switchdiv('add_progress_common1');}
	
}

