var step_id = 0;

function confirmDelete(id) 
{
	step_id = id;
	TB_show('Delete Step', '#TB_inline?height=100&width=300&inlineId=confirmdelete', '', '../images/trans.gif');
}

function deleteStep() 
{
	window.location = 'admin_started.php?task=delete&step_id='+step_id;
}

function editStep(id, order, title, desc) 
{
	$('step_id').value = id;
	$('step_order_id').defaultValue = order;
	$('step_order_id').value = order;
	$('step_title').defaultValue = title;  
	$('step_title').value = title;  
	$('step_desc').defaultValue = desc;  
	$('step_desc').value = desc;

	TB_show('Edit Step', '#TB_inline?height=450&width=450&inlineId=editstep', '', '../images/trans.gif');
}

function addStep() 
{
	TB_show('Add Step', '#TB_inline?height=450&width=450&inlineId=addstep', '', '../images/trans.gif');
}

function stepHelp() 
{
	TB_show('Getting Started Help', '#TB_inline?height=450&width=450&inlineId=stephelp', '', '../images/trans.gif');
}

/* IGNORE THIS
function changeStep(step) 
{
    document.getElementById('started_core').innerHTML = step;
}
*/