var pippo;
var win_height='100%';
var win_width='100%';

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_01(url,w,h){
	v1=window.open(url,'pop','height='+h+',width='+w+'location=no,resizable=yes,scrollbars=yes');
}

function open_02(url,w,h){
	v1=window.open(url,'pop','height='+h+',width='+w+'location=no,resizable=no,scrollbars=no');
}

function open_pop(url,w,h){
	if(pippo) pippo.close();
	pippo= window.open(url,'pop','height='+h+',width='+w+'location=no,resizable=no,scrollbars=yes');
}

function open_pop_02(url,w,h){
	if(pippo) pippo.close();
	pippo= window.open(url,'pop','height='+h+',width='+w+'location=no,resizable=no,scrollbars=yes');
}

function close_pop(){
	if(pippo) pippo.close();
}


