var sub_directory = '';

function toggleHistory(obj, id){
	
	if (document.getElementById('history_' + id).style.display == "none"){
		Element.show('history_' + id); 
		obj.src = sub_directory + '/assets/images/view_previous.gif';
	}
	else
	{
		Element.hide('history_' + id);
		obj.src = sub_directory + '/assets/images/view_next.gif';
	}

}

function toggleStudent(obj, id){
	
	if (document.getElementById('student_' + id).style.display == "none"){
		Element.show('student_' + id); 
		obj.src = sub_directory + '/assets/images/view_previous.gif';
	}
	else
	{
		Element.hide('student_' + id);
		obj.src = sub_directory + '/assets/images/view_next.gif';
	}

}

function toggleCertificate(obj, id){
	
	if (document.getElementById('certificate_' + id).style.display == "none"){
		Element.show('certificate_' + id); 
		obj.src = sub_directory + '/assets/images/view_previous.gif';
	}
	else
	{
		Element.hide('certificate_' + id);
		obj.src = sub_directory + '/assets/images/view_next.gif';
	}

}

function toggleCertificateTransaction(obj, id){
	
	if (document.getElementById('certificate_transaction_' + id).style.display == "none"){
		Element.show('certificate_transaction_' + id); 
		obj.src = sub_directory + '/assets/images/view_previous.gif';
	}
	else
	{
		Element.hide('certificate_transaction_' + id);
		obj.src = sub_directory + '/assets/images/view_next.gif';
	}

}

function toggleLabel(obj, id){
	
	if (document.getElementById('label_' + id).style.display == "none"){
		Element.show('label_' + id); 
		obj.src = sub_directory + '/assets/images/view_previous.gif';
	}
	else
	{
		Element.hide('label_' + id);
		obj.src = sub_directory + '/assets/images/view_next.gif';
	}

}


function toggleAdminOrder(obj, id){
	
	if (document.getElementById('admin_order_' + id).style.display == "none"){
		Element.show('admin_order_' + id); 
		obj.src = sub_directory + '/assets/images/view_previous.gif';
	}
	else
	{
		Element.hide('admin_order_' + id);
		obj.src = sub_directory + '/assets/images/view_next.gif';
	}

}

function toggleOccurrence(obj, id){
	
	if (document.getElementById('occurrence_' + id).style.display == "none"){
		Element.show('occurrence_' + id); 
		obj.src = sub_directory + '/assets/images/view_previous.gif';
	}
	else
	{
		Element.hide('occurrence_' + id);
		obj.src = sub_directory + '/assets/images/view_next.gif';
	}

}


function toggleAlert(obj, id){
	
	if (document.getElementById('alert_' + id).style.display == "none"){
		Element.show('alert_' + id); 
		obj.src = sub_directory + '/assets/images/view_previous.gif';
	}
	else
	{
		Element.hide('alert_' + id);
		obj.src = sub_directory + '/assets/images/view_next.gif';
	}

}

function toggleUser(obj, id){
	
	if (document.getElementById('user_' + id).style.display == "none"){
		Element.show('user_' + id); 
		obj.src = sub_directory + '/assets/images/view_previous.gif';
	}
	else
	{
		Element.hide('user_' + id);
		obj.src = sub_directory + '/assets/images/view_next.gif';
	}

}

function toggleCertificateLayout(obj, id){
	
	if (document.getElementById('certificate_layout_' + id).style.display == "none"){
		Element.show('certificate_layout_' + id); 
		obj.src = sub_directory + '/assets/images/view_previous.gif';
	}
	else
	{
		Element.hide('certificate_layout_' + id);
		obj.src = sub_directory + '/assets/images/view_next.gif';
	}

}

function toggleLabelLayout(obj, id){
	
	if (document.getElementById('label_layout_' + id).style.display == "none"){
		Element.show('label_layout_' + id); 
		obj.src = sub_directory + '/assets/images/view_previous.gif';
	}
	else
	{
		Element.hide('label_layout_' + id);
		obj.src = sub_directory + '/assets/images/view_next.gif';
	}

}

function toggleCourse(obj, id){
	
	if (document.getElementById('course_' + id).style.display == "none"){
		Element.show('course_' + id); 
		obj.src = sub_directory + '/assets/images/view_previous.gif';
	}
	else
	{
		Element.hide('course_' + id);
		obj.src = sub_directory + '/assets/images/view_next.gif';
	}

}

function toggleGroup(obj, id){
	
	if (document.getElementById('group_' + id).style.display == "none"){
		Element.show('group_' + id); 
		obj.src = sub_directory + '/assets/images/view_previous.gif';
	}
	else
	{
		Element.hide('group_' + id);
		obj.src = sub_directory + '/assets/images/view_next.gif';
	}

}