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_scroll(url,w,h){
	window.open(url,'pop','height='+h+',width='+w+'location=no,resizable=no,scrollbars=yes');
}

function open_noscroll(url,w,h){
	if(zoom){
	      zoom.close();
           }
	zoom=window.open(url,'pop','height='+h+',width='+w+'location=no,resizable=no,scrollbars=no');
}



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();
}


function open_print(url,w,h){
	window.open(url,'pop','height='+h+',width='+w+'location=no,resizable=no,scrollbars=no,status=no,menubar=no,toolbar=no');
}
function open_player(url,w,h){
	window.open(url,'player','height='+h+',width='+w+'location=no,resizable=no,scrollbars=no');
}

