function mainpop(a,b) { //a is the content in the box, b is whether we want it to autoclose or not
	$('popcontents').innerHTML=a;
	$('mainpop').toggle();
	$('content').setOpacity(0.5);
	if (b=='1') setTimeout("new Effect.Fade('mainpop',{ duration:0.5});$('content').setOpacity(1.0);",2000);
}

