// a: IE 5.x+, NN 6.x+, Opera 6.x+, Mosilla } b: IE 4.x- } c: Other
var DocType = ( document.getElementById ) ? 'a' : ( document.all ) ? 'b' : ( document.layers ) ? 'c' : 'unknw';

var NavVer = navigator.appVersion;
var OsType = ( NavVer.indexOf ( 'Win' ) != -1 ) ? 'Win' : ( NavVer.indexOf ( 'Mac' ) != -1 ) ? 'Mac' : 'unknw';

var UsrAgt = navigator.userAgent;
var WbType = 'unknw';
var SplAgt = new Array ( );
var APtr = 1;
if ( UsrAgt.match ( /Opera / ) ) { WbType = "Opera"; SplAgt = UsrAgt.split ( 'Opera ' ); } // Opera 6.x+
else if ( UsrAgt.match ( /MSIE/ ) ) { WbType = "IE"; SplAgt = UsrAgt.split ( 'MSIE ' ); } // IE
else if ( UsrAgt.match ( /Netscape/ ) ) { WbType = "NN"; SplAgt = UsrAgt.split ( '/' ); APtr = 3; } // NN 6.x+
else if ( UsrAgt.match ( /Firebird|Firefox/ ) ) { WbType = "Firefox"; SplAgt = UsrAgt.split ( '/' ); APtr = 3; } // Firefox
else if ( UsrAgt.match ( /Safari/ ) ) { WbType = "Safari"; SplAgt = UsrAgt.split ( '/' ); APtr = 3; } // Safari
var WbVer = ( WbType == 'unknw' ) ? 'unknw' : ( WbType == 'Safari' ) ? SplAgt[ APtr ] : SplAgt[ APtr ].substr ( 0, 3 );

var PUWinID = '';
function PopUp ( PUWinLoc, PUWinNam, PUWinLef, PUWinTop, PUWinWid, PUWinHei, PUWinCon ) {
	var WPPar00 = 'no';// scrollbars + resizable 
	var WPPar01 = 'no';// status 
	var WPPar02 = 'no';// menubar 
	if ( PUWinCon == 1 || PUWinCon == 2 || PUWinCon == 4 || PUWinCon == 7 || PUWinCon == 8 ) { WPPar00 = 'yes'; }
	if ( PUWinCon == 2 || PUWinCon == 3 || PUWinCon == 4 || PUWinCon == 5 || PUWinCon == 8 ) { WPPar01 = 'yes'; }
	if ( PUWinCon == 4 || PUWinCon == 5 || PUWinCon == 6 || PUWinCon == 7 ) { WPPar02 = 'yes'; }
	if ( WPPar00 == 'yes' ) {
		if ( OsType == 'Win' ) { if ( WbType == 'IE' || WbType == 'Firefox' || WbType == 'Opera' || DocType == 'c' ) { PUWinWid += 17; } else if ( WbType == 'Safari' ) { PUWinWid += 15; } }// Win IE , Firefox , Opera 6.x+ , Other ,  and Safari
		else if ( OsType == 'Mac' ) { if ( WbType == 'Safari' || WbType == 'Firefox' || WbType == 'Opera' || DocType == 'c' ) { PUWinWid += 15; } }// Mac Safari , Firefox, Opera 6.x+  , Other
		else if ( WbType == 'NN' && WbVer < 7 ) { PUWinWid += 14; }// NN 6.x
		else if ( WbType == 'NN' && WbVer >= 7 ) { PUWinWid += 15; }// NN 7.x
	}
	if ( WPPar02 == 'yes' ) {
		if ( OsType == 'Win' && WbType == 'IE' ) { PUWinHei -= 19; }// Win IE
	}
	var WinProp = 'width=' + PUWinWid + ',height=' + PUWinHei + ',left=' + PUWinLef + ',top=' + PUWinTop + ',menubar=' + WPPar02 + ',toolbar=no,location=no,directories=no,status=' + WPPar01 + ',scrollbars=' + WPPar00 + ',resizable=' + WPPar00;
	PUWinID = window.open ( PUWinLoc, PUWinNam, WinProp );
	PUWinID.focus ( );
}

