function popDesktop(size,mutant) {

if (size == '800x600') { width = 800; height = 600; } else { width = 1024; height = 768;} 

popWin("desktop.html?size=" + size + ",mutant=" + mutant,width,height);

}

function popWin (url,width,height) {

			
	//center the pop-up	
	if (parseInt(navigator.appVersion) >= 4 ) {
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;

	}

	//random for window name
	winran = Math.floor(187*Math.random());
	
	args = "width=" + width + ","
	+ "height=" + height + ","
	+ "location=0," 
	+ "menubar=0,"
	+ "resizable=1,"
	+ "scrollbars=0,"
	+ "status=1," 
	+ "titlebar=1,"
	+ "toolbar=0,"
	+ "hotkeys=0,"
	+ "screenx=" + xposition + ","  //NN Only
	+ "screeny=" + yposition + ","  //NN Only
	+ "left=" + xposition + ","     //IE Only
	+ "top=" + yposition;           //IE Only
	
	window.open(url,'gfpop' + winran,args );
}