function clear_text(input, default_text){    if (input.value == default_text) {        input.value = "";        input.style.color = "#000";    }}function set_text(input, default_text){    if (input.value == '') {        input.value = default_text;        input.style.color = "#999";    }}function OpenLink(pagelink){    document.location.href = pagelink;}function Delete(pagelink){    question = window.confirm("Napewno chcesz usunąć ? ");    if (question == true)         document.location.href = pagelink;}$(function(){    $("ul#menu_top_list").tabs();        $('ul#menu_top_list').bind('tabsshow', function(event, ui){        if (ui.index == 3) {            $("#problem textarea").animate({                height: "90px"            }, 500);                    }        else {            $("#problem textarea").css('height', '15px');        }    });    });function ValidLink(input){    var name = input.val();        if (!name) {        alert('Wpisz adres URL do filmu.');        return false;    }    else {        return true;    }}function add_to_favorite_service(ins_id){    $('#add_toother').hide();    $.ajax({        type: "GET",        url: "/instrukcje.pl/ajax/add_to_favorite_service/" + ins_id,        success: function(msg){            alert(msg);        }    });}function simple_login(ins_id){    $("select, embed, object").hide();    $('#add_toother').hide();    $("#SimpleLogin").show();    $("#SimpleLogin").dialog({        modal: true,        title: 'Zaloguj się, aby pobrać dokument w formacie .pdf',        height: 370,        width: 880,        overlay: {            opacity: 0.5,            background: "black"        },        close: function(){            $("select, embed, object").show();        }            });}function accepted_rules(){    var rule = $("#agree")[0].checked;    if (rule) {        return true;    }    else {        alert("Musisz zaakceptować regulamin.");        return false;    }}
