function center_Cords(tmp_dim,type) {
	
	
	if (document.body && typeof(document.body.offsetHeight) == 'number')
		{
			 var cHeight = document.body.offsetHeight;
			 var cWidth = document.body.offsetWidth;
		}
		else if (typeof(window.innerHeight) == 'number')
		{
			 var cHeight = window.innerHeight;
			 var cWidth = window.innerWidth;
		}
		else
		{
			 var cHeight = 500;	
			 var cWidth = 800;
		}		

	
	
	
	if (type == 'x') {
		
		var	pass = ((cWidth-tmp_dim)/2)
		return pass
		
	} else if (type == 'y') {
		
		var	pass = ((cHeight-tmp_dim)/2)
		return pass
		
	}
										 
}
										
function launch_Viewer(url) {
	tmp_x = center_Cords('600','x');
	tmp_y = center_Cords('605','y');
	window.open(url,'_blank','status=yes,top=' + tmp_y + ',left=' + tmp_x + ',width=600,height=605');
	
}

