var _agent = navigator.userAgent.toLowerCase();

var _win = (_agent.indexOf('win') != -1);
var _mac = (_agent.indexOf('mac') != -1);

var _brover = parseInt(navigator.appVersion);

var _ie = (_agent.indexOf('msie') != -1);
var _ns = ((_agent.indexOf('mozilla') != -1) && (_agent.indexOf('compatible') == -1));
var _nsup = (_ns && (_brover >= 5));

function openWinSUB(URL,wName,wWidth,wHeight){
if(_win){
 	if(_ie){wWidth+=20;wHeight+=40;}
else if(_nsup){
wWidth+=0;wHeight+=0;;
 }
else{
wWidth+=0;wHeight+=0;;
	}
}
else if(_mac){
 if(_ie){
wWidth+=0;wHeight+=0;;
	}
 else if(_nsup){
wWidth+=0;wHeight+=0;;
	}
 else{
wWidth+=0;wHeight+=0;;
	}
}
	wOption = "toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=" + wWidth + ",height=" + wHeight;

	w01 = window.open(URL,wName,wOption);
    w01.focus()
}