// global js file
$(document).ready(function(){
    swapValues = [];
    $(".swap_value").each(function(i){
        swapValues[i] = $(this).val();
        $(this).focus(function(){
            if ($(this).val() == swapValues[i]) {
                $(this).val("");
            }
        }).blur(function(){
            if ($.trim($(this).val()) == "") {
                $(this).val(swapValues[i]);
            }
        });
    });
});

function report(item_id, type)
{
	$.get(URL+"cms/feedbacks/add/"+type+'/'+item_id);
	alert('Problem reported to administrator.');
}
