//Window pop-up funct
function popUpwin(page, name, w, h, scroll)
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprop  = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(page, name, winprop)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
function swpImage(imgName,img)
 {
   if (document.images)
    {
      new_img=eval(img + ".src");
      document[imgName].src= new_img;
    }
 }

//this function closes window and refreshes parent
function refreshParent() {
  window.opener.location.href = window.opener.location.href;

  if (window.opener.progressWindow)
		
 {
    window.opener.progressWindow.close()
  }
  window.close();
}

