var zoom;
function center_me(w,h){
	if(navigator.appName.indexOf('Explorer')+1){
		var win_width=w;
		var win_height=h;
	} else {
		var win_width=window.outerWidth;
		var win_height=window.outerHeight;
	}
	var pos_x=(screen.width-win_width)/2;
	var pos_y=(screen.height-win_height)/2;
	moveTo(pos_x,pos_y);
}

function open_it(url,w,h){
		window.open(url,'pop','height='+h+',width='+w+'location=no,resizable=no,scrollbars=no');
	}

function verticalize(){
		topMargin=(navigator.appName.indexOf('Explorer')!=(-1))?((document.body.clientHeight-400)/2):((window.innerHeight-400)/2);
		document.getElementById('main').style.top=topMargin+'px';
}

function open_zoom(url,w,h){
	if(zoom){
	      zoom.close();
           }
        zoom = window.open(url,'pop','height='+h+',width='+w+'location=no,resizable=no,scrollbars=no');
        zoom.focus();
}

