function fileUpload(status) {
    xajax_fileUpload(status);
    switch(status) {
        case 1 :
            //parent.frames.upload_frame.resetForm();
            location.href = self.location;
        break;
        case 2 :
            if(top.location==document.location) {
                parent.frames.upload_frame.linkUpload(); }
           else {     
                parent.frames[0].upload_frame.linkUpload(); }
            
        break;
    }
}

function init_radios() {
    $(function(){
        $("#form_upload_select_product input:radio").checkBox(); 
    });
}
   
/*$(function() {
    $.listen('mousedown','.upload_detail_img', function() {
        $(this).lightBox(); 
    });
});

$(function(item_id) {
    $('a[@rel*=lightbox]').lightBox(); 
});*/
