﻿function ChangeStyle(linkID, classname)
{
    objLink = document.getElementById(linkID);
    objLink.className = classname;    
}
function SetHeight()
{
    var objDiv = document.getElementById('bodyMain');
    if(objDiv != null)
        objDiv.style.height = (document.documentElement.clientHeight-30) + 'px';
}
function OpenPopUp(url)
{
    
//    var height = document.documentElement.clientHeight-100;
//    var width = document.documentElement.clientWidth-100;
    window.open(url,"popup","status=1,resizable=yes,scrollbars=yes");    
    return false;
}
function OpenPopup(popID,btnID)
{
    
    var obj =  document.getElementById(popID);   
    var objModal = document.getElementById('divModal'); 
    objModal.innerHTML = obj.innerHTML;           
    alert(objModal.innerHTML);
    objModal.style.width = obj.style.width;           
    objModal.style.height = obj.style.height;   
 
    if(btnID!=null)
    {    
        var objBtn = document.getElementById(btnID);                        
         objBtn.click();                
         return false;    
    }
}
    
        