function makeDraggable(){
	new Draggable('polldiv',{revert:false});
}

function selectOption(obj) {
	option = $F(obj);
}

function ChangeIt(what,id,value) {		
		
	$('#result').html('Aktualizuji ...');
	
	var url = urlhome+'/3gshop/fly.basket.php'; 	
	var pars = 'proid=' + id + '&action='+ what + '&value='+ value;			
	var myAjax = new Ajax.Request( url, { method: 'post', parameters: pars, onComplete: showResponse, onFailure: reportError });
	
}

function showResponse(originalRequest) 
{
	$('#result').html(originalRequest.responseText);		
}

function reportError(originalRequest) {
	$('#result').html(originalRequest.responseText);
}	



function switchMe(what,withm)
{
 $("layer-"+what).style.display = 'none';
 $("layer-"+withm).style.display = 'block';

 $("switch-"+what).style.color = '#3F3F3F';
 $("switch-"+withm).style.color = '#fff';
}

function state(val,what)
{
  alert(val+ ' ' +what);
 /*
 var x = $(what).style.display;
 $(what).style.display = (x == 'none') ? 'block' : 'none';
 */ 
}

function state2(what,onoff)
{
    
}
