////////////////////////////////
// Setup for OpenWindow script
// Alan Varga  (c) 2004
//
// prog  date        rev#  description
// ----  ----------  ----  -----------
// aev   2004-11-03   1.0  initial version
// aev   2004-12-19   1.1  added style 3 for 2nd window from 1st popup
//
////////////////////////////////
// Note: Change the square brackets to tag delimiters after pasting
// Step 1 - insert script tag in body of document
// [script type="text/javascript"
//        src="openwindow.js"][/script]
//
// Step 2 - format for function call
// [a href="#" onclick="openwindow(style, url);"]
//	link description</a>
//    url can be a file or a hyperlink
//    style  description
//    -----  -----------
//      1    normal
//      2    no toolbar or address bar
////////////////////////////////


function openwindow(style, url) {
    switch(style)
    {
      case 1:
	window.open(url, 'window_1');
	break;
      case 2:
	window.open(url ,'window_1','scrollbars=yes, titlebar=yes, toolbar=yes');
	break;
      case 3:
	window.open(url ,'window_2','scrollbars=yes, titlebar=yes, toolbar=yes');
	break;
      case 4:
	alert("undefined style");
	break;
    }

// return true;
}
