function myprintln(s){ document.writeln(s); } 

function detectOS(){
	if(navigator.userAgent.indexOf('Win') == -1) {
		OS = 'Macintosh';
	} else {
		OS = 'Windows';
	}
	return OS;
}

function detectBrowser(){
	if(navigator.appName.indexOf('Netscape') == -1) {
		browser = 'IE';
	} else {
		browser = 'Netscape';
	}
	return browser;
}

function setSize(intWidth,intHeight){
	var frameDetected = parent.frames.length;
	if(!frameDetected){
		var NS = (navigator.appName=="Netscape")? true : false;
		var IE = !(document.getElementById);
		iWidth = (NS)?window.innerWidth:document.body.clientWidth; 
		iHeight = (NS)?window.innerHeight:document.body.clientHeight; 
		iWidth= intWidth - iWidth;
		iHeight = intHeight - iHeight;
		self.resizeBy(iWidth, iHeight);
		//self.resizeTo(intWidth, intHeight);
	}
}

function setTop(){
	self.moveTo(0,0);
}

function setCenter(){
	var NS = (navigator.appName=="Netscape")? true : false;
	iWidth = (NS)?window.innerWidth:document.body.clientWidth; 
	iHeight = (NS)?window.innerHeight:document.body.clientHeight; 
	windowX = (window.screen.width-iWidth)/2;
	windowY = (window.screen.height-iHeight)/2;
	if(window.moveTo) window.moveTo(windowX,windowY);	
}