// JavaScript Document

function do_presale_list(p,pid,type)
{
	if (set_wait()) 
	{
		x_catalog_list_presale(p,pid,type,'holder_data',fill_html);
		page_var = 'presale';
	}
}

function do_continue_presale_list()
{
	if (set_wait()) 
	{
		x_continue_presale_list('holder_data',fill_html);
		page_var = 'continue_presale';
	}
}

function do_continue_presale_confirm()
{
	if (set_wait())
	{
		x_continue_presale_confirm('holder_data',fill_html_finish);
	}
}


function do_presale_select(id,count,ses)
{
	if (page_var=='continue_presale')
	{ fill = fill_html_update;}
	else
	{ fill = fill_html; }
	if (set_wait()) x_catalog_wishes_select(id,count,ses,'side_wishes',fill);	
}


