function hideMessage(){
	$('#message').hide("slow");
}

function showMessage(){
	$('#message').show("slow");
}

function hideWorker(){
	$('#worker').hide("slow");
	$('#inactive').hide("slow");
}

function showWorker(){
	$('#worker').show("slow");
	$('#inactive').show("slow");
}

function changePropic(pic_id,artid){
	$.post("/shop/response/loadpic",{ pic_id: pic_id, art_id: artid}, function(data){
		$('#propics').empty().append(data);
	});
}

function addArticle(artid){
	$.post("/shop/response/addarticle",{ art_id: artid}, function(data){
		//$('#basketinfo').empty().append(data);
		//alert(data);
	});
	window.setTimeout("reloadPage()",300);
}

function setLocation(loc_id){
	$.post("/shop/response/locselect",{ loc_id: loc_id});
	window.setTimeout("reloadPage()",300);
}


function AccOpenWin(url)
{
OpenWin=window.open(url,'accwindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=400,height=400')
OpenWin.moveTo(300,40);
OpenWin.focus();
}

function catsortSelect(url)
{
	$.post("/shop/response/catsortselect",{ catsort_id: $('#catsort_id').val()});
	window.setTimeout("loadPage('"+url+"')",500);
}


function paymentSelect()
{
	$.post("/shop/response/paymentselect",{ ord_pty_id: $('#ord_pty_id').val()}, function(data){
		$('#payment_detail').empty().append(data);
	});
}

function reloadPage(){
	location.reload();
}

function loadPage(url){
	window.location=url;
}
