function launch(newURL, newName, newFeatures) {
  var remote = open(newURL, newName, newFeatures);
  return remote;
}
function popuplaunch(theURL,theNAME,theWIDTH,theHEIGHT) {
  Remote = launch(theURL, theNAME, "height="+theHEIGHT+",width="+theWIDTH+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0,title=0");
}

function nameroller(imgname,imgstate,imgtype)
{document.images.nameroll.src=eval("'images/names/"+imgname+imgstate+"."+imgtype+"'");}

function imgroll(imgname,imgid)
{document.images[imgid].src=eval("'images/"+imgname+".gif'");}

function shutall()
{
document.getElementById('sm1').style.display="none";
document.getElementById('sm2').style.display="none";
document.getElementById('sm3').style.display="none";
document.getElementById('sm4').style.display="none";
document.getElementById('sm5').style.display="none";
document.getElementById('sm6').style.display="none";
}

function openshut(tab)
{
shutall();
document.getElementById(tab).style.display="block";
}

rnd.today=new Date();
rnd.seed=rnd.today.getTime();

function rnd()
{
	rnd.seed = (rnd.seed*9301+49297) % 233280;
	return rnd.seed/(233280.0);
}

function rand(number)
{
	return Math.ceil(rnd()*number);
}


var randhome = rand(3);



