//Default browsercheck, added to all scripts!
function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}

function openWindow(url,w,h) {
	// make it centered
	l = (screen.Width - w) / 2;//left
	t = (screen.Height - h) / 2;//top
	features = 'width='+w+'; height='+h+'; left='+l+'; top='+t+';';
	window.open(url,'',features);
}

function ow(url,x,y) {
	bw=new checkBrowser();
	if (bw.ns4 || bw.ns5) {
		window.open(url,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+x+',height='+y);
	} else {
		openWindow(url, x, y);
	}
}

