function showElement(toshow)
{
if (document.getElementById(toshow) != null)
document.getElementById(toshow).style.display = '';
}
function hideElement(tohide)
{
if (document.getElementById(tohide) != null)
document.getElementById(tohide).style.display = 'none';
}
// used to show the review
function toggleAll(n, full, tohide, toshow)
{
hideElement(tohide);
showElement(toshow);
for (i = 0; i < n; i++) {
toggle(i, full);
}
}
// used to show the review
function toggle(suffix, full)
{
if (full) {
showElement('theReviewText'+suffix);
hideElement('ReviewLink'+suffix);
}
else {
showElement('ReviewLink'+suffix);
hideElement('theReviewText'+suffix);
}
}
function toggleSSEArrow(){
var downArrow = document.getElementById('DownImg');
var upArrow = document.getElementById('UpImg');
if(downArrow && upArrow){
if(upArrow.style.display == ''){ //up
downArrow.style.display = '';
upArrow.style.display = 'none';
$('#savesendemail').show();
}
else{//down
downArrow.style.display = 'none';
upArrow.style.display = '';
$('#savesendemail').hide();
}
}
}