function reloadWindow()
	{

alert('test');

	// only reload for ie and ns6
	if (ie || ns6)
		{
var origWidth, origHeight;

if (document.layers) {
  origWidth = window.innerWidth;
  origHeight = window.innerHeight;
  onresize = function() { if(innerWidth != origWidth || innerHeight != origHeight) location.reload(); }
}

else if (document.all) onresize = function() { window.location.reload(); }
}