﻿
function Keyboard_show(leftindex,topindex,widthpx,heightpx)
{
    if (document.all)
    {
       if(document.all['WindowLayer'].style.visibility == "visible")
        {
          document.all['WindowLayer'].style.visibility="hidden";
          document.all['WindowLayer'].style.height=1;
        }
        document.all['WindowLayer'].src= "/CommonPages/keyboard.htm";
        document.all['WindowLayer'].style.left=leftindex;
        document.all['WindowLayer'].style.top=topindex;
        document.all['WindowLayer'].style.width=widthpx;
        document.all['WindowLayer'].style.height=heightpx;
        document.all['WindowLayer'].style.visibility="visible";
    }
    else
    {
       if(document.getElementById('WindowLayer').style.visibility == "visible")
        {
          document.getElementById('WindowLayer').style.visibility="hidden";
          document.getElementById('WindowLayer').style.height=1;
        }
        document.getElementById('WindowLayer').src= "/CommonPages/keyboard.htm";
        document.getElementById('WindowLayer').style.left=leftindex;
        document.getElementById('WindowLayer').style.top=topindex;
        document.getElementById('WindowLayer').style.width=widthpx;
        document.getElementById('WindowLayer').style.height=heightpx;
        document.getElementById('WindowLayer').style.visibility="visible";
    }   
}

function SetCookie(name, value)
{
	document.cookie = name + "=" + escape(value) + "; path=/";
}
       
// this deletes the cookie when called
function Delete_Cookie( name, path)
{
    document.cookie = name + "=" + ( ( path ) ? ";path=" + path : "");
}


