var timeout     = 500;
var activepanel = 0;
var layers      = 1;
var timeman		= null;
var pos 		= 'good';
function Pulldown(layer)
{
   HideAll();
   clearTimeout(timeman);
   //activepanel = layer;
   document.getElementById("layer" + layer).style.visibility='visible';
}

function HideAll()
{
	d = document.getElementById("layer1");d.style.visibility="hidden";
}

function Checkpos()
{
	timeman = setTimeout("if(pos == 'bad'){HideAll();}",timeout);
}
function textsize(item) { document.getElementById("master").textsize.value = item; setmode('bigtext'); }
function setmode(mode) {document.getElementById("master").mode.value = mode; document.getElementById("master").submit();}
function swapimg(place,imgName) { temp = document.getElementById(place); temp.src = imgName; }
function PopUp()
{
   var win = window.open("imageupload.php","PopUp","width=800,height=400");
}
