﻿// JScript File
// This is the source code for the Client Calls
// PhoxWare MicroSystems Couresty 'Dayo Aluko  © 2007
//*********************************************************************************************************************
//*********************************************************************************************************************
function OpenMiniWindow(WindowName, WindowPath){
	WindowName=window.open(WindowPath, WindowName, "toolbar=no, status=no, resizable=yes, scrollbars=yes, width=600, height=400");
}
//*********************************************************************************************************************************
//*********************************************************************************************************************************
function OpenThisWindow(WindowName, WindowPath, WidthSize, HeightSize){
	WindowName=window.open(WindowPath, WindowName, "toolbar=no, status=no, resizable=no, scrollbars=yes, width=800, height=800");
}
//*********************************************************************************************************************************
//*********************************************************************************************************************************
function OpenLiteWindow(WindowName, WindowPath, WidthSize, HeightSize){
	WindowName=window.open(WindowPath, WindowName, "location=no, menubar=no, toolbar=no, status=no, resizable=no, scrollbars=yes, width=" + WidthSize + ", height=" + HeightSize + "");
}
//*********************************************************************************************************************************
//*********************************************************************************************************************************
function clientMsgboxOnBlurEffect(sMsg){
    var pageUiElements = document.getElementsByTagName("html");
    pageUiElements[0].style.filter="progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
    if(confirm(sMsg))
    {
        return true;
    }
    else
    {
        pageUiElements[0].style.filter="";
        return false;
    }
}
//*********************************************************************************************************************************
//*********************************************************************************************************************************
function addBookmarkForBrowser(href,title){
    if(window.sidebar)
    {
        window.sidebar.addPanel(title,href,"");
    }
    else if(document.all)
    {
         window.external.AddFavorite(href,title);
    }
    else if(window.opera && window.print)
    {
         return true;
    }
 }


