$(document).ready(function()
{
    $(document).pngFix();

    $(".formfield").focus(function()
    {
        if ($(this).val() == $(this)[0].title)
            $(this).val("");
    });
    
    $(".formfield").blur(function()
    {
        if ($(this).val() == "")
            $(this).val($(this)[0].title);
    });
    
    $(".formfield").blur();
    AdLineStartTimeout();
});

function checkStringValue(InputID, DisplayLabel)
{
	if(!CheckString(InputID, DisplayLabel, 1))
		return false;
	if($("#"+InputID).val()==$("#"+InputID)[0].title)
	{
		$("#"+InputID).focus();
		alert('Specify '+DisplayLabel+', please.');
		return false;
	}
	return true;
}

function AdLineChange(Text)
{
    $('#AdLine').fadeOut('fast', function() {
    	$('#AdLine').html(Text);
        $('#AdLine').fadeIn('fast');
    });
}


