﻿// JScript File
function ShowHideUploader()
{
 if(navigator.appName.indexOf('Microsoft') != -1)
 {
 //alert(navigator.appName);
    var cont = document.getElementById('cat');

    if(cont.style.display != 'none')
        cont.style.display = 'none';
    else
        cont.style.display = 'inline';
 }       
}

function ShowSurvey()
{
    var tbl = document.createElement('table');
    
    var tr = document.createElement('tr');
    var td = document.createElement('td');
    
    var dv = document.createElement('div');
    dv.innerHTML = '1223';
    dv.style.backgroundColor='red';
    dv.style.color='green';
    
    td.appendChild(dv);
    
    tr.appendChild(td);
    tbl.appendChild(tr);
    
    tbl.setAttribute('id','tblSurvey');
    tbl.style.position='absolute';
    tbl.style.left='5px';
    tbl.style.top='5px';
    tbl.style.width='100%';
    tbl.style.height='100%';
    tbl.style.zIndex = '100';
    
    //alert(tbl.innerHTML);
    
    //document.body.appendChild(tbl);
    
    var tbl = document.getElementById('tblOffPost');
    
    if(navigator.userAgent.indexOf("MSIE")!= -1)
        tbl.className="UpdateProgressPanelAbsoluteOpacityIE";   
    else
    tbl.className="UpdateProgressPanelAbsoluteOpacityOther";   
    
    tbl.style.width = document.body.scrollWidth;
    tbl.style.height = document.body.scrollHeight;
    $('tblOffPost').style.display = 'inline';
    document.body.scrollTop = '0';
}

function closeSurvey()
{
    document.getElementById('tblOffPost').style.display = 'none';
}
