﻿// JScript File
function HideShowDiv(tag, image)
{
    return;
    alert(tag);
    alert(tag.length);
    
    for(i = 0; i < tag.length; i++)
    {
        //alert(tag[i].innerHTML);
        if(tag[i].style.display == 'none')
        {
            
            if(i == 0)
                image.src = '../../img/Plus/Minus.png';
                
            tag[i].style.display = 'block';
            
        }
        else        
        {
            if(i == 0)
                image.src = '../../img/Plus/Plus.png';    
                
            tag[i].style.display = 'none';
        
        }
    }
}

 function ShowWindow(url, width, height, winSettings)
 {
     var winl = (screen.width - width) / 2;
     var wint = (screen.height - height) / 2;
     if (winSettings.length == 0)
        winSettings = 'toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=yes';
     winprops = 'height='+height+',width='+width+',top='+wint+',left='+winl+','+winSettings;
     window.open (url, "", winprops)    
 }
 function CloseAndRefreshParentWindow()
 {
    opener.location.reload(true);
    self.close();
 }
 function CloseAndRefreshParentWindowData()
 {
    opener.RefreshData();
    self.close();
 }
 function ClientValidate(source, clientside_arguments)
 {
    clientside_arguments.IsValid = isDate(clientside_arguments.Value, DateFormat);
 }
 function PrintWindow()
 {
    window.print();
 }

