function preview(url){
	window.open(url, "preview");
}

function setFeatured(checked, itmId) {
	if (checked) 
		document.getElementById(itmId).disabled = false;
	else
		document.getElementById(itmId).disabled = true;
}

$(document).ready(function() {

    $('.subscribeInput').focus(function() {
        if ($(this).val() == 'Subscribe... enter email' || $(this).val() == 'City') {
            $(this).val('');
        }
        $(this).select();
    });

    $('.subscribeInput').blur(function() {
        if ($(this).val() == '') {
            if ($(this).hasClass('email')) {
                $(this).val('Subscribe... enter email');
            } else if ($(this).hasClass('city')) {
                $(this).val('City');
            }
        }
    });

    $('.searchField').focus(function() {
        if ($(this).val() == 'Search Artists') {
            $(this).val('');
        }
        $(this).select();
    });

    $('.searchField').blur(function() {
        if ($(this).val() == '') {
            $(this).val('Search Artists');
        }
    });

    $('.searchField').val('Search Artists');

});
