function alertInfo(v)
{
	alert(v[0]);
}

function themeSwitchy()
{
	/*document.getElementById('imposing').innerHTML="<BR><BR><BR><BR><BR><BR><BR><BR>Please wait while the theme is changing...";
	imposed=getStyleObject('imposing');
	imposed.display='block';
	imposed.filter="alpha(opacity=100)";
	imposed.opacity=1;*/
	if (theme=='new')
	{
		setActiveStyleSheet('old');
		theme='old';
	}
	else
	{
		setActiveStyleSheet('new');
		theme='new';
	}
	//setTimeout("reveal()",1000);
	
}

function checkKeyPress(e)
{
	//e is event object passed from function invocation
	var cc;

	if(e && e.which)
	{ 
		e = e;
		cc = e.which;
	}
	else
	{
		//e = event;
		cc= e.keyCode;
	}
	
	//alert(cc);
	
	if (cc==33)
	{
		//pgUp
		handleScroll(5);
	}
	else if (cc==34)
	{
		//pgDn
		handleScroll(-5);
	}
	else if (cc==38)
	{
		//up
		handleScroll(1);
	}
	else if (cc==40)
	{
		//down
		handleScroll(-1);
	}
	else if (cc==36)
	{
		//home
		var tmp=document.getElementById('content['+current+']');
		tmp.scrollTop=0;
		scrollDraw(tmp.scrollTop,wIndows[current].maxY,current,"v");
 
	}
	else if (cc==35)
	{
		//end
		var tmp=document.getElementById('content['+current+']');
		tmp.scrollTop=wIndows[current].maxY;
		scrollDraw(tmp.scrollTop,wIndows[current].maxY,current,"v");
	}
	else if(cc==37)
	{
		var tmp=document.getElementById('content['+current+']');
		tmp.scrollLeft=tmp.scrollLeft-15;
		scrollDraw(tmp.scrollLeft,wIndows[current].maxX,current,"h");
	}
	else if(cc==39)
	{
		var tmp=document.getElementById('content['+current+']');
		tmp.scrollLeft=tmp.scrollLeft+15;
		scrollDraw(tmp.scrollLeft,wIndows[current].maxX,current,"h");
	}
	else
	{
		//alert(cc);
	}
	
}