function openIBWindow(url,winName) {
   var thing = new its();

   if (url.indexOf("aspx") != -1) {
	   var correctBrowser = detectBrowser();

		if (correctBrowser == "incorrect") {
   	   url = url + "?browser=incorrect";
		}
		else {
			url = url + "?browser=correct";
		}
   }

   // If user's machine is a Mac the window needs to be smaller
	if (thing.mac) {
     	if (thing.nn) {
     		// netscape window size different
			msgWindow = window.open(url,winName,"directories=no,width=765,height=513,location=no,menubar=no,resizable=no,scrollbars=yes,status=yes,toolbar=no,left=0,top=0,screenX=0,screenY=0,hotkeys=true");
  	   }
     	else if (thing.ie) {
     		// ie window size different
			msgWindow = window.open(url,winName,"directories=no,width=792,height=590,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no,left=0,top=0,screenX=0,screenY=0,hotkeys=true");
     	}
   }
   // If user's machine is a PC the window needs to be larger
  	else {
     	if (thing.nn) {
     		// netscape can't resize window
			msgWindow = window.open(url,winName,"directories=no,width=792,height=525,location=no,menubar=no,resizable=no,scrollbars=yes,status=yes,toolbar=no,left=0,top=0,screenX=0,screenY=0,hotkeys=true");
      }
     	else if (thing.ie) {
     		// ie can resize window
			msgWindow = window.open(url,winName,"directories=no,width=792,height=525,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no,left=0,top=0,screenX=0,screenY=0,hotkeys=true");
      }
  	}
}