function iphoneSwitchRequest(url,name,onElement,offElement,link){
    $.get(url, function(response){ 
        if (response == 'off') {
            $('#'+onElement).hide();
            $('#'+offElement).show();
        }
        else {
            $('#'+offElement).hide();
            $('#'+onElement).show();
        }
        
        $(link).removeAttr('selected');
    });
}   
