var stf = ["Jūsų vardas", "Jūsų el. pašto adresas", "Jūsų draugo el. pašto adresas"];
// stf
var name_  = false;
var email_ = false;
var to_    = false;

// guestbook
var sender_   = false;
var e_mail_   = false;
var location_ = false;
var homepage_ = false;
var message_   = false; 


$(document).ready(function(){
    
    $("input[name=name]").click(function(){
        var value = $(this).val();
        if (name_ == false)
        {
            $(this).val("");
            name_ = true
        }
    });
    
    $("input[name=email]").click(function(){
        var value = $(this).val();
        if (email_ == false)
        {
            $(this).val("");
            email_ = true
        }
    });
    
    $("input[name=to]").click(function(){
        var value = $(this).val();
        if (to_ == false)
        {
            $(this).val("");
            to_ = true
        }
    });
    
    
    $("form#guestbook_form input[name=sender]").click(function(){
        var value = $(this).val();
        if (sender_ == false)
        {
            $(this).val("");
            sender_ = true;
        }
    });
    
    $("form#guestbook_form input[name=e_mail]").click(function(){
        var value = $(this).val();
        if (e_mail_ == false)
        {
            $(this).val("");
            e_mail_ = true;
        }
    });
    
    $("form#guestbook_form input[name=location]").click(function(){
        var value = $(this).val();
        if (location_ == false)
        {
            $(this).val("");
            location_ = true;
        }
    });
    
    $("form#guestbook_form input[name=homepage]").click(function(){
        var value = $(this).val();
        if (homepage_ == false)
        {
            $(this).val("");
            homepage_ = true;
        }
    });
    
    $("form#guestbook_form textarea[name=message]").click(function(){
        var value = $(this).text();
        if (message_ == false)
        {
            $(this).text("");
            message_ = true;
        }
    });
    
    
});

