language="javascript"


/***********************************
 * Author: Michael W. Brandon      *
 * E-Mail: mb@galaxysites.com      *
 ***********************************
 ***********************************/
 /* The function jorobteTwo() opens a new browser window 
 * and dynamically writes html and javascript to the blank 
 * browser window.  
 *
 * This function also tests for browser compatibility.  
 * Right now it only tests for Netscape or IE browsers.
 */
function jorobteTwo(){

// Turns string value of var agt to lowercase
var agt=navigator.userAgent.toLowerCase(); 


/* assign userAgent variables and indexOf() searching.
 * if it finds the pattern 'ie' in var agt, it writes
 * for IE browser.
 */
var ie_ack = (agt.indexOf('ie')!=-1); 

	if (ie_ack){
// here is where we open and define the new window for IE browsers
var otherWin = window.open("", "newWin", 
"scrollbars=yes,width=285,height=409,left=0,top=0");
// assign variables for limited typing and begin writing
var doc = otherWin.document
doc.open("text/html", "replace");
doc.write('<html><head><title></title>' +
'</head>' +
'<body bgcolor="#FFCC99" text="#FF9933" marginheight="0" marginwidth="0" topmargin="0"' + 'bottommargin="0" leftmargin="0" rightmargin="0">' +
'<table width="285" align="center" cellpadding="0" cellspacing="0" border="0">' +
'<tr><td width="285">' +
'<img src="jorobte2_large.jpg" width="285" height="409" align="right" border="0" hspace="0">' +
'</td>' +
'</tr></table></body></html>');

// make sure the pop-up (new window) stays on top of existing 
// browser window(s)
otherWin.focus();
}
// if not Internet Explorer, write code for Netscape browsers
else{
// here is where we open and define the new window for
// Netscape browsers
var win = window.open("", "win", "scrollbars=yes,width=285,height=409,screenx=0,screeny=0"); 
// assign variables for limited typing and begin writing
// here we also use a with() statement - even less typing!
with (win.document) {
  open("text/html", "replace");
  
  write('<html><head><title></title>' +
'</head>' +
'<body bgcolor="#FFCC99" text="#FF9933" marginheight="0" marginwidth="0" topmargin="0"' + 'bottommargin="0" leftmargin="0" rightmargin="0">' +
'<table width="285" align="center" cellpadding="0" cellspacing="0" border="0">' +
'<tr><td width="285">' +
'<img src="jorobte2_large.jpg" width="285" height="409" align="right" border="0" hspace="0">' +
'</td>' +
'</tr></table></body></html>');
  close();

}
}
}



