rem: if(typeof(document.all['popup_div'])=='object') 
add: div = document.getElementById('popup_div'); if(typeof(div) == 'object') 
context: function optimize_window(){		w = window;	if(typeof(document.all['popup_div'])=='object')	{		var xper = 0.1		var yper = 0.1		var wper = 0.8		var hper = 0.8		w.moveTo(window.screen.width*xper, window.screen.height*yper);		w.resizeTo(window.screen.width*wper, window.screen.height*hper);		return	}	deltaX = w.document.body.scrollWidth - w.document.body.clientWidth;	deltaY = w.document.body.scrollHeight - w.document.body.clientHeight;	max_width = w.screen.width - 200;	max_height = w.screen.height - 250;		if (w.document.body.scrollWidth > max_width)		deltaX = max_width - w.document.body.clientWidth;	if (w.document.body.scrollHeight > max_height)		deltaY = max_height - w.document.body.clientHeight;	newLeft = (w.screen.width - w.document.body.clientWidth - deltaX)/2 - 20;	newTop = (w.screen.height - w.document.body.clientHeight - deltaY)/2 - 30;	w.moveTo(newLeft, newTop);	w.resizeBy(deltaX, deltaY);}
meta: 8196	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8196/98bb2dd293939f92a9723bca259ee638eea51a64/common.js/buggy/2.1/shared/js/common.js