KLayer.prototype.dflip = function() {
	if(this.style.display == 'none')
		this.style.display='block';
	else
		this.style.display = 'none';
}

KLayer.prototype.flip = function() {
	if(this.isVisible())
		this.hide();
	else 
		this.show();
}

function ShowTxt(divid, txtid)
{
	var text = layer(txtid);
	var div = layer(divid);
	text.move(div.getAbsoluteLeft()-320, div.getAbsoluteTop()-195);
	text.show();
}
function HideTxt(txtid)
{
	layer(txtid).hide();
}


function makeWindow(name)
{
    if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 640, yMax=480;

    var xOffset = (xMax - 200)/2, yOffset = (yMax - 200)/2;

    w = window.open('about:blank',name,'width=300,height=100,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+',copyhistory=no,directories=no, menubar=no,location=no,scrollbars=no,resizable=no');
	w.focus();
}
