
function popUpBox(INurl,INheight,INwidth,INscroll, INSize){

  newWindow = null;
  newLargeWindow = null;
  newOtherWindow = null;

  winprops = 'height='+INheight+',width='+INwidth+',scrollbars='+INscroll+',resizable';

     if (INSize == "S") {
        if (newWindow && newWindow.closed==false){
             newWindow.close();
	setTimeout("newWindow = window.open(INurl,'newWindow',winprops)",1000);
  	newWindow.focus();
         }
	else {
  	newWindow = window.open(INurl, 'newWindow', winprops);
  	newWindow.focus();
	}
     }
     else if (INSize == "L") {
     	if (newLargeWindow && newLargeWindow.closed==false){
             newLargeWindow.close();
     	setTimeout("newLargeWindow = window.open(INurl,'newLargeWindow',winprops)",1000);
     	newLargeWindow.focus();
         }
     	else {
     	newLargeWindow = window.open(INurl, 'newLargeWindow', winprops);
     	newLargeWindow.focus();
     	}
     }
     else {
     	if (newOtherWindow && newOtherWindow.closed==false){
             newOtherWindow.close();
     	setTimeout("newOtherWindow = window.open(INurl,'newOtherWindow',winprops)",1000);
     	newOtherWindow.focus();
         }
     	else {
     	newOtherWindow = window.open(INurl, 'newOtherWindow', winprops);
     	newOtherWindow.focus();
     	}
     }
}  



  