function makeDraggable(){
	new Draggable('polldiv',{revert:false});
}

function selectOption(obj) {
	option = $F(obj);
}

function ChangeIt(what,id,value) {		
		
	$('result').innerHTML = 'Aktualizuji ...';

	var url = 'http://www.elektro-007.cz/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').innerHTML =  originalRequest.responseText;		
}

function reportError(originalRequest) {
	$('result').innerHTML = 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(what)
{
 var x = $(what).style.display;
 $(what).style.display = (x == 'none') ? 'block' : 'none'; 
}

function state2(what,onoff)
{
 way = (onoff=="ON") ? 'block' : 'none'; 
 $(what).style.display = way; 
}

function Voix()
{

}


