// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

//-------------GLOBAL FUNCTIONS-------------
function toggle(obj) {
	var contract_expand = document.getElementById(obj);
	if ( contract_expand.style.display != 'none' ) {
		contract_expand.style.display = 'none';
	}
	else {
		contract_expand.style.display = '';
	}
}		

function swap(obj1, obj2) {
	var item1 = document.getElementById(obj1);
	var item2 = document.getElementById(obj2);
	if ( item1.style.display != 'none' ) {
		item1.style.display = 'none';
		item2.style.display = '';
	}
	else {
		item1.style.display = '';
		item2.style.display = 'none';
	}
}	

//-------------Menu System-------------


//-------------CONTACT PAGE FUNCTIONS-------------

function contactCreated() {
  contacttype.style.display = 'none';
  contactperson.style.display = 'none';
  contactcompany.style.display = 'none';
  contactinstruct.style.display = 'none';
  contactphone.style.display = 'none';
  contactemail.style.display = 'none';
  contactgroup.style.display = 'none';
  contacttabs.style.display = '';
  contactnote.style.display = '';
  contactsource.style.display = '';
  contactreferral.style.display = '';
  contactcomplete.style.display = '';
  contacttiplink.style.display = '';
  contactgrouplink.style.display = '';
}	