function selectColor(element)
{
    var id = parseInt(element.value);

    if (id) {
        $(".single").each(
            function()
            {
                this.value   = id;
                this.disabled = true;
            }
        );
    }
    else {
        $(".single").each(
            function()
            {
                this.disabled = false;
            }
        );
    }
}
