	if (self.parent.frames.length == 0 )
	{
		var loc = new String(self.location);
		loc_arr = new Array();
		loc_arr = loc.split('/');
		var new_loc = 'http://';
		for (i = 2; i < loc_arr.length - 2; i++)
			new_loc = new_loc + loc_arr[i] + '/';
		new_loc = new_loc + '_' + loc_arr[loc_arr.length - 2] + '/';
		self.location = new_loc;
	}
	
  function popup(contentsURL, winName, winProps, width, height)
	{
     if (!winName) var winName = "_blank";
     if (!winProps) var winProps = "menubar=0,toolbar=0,resizable=1,location=0,status=0,scrollbars=1";
     if (!width) var w = 600;
     else w = parseInt(width) + 150;
     if (!height) var h = 400;
     else h = parseInt(height) + 200;
     var x = 200; var y = 100;
     var args = "width=" + w + ",height=" + h + "," + winProps + ",screenx=" + x + ",screeny=" + y + ",left=" + x + ",top=" + y;
     window.open(contentsURL, winName, args);
  }
