function popup(http, w, h)
{
	if ((w==undefined)||(w=='')) { w=850; }
	if ((h==undefined)||(h=='')) { h=600; }
	win=window.open(http, '', "height="+h+",width="+w+",scrollbars=1,resizable=1");
	win.focus();
}

function getBodyScrollTop()
{
  return self.pageYOffset || (document.documentElement && document.documentElement.scrollTop) || (document.body && document.body.scrollTop);
}

var img_temp_arr=new Array();
var img_temp_num=0;
function temp_img(src)
{
	img_temp_num++;
	img_temp_arr[img_temp_num]=new Image();
	img_temp_arr[img_temp_num].src=src;
}

jQuery.fn.hid_vis=function ()
{
	if (($(this).is(".hid"))||($(this).is(":hidden")))
	{
		$(this).removeClass("hid").show();
	}
	else
	{
		$(this).hide();
	}

	return this;
};
