/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



function removeDefaultText(id)
{
    document.getElementById(id).focus();
    document.getElementById(id).value = "";
}

function clearContent(id){
    document.getElementById(id).value = "";
}

function showHideDiv(divId){
    if(divId == 'comment_listing'){

        new Effect.toggle(divId, 'Slide' , {
            duration:3
        });
        
        if(document.getElementById('see_comments').innerHTML == 'See All'){
           
            document.getElementById('see_comments').innerHTML = 'Hide All';

        }else{
            
            document.getElementById('see_comments').innerHTML = 'See All';

        //new Effect.toggle(divId, 'blind' , {duration:3});
        }

        //document.getElementById('comment_listing').style.display = 'block';
        //document.getElementById('comment_div').style.display = 'none';
        new Effect.toggle(divId, 'blind' , {
            duration:3
        });
    }

    if(divId == 'comment_div'){
        
        new Effect.toggle(divId, 'Slide' , {
            duration:3
        });

        document.getElementById('comment_listing').style.display = 'none';

        //new Effect.toggle('comment_listing', 'blind' , {duration:3});

        document.getElementById('comment_description').value = "";
        
    //document.getElementById('comment_div').style.display = 'block';
    }
/*if(document.getElementById(divId).style.display == 'none'){
        document.getElementById(divId).style.display = 'block';
    }else{
        document.getElementById(divId).style.display = 'none';
    }*/
}


  
function showHideCommentList(){
    if(document.getElementById('comment_id').style.display == 'block'){
        document.getElementById('comment_id').style.display = 'none';
        document.getElementById('comment_see_all').innerHTML = "<a href='javascript:void(0)' onclick='showHideCommentList()'>See All</a>";
    }else if(document.getElementById('comment_id').style.display == 'none'){
        document.getElementById('comment_id').style.display = 'block';
        document.getElementById('comment_see_all').innerHTML = "<a href='javascript:void(0)' onclick='showHideCommentList()'>Hide All</a>";
    }
}
function removeElement(){
    alert('I come here');
    window.parent.Lightview.hide(); 
}
